Rename os-config-applier to os-apply-config.
This is being done to reduce confusion between os-refresh-config and os-config-applier. In order to make the transition smooth, all this patch does is rename the element, install the now pypi available os-apply-config, and support both the old and new directory names for templates, allowing incremental migration of users. Change-Id: I8c4c7679799f4e8b436ce766791f45f4c81d75f2
This commit is contained in:
parent
a23985f464
commit
ca62ece4a1
|
@ -1,3 +1,3 @@
|
|||
os-svc-install
|
||||
os-refresh-config
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
os-svc-install
|
||||
os-refresh-config
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
heat
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
os-svc-install
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
os-svc-install
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
mysql
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
os-svc-install
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
Install os-apply-config.
|
||||
|
||||
The contents of any os-config-applier or os-apply-config subdirectories in
|
||||
templates will be installed into the default template directory automatically.
|
||||
|
||||
An os-refresh-config hook is created to invoke os-apply-config automatically.
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
install-packages python-pip
|
||||
|
||||
pip install -U os-apply-config
|
||||
TEMPLATE_ROOT=$(os-apply-config --print-templates)
|
||||
mkdir -p $TEMPLATE_ROOT
|
|
@ -1,8 +1,11 @@
|
|||
#!/bin/bash
|
||||
# Note that this relies on the detail that all elements share one dir
|
||||
# inside the chroot. This will copy all the files that elements have
|
||||
# added to element/os-config-applier into the appropriate location.
|
||||
# added to element/os-config-applier or element/os-apply-config into the
|
||||
# appropriate location.
|
||||
set -eux
|
||||
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
||||
TEMPLATE_ROOT=$(os-apply-config --print-templates)
|
||||
TEMPLATE_SOURCE=$(dirname $0)/../os-config-applier
|
||||
rsync -r $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/
|
||||
TEMPLATE_SOURCE=$(dirname $0)/../os-apply-config
|
||||
rsync -r $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
exec os-apply-config
|
|
@ -1,3 +0,0 @@
|
|||
Install os-config-applier. Also copy any templates placed in any element
|
||||
root under the sub-directory 'os-config-applier' into the appropriate
|
||||
template directory.
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
install-packages git-core python-pip
|
||||
pip install -U git+https://github.com/stackforge/os-config-applier.git
|
||||
|
||||
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
||||
mkdir -p $TEMPLATE_ROOT
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/bash
|
||||
exec os-config-applier
|
|
@ -1,3 +1,3 @@
|
|||
os-svc-install
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
os-refresh-config
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
os-refresh-config
|
||||
os-config-applier
|
||||
os-apply-config
|
||||
heat-cfntools
|
||||
|
|
Loading…
Reference in New Issue