Merge pull request #10 from centromere/patch-1
Added support for other Ubuntu releases
This commit is contained in:
Коммит
20f90d03ec
|
@ -19,10 +19,10 @@ class consul_template::params {
|
|||
$os = downcase($::kernel)
|
||||
|
||||
$init_style = $::operatingsystem ? {
|
||||
'Ubuntu' => $::lsbdistrelease ? {
|
||||
'8.04' => 'debian',
|
||||
/(10|12|14)\.04/ => 'upstart',
|
||||
default => undef
|
||||
'Ubuntu' => $::lsbdistrelease ? {
|
||||
'8.04' => 'debian',
|
||||
'15.04' => 'systemd',
|
||||
default => 'upstart'
|
||||
},
|
||||
/CentOS|RedHat/ => $::operatingsystemmajrelease ? {
|
||||
/(4|5|6)/ => 'sysv',
|
||||
|
|
Загрузка…
Ссылка в новой задаче