ensure that crmsh is installed early enough

This commit is contained in:
Adam Spiers 2014-01-30 15:17:49 +00:00
parent d4b8b6432d
commit fc32b88216
2 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@
case node.platform
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
# to run over ssh.

View File

@ -18,6 +18,12 @@
# 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]
template crm_conf do
source "crm-initial.conf.erb"
@ -31,12 +37,6 @@ execute "crm initial configuration" do
command "crm configure load replace #{crm_conf}"
end
node[:pacemaker][:platform][:packages].each do |pkg|
package pkg do
action :install
end
end
if platform_family? "rhel"
execute "sleep 2"