Browse Source

Merge "Allow removing apt repositories"

pull/128/head
Jakub Josef 7 years ago
parent
commit
4c516f187f
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