diskimage-builder/elements/os-refresh-config/install.d/01-os-refresh-config
Tim Miller aa8a2174a6 Add a cinder element.
Change-Id: I4729cf003896c3b4f8267d16e1b4822099231051
2013-02-28 17:09:30 -08:00

20 lines
521 B
Bash
Executable File

#!/bin/bash
# We need to install this early in install.d because other elements will
# need to use os-refresh-config --print-base to know where to put files
set -eux
install-packages git-core python-pip
pip install git+https://github.com/tripleo/os-refresh-config.git
for d in pre-configure.d configure.d migration.d post-configure.d; do
install -m 0755 -o root -g root -d /opt/stack/os-config-refresh/$d
done
cat > /etc/init/os-refresh-config.conf <<- eof
start on runlevel [2345]
task
exec os-refresh-config
eof