From: Frank Brehm Date: Thu, 25 Feb 2016 16:55:39 +0000 (+0100) Subject: Adding debian/apt/files/00recommends X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d71788499026640de400e9017ecd222821a37778;p=salt%2Fstates.git Adding debian/apt/files/00recommends --- diff --git a/debian/apt/files/00recommends b/debian/apt/files/00recommends new file mode 100644 index 0000000..7fecedc --- /dev/null +++ b/debian/apt/files/00recommends @@ -0,0 +1,2 @@ +APT::Install-Recommends "false"; +Aptitude::Recommends-Important "false"; diff --git a/debian/apt/init.sls b/debian/apt/init.sls index 36c468e..d42dfbd 100644 --- a/debian/apt/init.sls +++ b/debian/apt/init.sls @@ -4,7 +4,19 @@ /etc/apt/sources.list.d: file.directory: - - clean: True + - user: root + - group: root + - dir_mode: 755 + +/etc/apt/sources.list.d/00recommends: + file.managed: + - user: root + - group: root + - mode: 644 + - source: salt://debian/apt/files/00recommends + - backup: minion + - require: + - file: /etc/apt/sources.list.d /etc/apt/sources.list: file.managed: @@ -18,6 +30,13 @@ debian_release: {{ debian_release }} debian_mirror: {{ debian_mirror }} +/etc/apt/sources.list.d: + file.directory: + - user: root + - group: root + - dir_mode: 755 + - clean: True + /etc/apt/sources.list.d/salt.list: file.managed: - user: root @@ -26,6 +45,8 @@ - source: salt://debian/apt/files/salt.list - template: jinja - backup: minion + - require: + - file: /etc/apt/sources.list.d - defaults: debian_release: {{ debian_release }} debian_mirror: {{ debian_mirror }} @@ -38,6 +59,8 @@ - source: salt://debian/apt/files/fbrehm.list - template: jinja - backup: minion + - require: + - file: /etc/apt/sources.list.d - defaults: debian_release: {{ debian_release }} debian_mirror: {{ debian_mirror }}