Last active
January 4, 2016 10:29
-
-
Save gravyboat/8609279 to your computer and use it in GitHub Desktop.
incldues for apache 2
This file contains 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
apache/files.sls #Here we manage our other files: | |
apache_conf: | |
file.managed: | |
- name: {{ pillar['pkgs_settings']['apache_sites_available'] }}/graphite | |
- source: salt://graphite_server/files/apache/graphite | |
- template: jinja | |
apache_link: | |
file.symlink: | |
- name: {{ pillar['pkgs_settings']['apache_sites_enabled'] }}/graphite | |
- target: {{ pillar['pkgs_settings']['apache_sites_available'] }}/graphite | |
- require: | |
- file: apache_conf | |
------------------------------ | |
apache/init.sls #This is simply our init which starts the service, and sets up this one managed file for the service (this could be broken out further): | |
include apache.files | |
apache_service: | |
service: | |
- name: {{ pillar['pkgs']['apache'] }} | |
- enable: True | |
- running | |
- watch: | |
- file: apache_conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment