diff options
Diffstat (limited to 'meta-openstack/recipes-support/deploychef/files/run-postinsts')
| -rw-r--r-- | meta-openstack/recipes-support/deploychef/files/run-postinsts | 16 |
1 files changed, 15 insertions, 1 deletions
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 | # |
| 28 | source /opt/deploychef/deploychef-inc | 28 | source /opt/deploychef/deploychef-inc |
| 29 | #Run postinsts scripts | 29 | #Run postinsts scripts |
| 30 | execute_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. | ||
| 35 | if [ -f /etc/keystone/service-user-setup ]; then | ||
| 36 | #Remove stale tenants/users/services | ||
| 37 | rm -f /etc/keystone/service-user-setup | ||
| 38 | fi | ||
| 39 | if [ -e /etc/init.d/run-postinsts ]; then | ||
| 40 | echo "Running postinstall scripts" >> $LOG_FILE | ||
| 41 | sh -c /etc/init.d/run-postinsts | ||
| 42 | else | ||
| 43 | echo "EEROR: Tenants/users/services not registered with Keystone" >> $LOG_FILE | ||
| 44 | fi | ||
| 31 | #Start all the modules specified in startup-list | 45 | #Start all the modules specified in startup-list |
| 32 | start_stop_services 'startup-list' | 46 | start_stop_services 'startup-list' |
| 33 | #Restart cloud service cloud-init | 47 | #Restart cloud service cloud-init |
