From f9f292634d2d62a7e3eabfbd73ca9d98da4dc9dd Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Feb 09 2017 18:55:48 +0000 Subject: add support for package installation install aaa_base in all machines --- diff --git a/pillar/common.sls b/pillar/common.sls index 2010a9f..6a54c5a 100644 --- a/pillar/common.sls +++ b/pillar/common.sls @@ -132,3 +132,5 @@ zypper: zypp_conf: main: solver.onlyRequires: 'true' + packages: + aaa_base: {} diff --git a/salt/profile/zypper/packages.sls b/salt/profile/zypper/packages.sls new file mode 100644 index 0000000..01ae67d --- /dev/null +++ b/salt/profile/zypper/packages.sls @@ -0,0 +1,14 @@ +{% set packages = salt['pillar.get']('zypper:packages', {}) %} + +{% for package, data in packages.iteritems() %} +{{ package }}: + pkg.installed: + {% if data.has_key('refresh') %} + - refresh: {{ data.refresh }} + {% else %} + - refresh: False + {% endif %} + {% if data.has_key('fromrepo') %} + - fromrepo: {{ data.fromrepo }} + {% endif %} +{% endfor %}