ソースを参照

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年前
コミット
de05ac6f1c
1個のファイルの変更10行の追加4行の削除
  1. +10
    -4
      apt/apt_conf.sls

+ 10
- 4
apt/apt_conf.sls ファイルの表示

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

読み込み中…
キャンセル
保存