/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:
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
- 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 }}
- 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 }}