Instantly share code, notes, and snippets.

Embed
What would you like to do?
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