summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/deploychef/files/run-deploychef
diff options
context:
space:
mode:
authorMustapha Lansana <Mustapha.Lansana@windriver.com>2014-05-27 22:02:57 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-09-26 09:09:21 -0400
commit800f64a64014fdbe046a6d0969303057de2e6539 (patch)
treed3564354420428bf294260e11597c0080b60831b /meta-openstack/recipes-support/deploychef/files/run-deploychef
parenteeda01a7be07c78dac7b6ae5013524d857ceba3b (diff)
downloadmeta-cloud-services-800f64a64014fdbe046a6d0969303057de2e6539.tar.gz
deploychef: helper script and configuration files
Deploychef package reconfigures an openstack installation. These are helper files used by the deploychef package to bring the system down and back up again before, and after chef-solo has generated our desired configuration files from template files. Later on in this commit series, the *-list files will be replaced with dynamically generated *-list files by openstackchef. In addition, the script files will be adapted to support openstackchef. Signed-off-by: Mustapha Lansana <Mustapha.Lansana@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/deploychef/files/run-deploychef')
-rw-r--r--meta-openstack/recipes-support/deploychef/files/run-deploychef37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/deploychef/files/run-deploychef b/meta-openstack/recipes-support/deploychef/files/run-deploychef
new file mode 100644
index 0000000..03e8807
--- /dev/null
+++ b/meta-openstack/recipes-support/deploychef/files/run-deploychef
@@ -0,0 +1,37 @@
1#!/bin/bash
2# run-chefsolo
3#
4# Copyright (c) 2014 Wind River Systems, Inc.
5#
6# Permission is hereby granted, free of charge, to any person obtaining a copy
7# of this software and associated documentation files (the "Software"), to deal
8# in the Software without restriction, including without limitation the rights
9# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10# copies of the Software, and to permit persons to whom the Software is
11# furnished to do so, subject to the following conditions:
12#
13# The above copyright notice and this permission notice shall be included in
14# all copies or substantial portions of the Software.
15
16# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22# THE SOFTWARE.
23#
24#
25# This file is the main file that the install will call in order to reconfig
26# and Openstack node
27# bash run-chefsolo
28#
29#
30#Shutdown all openstack modules
31bash service-shutdown
32#Use chefsolo to bake our recipe and generate configuration files/scripts
33chef-solo -f -c config.rb -j attributes.json
34#Workaround to force the files to be copied from postinsts dir
35chef-solo -f -c config.rb -j attributes.json
36#Restart services
37bash run-postinsts /etc/%POSTINSTS_DIR%/