ensure that crmsh is installed early enough
This commit is contained in:
parent
d4b8b6432d
commit
fc32b88216
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
case node.platform
|
case node.platform
|
||||||
when 'suse'
|
when 'suse'
|
||||||
default[:pacemaker][:platform][:packages] = %w(pacemaker)
|
default[:pacemaker][:platform][:packages] = %w(pacemaker crmsh)
|
||||||
|
|
||||||
# pacemaker-mgmt-client provides hb_gui, which it's useful
|
# pacemaker-mgmt-client provides hb_gui, which it's useful
|
||||||
# to run over ssh.
|
# to run over ssh.
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
node[:pacemaker][:platform][:packages].each do |pkg|
|
||||||
|
package pkg do
|
||||||
|
action :install
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
crm_conf = node[:pacemaker][:crm][:initial_config_file]
|
crm_conf = node[:pacemaker][:crm][:initial_config_file]
|
||||||
template crm_conf do
|
template crm_conf do
|
||||||
source "crm-initial.conf.erb"
|
source "crm-initial.conf.erb"
|
||||||
@ -31,12 +37,6 @@ execute "crm initial configuration" do
|
|||||||
command "crm configure load replace #{crm_conf}"
|
command "crm configure load replace #{crm_conf}"
|
||||||
end
|
end
|
||||||
|
|
||||||
node[:pacemaker][:platform][:packages].each do |pkg|
|
|
||||||
package pkg do
|
|
||||||
action :install
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if platform_family? "rhel"
|
if platform_family? "rhel"
|
||||||
execute "sleep 2"
|
execute "sleep 2"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user