From b8d51d3c9a1ffe3b7dbfdea55364580738def485 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Tue, 18 Dec 2012 14:54:33 -0800 Subject: [PATCH] Add element to install config-applier Change-Id: I91f519f5ecbe1c5a252e87af28b66eef983478b0 --- elements/config-applier/README.md | 2 ++ elements/config-applier/install.d/20-config-applier | 13 +++++++++++++ .../config-applier/install.d/config-applier.upstart | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 elements/config-applier/README.md create mode 100755 elements/config-applier/install.d/20-config-applier create mode 100644 elements/config-applier/install.d/config-applier.upstart diff --git a/elements/config-applier/README.md b/elements/config-applier/README.md new file mode 100644 index 000000000..95aa3427b --- /dev/null +++ b/elements/config-applier/README.md @@ -0,0 +1,2 @@ +Installs config-applier to handle Heat Metadata based configuration of +the system. diff --git a/elements/config-applier/install.d/20-config-applier b/elements/config-applier/install.d/20-config-applier new file mode 100755 index 000000000..b6dcc6c10 --- /dev/null +++ b/elements/config-applier/install.d/20-config-applier @@ -0,0 +1,13 @@ +#!/bin/sh + +home=$(dirname $0) +set -uex + +mkdir -p /opt/stack +cd /opt/stack +git clone https://github.com/tripleo/config-applier.git +cd config-applier +git checkout master +pip install -e . -U + +install -m 0644 -o root -g root $home/config-applier.upstart /etc/init/config-applier.conf diff --git a/elements/config-applier/install.d/config-applier.upstart b/elements/config-applier/install.d/config-applier.upstart new file mode 100644 index 000000000..5ba90ece8 --- /dev/null +++ b/elements/config-applier/install.d/config-applier.upstart @@ -0,0 +1,8 @@ +start on runlevel [2345] + +task + +author "Clint Byrum " +description "Config Applier" + +exec config-applier