Sfoglia il codice sorgente

Merge pull request #37 from ze42/fix_preferences

fix warning on preferences as not managed
tags/v0.7.0
Javier Bértoli 6 anni fa
parent
commit
35cf2e0c43
Nessun account collegato all'indirizzo email del committer
2 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. +5
    -3
      apt/preferences.sls
  2. +2
    -0
      apt/repositories.sls

+ 5
- 3
apt/preferences.sls Vedi File

@@ -7,13 +7,15 @@
{% set default_url = apt.get('default_url', apt_map.default_url) %}

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

{{ preferences_dir }}:

+ 2
- 0
apt/repositories.sls Vedi File

@@ -18,6 +18,8 @@
{% if remove_sources_list %}
- contents: ''
- contents_newline: False
{% else %}
- replace: False
{% endif %}

{{ sources_list_dir }}:

Loading…
Annulla
Salva