mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-24 10:55:00 +01:00
Merge pull request #21 from wimkorevaar/wimkorevaar-enable-toggle-yumrepo
add toggle for enabling yum repo
This commit is contained in:
commit
c6790e40c2
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class hashi_stack::repo (
|
||||||
String $description = 'HashiCorp package repository.',
|
String $description = 'HashiCorp package repository.',
|
||||||
String $rpm_base = 'https://rpm.releases.hashicorp.com',
|
String $rpm_base = 'https://rpm.releases.hashicorp.com',
|
||||||
Integer[0,1] $repo_gpgcheck = 0,
|
Integer[0,1] $repo_gpgcheck = 0,
|
||||||
|
Integer[0,1] $repo_enabled = 1,
|
||||||
) {
|
) {
|
||||||
case $facts['os']['family'] {
|
case $facts['os']['family'] {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
|
@ -55,7 +56,7 @@ class hashi_stack::repo (
|
||||||
gpgcheck => 1,
|
gpgcheck => 1,
|
||||||
gpgkey => $key_source,
|
gpgkey => $key_source,
|
||||||
repo_gpgcheck => $repo_gpgcheck,
|
repo_gpgcheck => $repo_gpgcheck,
|
||||||
enabled => 1,
|
enabled => $repo_enabled,
|
||||||
proxy => $proxy,
|
proxy => $proxy,
|
||||||
priority => $priority,
|
priority => $priority,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue