Run os-config-applier using os-refresh-config.
There's no need to run os-config-applier at any time except when os-refresh-config is in its configure state. Change-Id: Id9758294c60469a976b61c68fc26d9b83130599a
This commit is contained in:
1
elements/os-config-applier/element-deps
Normal file
1
elements/os-config-applier/element-deps
Normal file
@@ -0,0 +1 @@
|
|||||||
|
os-refresh-config
|
@@ -6,27 +6,3 @@ pip install -U git+https://github.com/stackforge/os-config-applier.git
|
|||||||
|
|
||||||
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
||||||
mkdir -p $TEMPLATE_ROOT
|
mkdir -p $TEMPLATE_ROOT
|
||||||
|
|
||||||
# Upstart
|
|
||||||
if [ -d /etc/init ] ; then
|
|
||||||
cat > /etc/init/os-config-applier.conf <<eof
|
|
||||||
start on runlevel [2345]
|
|
||||||
task
|
|
||||||
exec os-config-applier
|
|
||||||
eof
|
|
||||||
# Systemd
|
|
||||||
elif [ -d /etc/systemd/system ] ; then
|
|
||||||
cat > /etc/systemd/system/os-config-applier.service <<eof
|
|
||||||
[Unit]
|
|
||||||
Description=Apply configs from Heat metadata
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=os-config-applier
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
eof
|
|
||||||
else
|
|
||||||
echo "Only systems with systemd or upstart are supported."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
exec os-config-applier -s OpenStack::Config
|
Reference in New Issue
Block a user