Browse Source

Allow removing apt repositories

Change-Id: Ib7f34360b7580cbc4260b826d1eb21d443801fa5
pull/128/head
Filip Pytloun 7 years ago
parent
commit
bd16dc27d7
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      linux/system/repo.sls

+ 10
- 0
linux/system/repo.sls View File

@@ -101,6 +101,8 @@ linux_repo_{{ name }}_key:

{%- else %}

{%- if repo.get('enabled', True) %}

linux_repo_{{ name }}:
pkgrepo.managed:
{%- if repo.ppa is defined %}
@@ -138,6 +140,14 @@ linux_repo_{{ name }}:
{%- endif %}
{%- endif %}

{%- else %}

linux_repo_{{ name }}_absent:
file.absent:
- name: /etc/apt/sources.list.d/{{ name }}.list:

{%- endif %}

{%- endif %}

{%- endif %}

Loading…
Cancel
Save