Pārlūkot izejas kodu

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 pirms 6 gadiem
vecāks
revīzija
de05ac6f1c
1 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. +10
    -4
      apt/apt_conf.sls

+ 10
- 4
apt/apt_conf.sls Parādīt failu

@@ -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:

Notiek ielāde…
Atcelt
Saglabāt