Advertisement
Guest User

Untitled

a guest
Jan 29th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. cat top.sls
  2. base:
  3. 'apache-test*':
  4. - php5.web
  5.  
  6. cat php5/web.sls
  7. include:
  8. - php5
  9. - newrelic.php
  10. - apache2
  11.  
  12. php5-mod-apache2:
  13. pkg.installed:
  14. - name: php5
  15. - refresh: True
  16. - require_in:
  17. - pkg: newrelic-php5
  18. - pkg: apache2
  19. - watch_in:
  20. - service: apache2
  21.  
  22. cat newrelic/php.sls
  23. include:
  24. - newrelic
  25. - apache2
  26. - php5.fpm
  27.  
  28. newrelic-php5:
  29. pkg.installed
  30.  
  31. newrelic-daemon:
  32. service.running:
  33. - watch:
  34. - file: /etc/newrelic/newrelic.cfg
  35.  
  36. /etc/newrelic/newrelic.cfg:
  37. file.managed:
  38. - source: salt://newrelic/newrelic.cfg
  39.  
  40. /etc/php5/conf.d/20-newrelic.ini:
  41. file.managed:
  42. - source: salt://newrelic/newrelic-php.ini
  43. - watch_in:
  44. - service: apache2
  45. - service: php5-fpm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement