diff options
Diffstat (limited to 'meta-openstack/recipes-support/deploychef/files/run-deploychef')
| -rw-r--r-- | meta-openstack/recipes-support/deploychef/files/run-deploychef | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/meta-openstack/recipes-support/deploychef/files/run-deploychef b/meta-openstack/recipes-support/deploychef/files/run-deploychef index 03e8807..e8a8a57 100644 --- a/meta-openstack/recipes-support/deploychef/files/run-deploychef +++ b/meta-openstack/recipes-support/deploychef/files/run-deploychef | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | # run-chefsolo | 2 | # run-deploychef |
| 3 | # | 3 | # |
| 4 | # Copyright (c) 2014 Wind River Systems, Inc. | 4 | # Copyright (c) 2014 Wind River Systems, Inc. |
| 5 | # | 5 | # |
| @@ -22,16 +22,12 @@ | |||
| 22 | # THE SOFTWARE. | 22 | # THE SOFTWARE. |
| 23 | # | 23 | # |
| 24 | # | 24 | # |
| 25 | # This file is the main file that the install will call in order to reconfig | 25 | # This file is the main script file that reconfigures the stack when any of |
| 26 | # and Openstack node | 26 | # the attributes variables change at run-time. |
| 27 | # bash run-chefsolo | ||
| 28 | # | 27 | # |
| 29 | # | 28 | #Shutdown all registered services |
| 30 | #Shutdown all openstack modules | 29 | . service-shutdown |
| 31 | bash service-shutdown | 30 | #Re-generate configuration files from template files |
| 32 | #Use chefsolo to bake our recipe and generate configuration files/scripts | 31 | . run-openstackchef |
| 33 | chef-solo -f -c config.rb -j attributes.json | 32 | #Run post-install script and then start services |
| 34 | #Workaround to force the files to be copied from postinsts dir | 33 | . run-postinsts |
| 35 | chef-solo -f -c config.rb -j attributes.json | ||
| 36 | #Restart services | ||
| 37 | bash run-postinsts /etc/%POSTINSTS_DIR%/ | ||
