From 1f216327d9b1784f30e280f75256bd94a275e903 Mon Sep 17 00:00:00 2001 From: Charles Hsu Date: Mon, 7 Sep 2015 17:43:37 +0800 Subject: [PATCH] Add execution order for resources. Change-Id: I9ec4396e2762f89e7b9011a464ace037cb4874eb --- .../puppet/modules/sscluster/manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/puppet/modules/sscluster/manifests/init.pp b/deployment_scripts/puppet/modules/sscluster/manifests/init.pp index 7498b37..fcdc8b4 100755 --- a/deployment_scripts/puppet/modules/sscluster/manifests/init.pp +++ b/deployment_scripts/puppet/modules/sscluster/manifests/init.pp @@ -51,7 +51,7 @@ class sscluster ( notice("Stop Glance API Service") exec { 'Stop glance-api': - command => "service $glance_api stop", + command => "service $glance_api stop", path => ['/usr/bin', '/sbin', '/bin'], } @@ -80,6 +80,7 @@ class sscluster ( admin_address => $api_address, endpoint_prefix => 'KEY', } + Class['swift::keystone::auth'] ~> Service['glance-api'] } notice("Start Glance API Service") @@ -89,6 +90,9 @@ class sscluster ( hasstatus => true, } + Exec['Stop glance-api'] -> Class['glance::backend::swift'] ~> Service['glance-api'] + Exec['Stop glance-api'] -> Glance_api_config<||> ~> Service['glance-api'] + if $deployment_mode == 'ha_compact' { service { 'swift-proxy': name => $swift_proxy,