diff --git a/hshbase/apt/init.sls b/hshbase/apt/init.sls index f3e0012e2d3de73ee94c44dd0a942530ac28869d..af285d1a9503c4389e4838b5ba664db0b964e729 100644 --- a/hshbase/apt/init.sls +++ b/hshbase/apt/init.sls @@ -3,6 +3,7 @@ include: - .proxy + - .pkgs # control /apt/sources.list and apt.sources.list.d on ubuntu and debian {% if grains['os'] == 'Debian' and grains['oscodename'] in ['squeeze', 'wheezy', 'jessie'] diff --git a/hshbase/apt/pkgs.sls b/hshbase/apt/pkgs.sls new file mode 100644 index 0000000000000000000000000000000000000000..f8fb6c8e5bcfef890deaa302f6bc6afd4a3bdc61 --- /dev/null +++ b/hshbase/apt/pkgs.sls @@ -0,0 +1,5 @@ +{% from "hshbase/map.jinja" import hshbase with context %} + +hshbase_apt_install_pkgs: + pkg.installed: + - pkgs: {{ hshbase.apt.pkgs }} diff --git a/hshbase/defaults.yaml b/hshbase/defaults.yaml index ecbeb53885107b91c51649776c64fa8ea597ee0f..54f10046e84b067a0320211c9b7b9e1c4d10df41 100644 --- a/hshbase/defaults.yaml +++ b/hshbase/defaults.yaml @@ -2,6 +2,7 @@ hshbase: apt: proxy: True proxy_address: http://apt-proxy.it.hs-hannover.de:8080 + pkgs: [] openvmtools: True time: server: time.rz.fh-hannover.de diff --git a/pillar.example b/pillar.example index 68b56691cdc7f8f541368768e9579030bf7333cf..3030e096d8b31c1334c3d4be9fd10080c8fc9ff6 100644 --- a/pillar.example +++ b/pillar.example @@ -2,4 +2,5 @@ hshbase: apt: proxy: True # if you do not want to to use apt-proxy: set to False proxy_address: http://apt-proxy.it.hs-hannover.de:8080 + pkgs: [pwgen, tree] openvmtools: True