Skip to content

Commit

Permalink
setting default to false for all operating systems, making it a opt-i…
Browse files Browse the repository at this point in the history
…n feature for all
  • Loading branch information
attachmentgenie committed Jan 15, 2021
1 parent b126110 commit d50c07d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#
class consul::params {

$manage_repo = false

case $facts['architecture'] {
'x86_64', 'x64', 'amd64': { $arch = 'amd64' }
'i386': { $arch = '386' }
Expand Down Expand Up @@ -62,31 +64,24 @@
case $facts['os']['name'] {
'Ubuntu': {
$shell = '/usr/sbin/nologin'
$manage_repo = true
}
'RedHat': {
$shell = '/sbin/nologin'
$manage_repo = true
}
'Debian': {
$shell = '/usr/sbin/nologin'
$manage_repo = true
}
'Archlinux': {
$shell = '/sbin/nologin'
$manage_repo = false
}
'OpenSuSE': {
$shell = '/usr/sbin/nologin'
$manage_repo = false
}
/SLE[SD]/: {
$shell = '/usr/sbin/nologin'
$manage_repo = false
}
default: {
$shell = undef
$manage_repo = false
}
}

Expand Down

0 comments on commit d50c07d

Please sign in to comment.