Skip to content

Commit

Permalink
Re-enable epel-testing which got accidentially dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
ixs committed Mar 14, 2018
1 parent 5d2afe0 commit 84cdd23
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 14 additions & 2 deletions epel/init.sls
Expand Up @@ -9,7 +9,6 @@ install_pubkey_epel:
- source: {{ epel.key }}
- source_hash: {{ epel.key_hash }}
epel_release:
pkg.installed:
- sources:
Expand Down Expand Up @@ -48,5 +47,18 @@ enable_epel:
- pattern: '^\s*enabled=[0,1]'
- repl: 'enabled=1'
{% endif %}
{% endif %}
{% if epel.testing %}
enable_epel_testing:
file.replace:
- name: /etc/yum.repos.d/epel-testing.repo
- pattern: '^\s*enabled=[0,1]'
- repl: 'enabled=1'
{% else %}
disable_epel_testing:
file.replace:
- name: /etc/yum.repos.d/epel-testing.repo
- pattern: '^\s*enabled=[0,1]'
- repl: 'enabled=0'
{% endif %}
{% endif %}
3 changes: 3 additions & 0 deletions pillar.example
Expand Up @@ -12,3 +12,6 @@ epel:

# Disable repo so requires the --enablerepo flag to use
disabled: false

# Disable (default)/enable EPEL testing
testing: false

0 comments on commit 84cdd23

Please sign in to comment.