Browse Source

Merge pull request #37 from ze42/fix_preferences

fix warning on preferences as not managed
tags/v0.7.0
Javier Bértoli 6 years ago
parent
commit
35cf2e0c43
No account linked to committer's email address
2 changed files with 7 additions and 3 deletions
  1. +5
    -3
      apt/preferences.sls
  2. +2
    -0
      apt/repositories.sls

+ 5
- 3
apt/preferences.sls View File

{% set default_url = apt.get('default_url', apt_map.default_url) %} {% set default_url = apt.get('default_url', apt_map.default_url) %}


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


{{ preferences_dir }}: {{ preferences_dir }}:

+ 2
- 0
apt/repositories.sls View File

{% if remove_sources_list %} {% if remove_sources_list %}
- contents: '' - contents: ''
- contents_newline: False - contents_newline: False
{% else %}
- replace: False
{% endif %} {% endif %}


{{ sources_list_dir }}: {{ sources_list_dir }}:

Loading…
Cancel
Save