From 455bae12bd21466fc62da65cd64eb043cb4f5a62 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Wed, 30 Jan 2013 10:57:12 -0800 Subject: [PATCH] Add os-config-applier element. Change-Id: Ie7ee15c26fbbcf93f2708bc63005cee5f75e8fc1 --- .../install.d/50-os-config-applier | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 elements/os-config-applier/install.d/50-os-config-applier diff --git a/elements/os-config-applier/install.d/50-os-config-applier b/elements/os-config-applier/install.d/50-os-config-applier new file mode 100755 index 00000000..d97fe814 --- /dev/null +++ b/elements/os-config-applier/install.d/50-os-config-applier @@ -0,0 +1,16 @@ +#!/bin/bash +set -eux + +TEMPLATES=git://github.com/tripleo/openstack-config-templates.git + +sudo apt-get install --yes git python-pip +pip install -U git+https://github.com/tripleo/os-config-applier.git + +mkdir -p /opt/stack +git clone $TEMPLATES /opt/stack/openstack-config-templates + +cat > /etc/init/os-config-applier.conf <<- eof +start on runlevel [2345] +task +exec os-config-applier -t /opt/stack/openstack-config-templates/templates +eof