Created
          December 14, 2017 08:27 
        
      - 
      
- 
        Save johnfitzpatrick/7b8dff6831de1cd24a2ee8dc639a004d to your computer and use it in GitHub Desktop. 
    Intermediate_Slide11.14.rb
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | directory '/srv/httpd/admins/html' do | |
| recursive true | |
| mode '0755' | |
| end | |
| template '/etc/httpd/conf.d/admins.conf' do | |
| source 'conf.erb' | |
| mode '0644' | |
| variables(document_root: '/srv/httpd/admins/html',port: 8080) | |
| notifies :restart, 'service[httpd]' | |
| end | |
| file '/srv/apache/admins/html/index.html' do | |
| content '<h1>Welcome admins!</h1>' | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment