Merge "Add cfn-hup configuration for os-refresh-config"
This commit is contained in:
commit
792a4a5916
@ -1 +1,2 @@
|
|||||||
heat-jeos
|
heat-jeos
|
||||||
|
os-config-applier
|
||||||
|
8
elements/os-refresh-config/install.d/60-os-refresh-config-hup
Executable file
8
elements/os-refresh-config/install.d/60-os-refresh-config-hup
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Note that this install.d script must be run after os-config-applier's
|
||||||
|
# install script so that we can make use of os-config-apply
|
||||||
|
set -eu
|
||||||
|
script_home=$(dirname $0)
|
||||||
|
template_home=$(os-config-applier --print-templates)/etc/cfn
|
||||||
|
install -o root -g root -m 0644 -D $script_home/cfn-hup.conf $template_home/cfn-hup.conf
|
||||||
|
install -o root -g root -m 0644 -D $script_home/hooks.conf $template_home/hooks.d/os-refresh-config.conf
|
5
elements/os-refresh-config/install.d/cfn-hup.conf
Normal file
5
elements/os-refresh-config/install.d/cfn-hup.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[main]
|
||||||
|
stack={{OpenStack::Heat::Stack.Name}}
|
||||||
|
credential-file=/var/lib/cloud/data/cfn-credentials
|
||||||
|
region={{OpenStack::Heat::Stack.Region}}
|
||||||
|
interval=10
|
5
elements/os-refresh-config/install.d/hooks.conf
Normal file
5
elements/os-refresh-config/install.d/hooks.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[os-refresh-config]
|
||||||
|
triggers=post.add,post.delete.post.update
|
||||||
|
path=Resources.{{OpenStack::Heat::Stack.RefreshResource}}.Metadata
|
||||||
|
action=os-refresh-config
|
||||||
|
runas=root
|
Loading…
Reference in New Issue
Block a user