diff options
Diffstat (limited to 'meta-openstack/recipes-support/deploychef/files/deploychef.init')
| -rw-r--r-- | meta-openstack/recipes-support/deploychef/files/deploychef.init | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/meta-openstack/recipes-support/deploychef/files/deploychef.init b/meta-openstack/recipes-support/deploychef/files/deploychef.init deleted file mode 100644 index 22f318b..0000000 --- a/meta-openstack/recipes-support/deploychef/files/deploychef.init +++ /dev/null | |||
| @@ -1,26 +0,0 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | #After this script executes, it runs the 'run-openstackchef' script found in | ||
| 3 | #/opt/deploychef/ directory. After that, all the | ||
| 4 | #configuration files that were registered with openstackchef class are | ||
| 5 | #created using run-time environment variables and default values | ||
| 6 | # found in /opt/deploychef/cookbooks/openstack/attributes/default.rb | ||
| 7 | deploychef_root=%DEPLOYCHEF_ROOT_DIR% | ||
| 8 | LOG_DIR=/var/log/%PACKAGE_NAME% | ||
| 9 | LOG_FILE=$LOG_DIR/%PACKAGE_NAME%.log | ||
| 10 | script_file=$deploychef_root/run-openstackchef | ||
| 11 | chefsolo_success_file="%SYSCONFDIR%/chefsolo.ran" | ||
| 12 | if [ ! -f $chefsolo_success_file ]; then | ||
| 13 | if [ -f $script_file ] ; then | ||
| 14 | mkdir -p $LOG_DIR | ||
| 15 | #Remove deploy init script if present | ||
| 16 | rm -f /etc/init.d/deploy 2>/dev/null | ||
| 17 | cd $deploychef_root | ||
| 18 | . $(basename $script_file) | ||
| 19 | if [ $? = 0 ]; then | ||
| 20 | echo "Deploychef successfully created chefsolo configuration files" \ | ||
| 21 | > $LOG_FILE | ||
| 22 | else | ||
| 23 | echo "deploychef ERROR: $i failed." > $LOG_FILE | ||
| 24 | fi | ||
| 25 | fi | ||
| 26 | fi | ||
