summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/deploychef/files/deploychef.init
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-support/deploychef/files/deploychef.init')
-rw-r--r--meta-openstack/recipes-support/deploychef/files/deploychef.init26
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
7deploychef_root=%DEPLOYCHEF_ROOT_DIR%
8LOG_DIR=/var/log/%PACKAGE_NAME%
9LOG_FILE=$LOG_DIR/%PACKAGE_NAME%.log
10script_file=$deploychef_root/run-openstackchef
11chefsolo_success_file="%SYSCONFDIR%/chefsolo.ran"
12if [ ! -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
26fi