Use: network: pkgs: purged: - resolvconf installed: - isc-dhcp-clientpull/9/head
#!jinja|yaml | |||||
{% for action, pkgs in salt['pillar.get']('network:pkgs', {}).iteritems() %} | |||||
network_pkgs_{{ action }}: | |||||
pkg.{{ action }}: | |||||
- pkgs: {{ pkgs }} | |||||
{% endfor %} |
netmask: 255.255.0.0 | netmask: 255.255.0.0 | ||||
gateway: 192.168.2.1 | gateway: 192.168.2.1 | ||||
# To add/remove packages here. | |||||
# You need to include the state network.packages in your salt. | |||||
pkgs: | |||||
purged: | |||||
- resolvconf | |||||
installed: | |||||
- isc-dhcp-client |