Install os-refresh-config scripts automatically

Updating the cinder element to reflect the new desired way to ship
os-refresh-config scripts.

Change-Id: Ibde1275725241204f6097ad7cc0ba0de5e6cd431
This commit is contained in:
Clint Byrum 2013-03-06 11:22:46 -08:00
parent 9215817ec9
commit 91351658b3
6 changed files with 5 additions and 10 deletions

View File

@ -1,3 +0,0 @@
#!/bin/bash
set -eu
use-config-templates $(dirname $0)/../config

View File

@ -2,7 +2,7 @@
set -eux set -eux
install-packages lvm2 install-packages lvm2
os-svc-install -n cinder -u cinder -r https://github.com/openstack/cinder.git os-svc-install -n cinder -u cinder -r https://github.com/openstack/cinder.git -c cinder-all
os-svc-upstart cinder-api cinder /usr/local/bin/cinder-api "--config-dir /etc/cinder" os-svc-upstart cinder-api cinder /usr/local/bin/cinder-api "--config-dir /etc/cinder"
os-svc-upstart cinder-volume cinder /usr/local/bin/cinder-volume "--config-dir /etc/cinder" os-svc-upstart cinder-volume cinder /usr/local/bin/cinder-volume "--config-dir /etc/cinder"
@ -14,9 +14,3 @@ echo 'include /var/run/cinder/volumes/*' > /etc/tgt/conf.d/cinder_tgt.conf
echo "cinder ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/cinder echo "cinder ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/cinder
chmod 0440 /etc/sudoers.d/cinder chmod 0440 /etc/sudoers.d/cinder
visudo -c visudo -c
os_refresh=$(os-refresh-config --print-base)
for stage in pre-configure migration post-configure; do
install -m 0755 -o root -g root $(dirname $0)/../$stage $os_refresh/$stage.d/72-cinder
done

View File

@ -0,0 +1,4 @@
#!/bin/bash
SCRIPT_BASE=$(os-refresh-config --print-base)
SCRIPT_SOURCE=$(dirname $0)/../os-refresh-config
rsync -r $SCRIPT_SOURCE/ $SCRIPT_BASE/