diff options
author | 2016-11-11 15:43:03 +0000 | |
---|---|---|
committer | 2016-11-11 15:43:03 +0000 | |
commit | b7c8e11f7b2abb77e2f7dc629165beace8e7feb2 (patch) | |
tree | 16c48bf32e0816043ac9472f8195223ac986ddda /manifests | |
parent | f5a20ed5911324311b02773dde8a917eb82ddc0c (diff) | |
parent | b9dcee028795bb1132176df7ef3f435039cc20cb (diff) |
Merge "Ensure keepalived is restarted when necessary."
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/network/os_net_config.pp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/network/os_net_config.pp b/manifests/network/os_net_config.pp index 7e07f6c..3283b5f 100644 --- a/manifests/network/os_net_config.pp +++ b/manifests/network/os_net_config.pp @@ -30,6 +30,17 @@ class tripleo::network::os_net_config { Package['openvswitch'], Service['openvswitch'], ], + notify => Exec['trigger-keepalived-restart'], } + # By modifying the keepalived.conf file we ensure that puppet will + # trigger a restart of keepalived during the main stage. Adding back + # any lost conf during the os-net-config step. + exec { 'trigger-keepalived-restart': + command => '/usr/bin/echo "# Restart keepalived" >> /etc/keepalived/keepalived.conf', + path => '/usr/bin:/bin', + refreshonly => true, + # Only if keepalived is installed + onlyif => 'test -e /etc/keepalived/keepalived.conf', + } } |