Hotfix: Add pcs utility, add ordering for crmsh package

Change-Id: I15a6dd784282383e605a57049f94820972e5d03b
This commit is contained in:
Sergey Vasilenko 2014-02-20 17:32:52 +04:00
parent 35299a0aa5
commit 157197ab6b

View File

@ -115,21 +115,22 @@ class corosync (
}
}
if $::operatingsystem == 'Ubuntu' {
file { "/etc/init/corosync.override":
replace => "no",
ensure => "present",
content => "manual",
mode => '0644',
before => Package[corosync],
}
file { "/etc/init/corosync.override":
replace => "no",
ensure => "present",
content => "manual",
mode => '0644',
before => Package[corosync],
}
package {'python-pcs': ensure => present} ->
Package['pacemaker']
} else {
package {'pcs': ensure => present} ->
package {'crmsh': ensure => present} ->
Package['pacemaker']
}
package { ['corosync', 'pacemaker']: ensure => present }
if $::osfamily == "RedHat"
{
package {'crmsh': ensure => present}
}
# Template uses:
# - $unicast_addresses
# - $multicast_address