Browse Source

Enhance yum repo definition

tags/2016.12
Filip Pytloun 8 years ago
parent
commit
96be4379cb
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      linux/system/repo.sls

+ 8
- 1
linux/system/repo.sls View File

@@ -70,9 +70,16 @@ linux_repo_{{ name }}:
linux_repo_{{ name }}:
pkgrepo.managed:
- name: {{ name }}
- humanname: {{ name }}
- humanname: {{ repo.get('humanname', name) }}
{%- if repo.mirrorlist is defined %}
- mirrorlist: {{ repo.mirrorlist }}
{%- else %}
- baseurl: {{ repo.source }}
{%- endif %}
- gpgcheck: {% if repo.get('gpgcheck', False) %}1{% else %}0{% endif %}
{%- if repo.gpgkey is defined %}
- gpgkey: {{ repo.gpgkey }}
{%- endif %}

{%- endif %}


Loading…
Cancel
Save