summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-openstack/recipes-support/deploychef/files/run-deploychef6
-rw-r--r--meta-openstack/recipes-support/deploychef/files/run-postinsts16
2 files changed, 18 insertions, 4 deletions
diff --git a/meta-openstack/recipes-support/deploychef/files/run-deploychef b/meta-openstack/recipes-support/deploychef/files/run-deploychef
index e8a8a57..4fd41d8 100644
--- a/meta-openstack/recipes-support/deploychef/files/run-deploychef
+++ b/meta-openstack/recipes-support/deploychef/files/run-deploychef
@@ -26,8 +26,8 @@
26# the attributes variables change at run-time. 26# the attributes variables change at run-time.
27# 27#
28#Shutdown all registered services 28#Shutdown all registered services
29. service-shutdown 29. ./service-shutdown
30#Re-generate configuration files from template files 30#Re-generate configuration files from template files
31. run-openstackchef 31. ./run-openstackchef
32#Run post-install script and then start services 32#Run post-install script and then start services
33. run-postinsts 33. ./run-postinsts
diff --git a/meta-openstack/recipes-support/deploychef/files/run-postinsts b/meta-openstack/recipes-support/deploychef/files/run-postinsts
index 737012d..8380927 100644
--- a/meta-openstack/recipes-support/deploychef/files/run-postinsts
+++ b/meta-openstack/recipes-support/deploychef/files/run-postinsts
@@ -27,7 +27,21 @@
27# 27#
28source /opt/deploychef/deploychef-inc 28source /opt/deploychef/deploychef-inc
29#Run postinsts scripts 29#Run postinsts scripts
30execute_all_postinsts 30#execute_all_postinsts
31#The registration of tenants/user/services has moved from the postinstall
32#scriptis to a single setup file; /etc/keystone/service-user-setup, which
33#handles the registration through /etc/keystone/identity.sh script.
34#Therefore, execute /etc/init.d/run-postinsts which in-turn runs this script.
35if [ -f /etc/keystone/service-user-setup ]; then
36 #Remove stale tenants/users/services
37 rm -f /etc/keystone/service-user-setup
38fi
39if [ -e /etc/init.d/run-postinsts ]; then
40 echo "Running postinstall scripts" >> $LOG_FILE
41 sh -c /etc/init.d/run-postinsts
42else
43 echo "EEROR: Tenants/users/services not registered with Keystone" >> $LOG_FILE
44fi
31#Start all the modules specified in startup-list 45#Start all the modules specified in startup-list
32start_stop_services 'startup-list' 46start_stop_services 'startup-list'
33#Restart cloud service cloud-init 47#Restart cloud service cloud-init