Skip to content

Instantly share code, notes, and snippets.

@anorgan
Created March 23, 2015 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anorgan/528d0d749cb6ffdd6fa8 to your computer and use it in GitHub Desktop.
Save anorgan/528d0d749cb6ffdd6fa8 to your computer and use it in GitHub Desktop.
Including and extending states
# /srv/salt/top.sls
base:
'*':
- website
# /srv/salt/apache/install.sls
apache:
pkg.installed:
- name: {{ salt['pillar.get']('pkgs:apache', 'apache2') }}
# /srv/salt/website/init.sls
include:
- apache.install
extend:
apache:
service:
- running
- enable: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment