Merge "Add element to call os-refresh-config"
This commit is contained in:
commit
e5e36ce2c1
@ -9,8 +9,10 @@ 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
|
||||
runscript=$(os-refresh-config --print-base)/configuration.d/10-os-config-applier
|
||||
mkdir -p $(dirname $runscript)
|
||||
cat > $runscript <<- eof
|
||||
#!/bin/sh
|
||||
exec os-config-applier -t /opt/stack/openstack-config-templates/templates
|
||||
eof
|
||||
chmod 0755 $runscript
|
||||
|
7
elements/os-refresh-config/README.md
Normal file
7
elements/os-refresh-config/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
Install os-refresh-config.
|
||||
|
||||
os-refresh-config uses run-parts to run scripts in a pre-defined set
|
||||
of directories. Its intended purpose is to quiesce (pre-configure.d),
|
||||
configure (configure.d), migrate (migration.d), and then activate
|
||||
(post-configure.d) a configuration on first boot or in response to Heat
|
||||
Metadata changes.
|
1
elements/os-refresh-config/element-deps
Normal file
1
elements/os-refresh-config/element-deps
Normal file
@ -0,0 +1 @@
|
||||
heat-jeos
|
15
elements/os-refresh-config/install.d/01-os-refresh-config
Executable file
15
elements/os-refresh-config/install.d/01-os-refresh-config
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
|
||||
cat > /etc/init/os-refresh-config.conf <<- eof
|
||||
start on runlevel [2345]
|
||||
task
|
||||
exec os-refresh-config
|
||||
eof
|
Loading…
Reference in New Issue
Block a user