Advertisement
Guest User

Untitled

a guest
Jan 24th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. apache_conf:
  2. file.managed:
  3. - name: {{ pillar['pkgs_settings']['apache_sites_available'] }}/graphite
  4. - source: salt://graphite_server/files/apache/graphite
  5. - template: jinja
  6.  
  7. apache_link:
  8. file.symlink:
  9. - name: {{ pillar['pkgs_settings']['apache_sites_enabled'] }}/graphite
  10. - target: {{ pillar['pkgs_settings']['apache_sites_available'] }}/graphite
  11. - require:
  12. - file: apache_conf
  13.  
  14. apache_service:
  15. service:
  16. - name: {{ pillar['pkgs']['apache'] }}
  17. - enable: True
  18. - running
  19. - watch:
  20. - file: apache_conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement