Bläddra i källkod

apt_conf: remove_* consistent with other similar options

remove_* was recently changed to always place empty file, but just set
perms if not present, without replace.

Do the same with that option.
tags/v0.7.0
Adrien "ze" Urban 6 år sedan
förälder
incheckning
de05ac6f1c
1 ändrade filer med 10 tillägg och 4 borttagningar
  1. +10
    -4
      apt/apt_conf.sls

+ 10
- 4
apt/apt_conf.sls Visa fil

@@ -4,11 +4,17 @@
{% set clean_apt_conf_d = salt['pillar.get']('apt:clean_apt_conf_d', apt_map.clean_apt_conf_d) %}
{% set apt_conf_d = salt['pillar.get']('apt:apt_conf_d', apt_map.apt_conf_d) %}

{% if remove_apt_conf %}
/etc/apt/apt.conf:
file:
- absent
{% endif %}
file.managed:
- mode: '0644'
- user: root
- group: root
{% if remove_apt_conf %}
- contents: ''
- contents_newline: False
{% else %}
- replace: False
{% endif %}

{{ confd_dir }}:
file.directory:

Laddar…
Avbryt
Spara