Advertisement
Guest User

apache2.sls

a guest
Apr 28th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. apache2:
  2. pkg:
  3. - installed
  4. service:
  5. - running
  6. - watch:
  7. - pkg: apache2
  8. - file: /etc/apache2/conf/httpd.conf
  9. - user: www-data
  10. user.present:
  11. - name: www-data
  12. - groups: www-data
  13. - home: /var/www/html
  14. - require:
  15. - group: www-data
  16. group.present:
  17. - name: www-data
  18. - require:
  19. - pkg: apache2
  20.  
  21. /etc/apache2/conf/httpd.conf:
  22. file.managed:
  23. - source: salt://apache/httpd.conf
  24. - user: root
  25. - group: root
  26. - mode: 644
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement