Add execution order for resources.

Change-Id: I9ec4396e2762f89e7b9011a464ace037cb4874eb
This commit is contained in:
Charles Hsu 2015-09-07 17:43:37 +08:00
parent 3c5634fb3d
commit 1f216327d9
1 changed files with 5 additions and 1 deletions

View File

@ -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,