This commit extends the deep_compare logic to stonith resources,
allowing operators to update their fencing configuration by editing
the relevant yaml files and running a stack update.
Needs 'pacemaker::stonith::$(fence_XXX)::deep_compare: true' to be set
as it is false by default.
If necessary users can also change the value of:
'pacemaker::stonith::$(fence_XXX)::update_settle_secs' (600s by default)
Tested as following:
1. Deployed overcloud with fencing.yaml containing:
parameter_defaults:
EnableFencing: true
FencingConfig:
devices:
- agent: fence_ipmilan
host_mac: 52:54:00:99:08:46
params:
ipaddr: 172.16.0.1
ipport: '6230'
lanplus: true
login: admin
passwd: password
resulting in:
$ pcs stonith show stonith-fence_ipmilan-525400990846 |grep passwd |awk '{print $6}'
passwd=password
2. Changed the "password" value:
passwd: bogus
3. Did a stack update, result:
$ pcs stonith show stonith-fence_ipmilan-525400990846 |grep passwd |awk '{print $6}'
passwd=bogus
Change-Id: I1a9b3090e84c32755b5d538f0a7ee080221420fe