Browse Source

Add a simple way to add/remove packages with the network state.

Use:
network:
pkgs:
    purged:
      - resolvconf
    installed:
      - isc-dhcp-client
pull/9/head
René Jochum 9 years ago
parent
commit
392636df1a
2 changed files with 14 additions and 0 deletions
  1. +7
    -0
      network/packages.sls
  2. +7
    -0
      pillar.example.sls

+ 7
- 0
network/packages.sls View File

#!jinja|yaml

{% for action, pkgs in salt['pillar.get']('network:pkgs', {}).iteritems() %}
network_pkgs_{{ action }}:
pkg.{{ action }}:
- pkgs: {{ pkgs }}
{% endfor %}

+ 7
- 0
pillar.example.sls View File

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

Loading…
Cancel
Save