Skip to content

Commit

Permalink
renaming sysv to init for puppet provider compat
Browse files Browse the repository at this point in the history
  • Loading branch information
jfryman committed Oct 9, 2015
1 parent e111f9c commit 8979d20
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion manifests/helper/service_manager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
}
}
}
'sysv': {
'init': {
file { "/etc/init.d/${process}":
ensure => file,
owner => 'root',
Expand Down
14 changes: 7 additions & 7 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,23 @@
'RedHat': {
if $::operatingsystem == 'Amazon' {
$init_type = $::operatingsystemmajrelease ? {
'2014' => 'sysv',
'2015' => 'sysv',
default => 'sysv',
'2014' => 'init',
'2015' => 'init',
default => 'init',
}
} else {
$init_type = $::operatingsystemmajrelease ? {
'5' => 'sysv',
'6' => 'sysv',
'5' => 'init',
'6' => 'init',
default => 'systemd',
}
}
}
'Debian': {
if $::operatingsystem == 'Debian' {
$init_type = $::operatingsystemmajrelease ? {
'6' => 'sysv',
'7' => 'sysv',
'6' => 'init',
'7' => 'init',
'8' => 'systemd',
default => 'systemd',
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/profile/mistral.pp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
notify => Service['mistral'],
}
}
'sysv': {
'init': {
file { '/etc/init.d/mistral':
ensure => file,
owner => 'root',
Expand Down
2 changes: 1 addition & 1 deletion manifests/profile/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
line => "WORKERSNUM=${_workers}"
}
}
'sysv': {
'init': {
::st2::helper::service_manager{ 'actionrunner': }
}
}
Expand Down

0 comments on commit 8979d20

Please sign in to comment.