9ed4aaf2b0
os-refresh-config simply runs things in a predictable order in directories that other elements can populate. This element installs it and sets it up to run at boot. We also modify os-config-applier element to be called by this rather than to have its own upstart job. This provides an example of how other elements can insert themselves into the refresh process. Change-Id: I52d72b7fd302ec317840af87fa77299387af99ad
15 lines
376 B
Bash
Executable file
15 lines
376 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
|
|
|
|
cat > /etc/init/os-refresh-config.conf <<- eof
|
|
start on runlevel [2345]
|
|
task
|
|
exec os-refresh-config
|
|
eof
|