puppet-pacemaker/agent_generator
Luca Miccini 0389f99f43 Extend deep_compare to stonith resources
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
2019-09-11 08:09:44 +02:00
..
src_xml Add fence-redfish support 2019-02-11 11:13:33 +01:00
agent_generator.rb Extend deep_compare to stonith resources 2019-09-11 08:09:44 +02:00
generate_manifests.sh Agent manifest batch generation scripts 2014-09-05 11:08:55 +02:00
update_sources.sh Agent manifest batch generation scripts 2014-09-05 11:08:55 +02:00
variables.sh Make the redfish stonith agent a manual agent and add two workaround 2019-02-14 11:02:04 +01:00