Setting up a HA iSCSI / NFS target using this document,
http://www.linbit.com/fileadmin/tech-guides/ha-iscsi.pdf, and I am unable to find a way to use the puppetlabs-corosync module to emulate this command
crm(live)configure# primitive p_drbd_coraid23 ocf:linbit:drbd \
params drbd_resource=coraid23 \
op monitor interval=29 role=Master \
op monitor interval=31 role=Slave
crm(live)configure# ms ms_drbd_coraid23 p_drbd_coraid23 \
meta master-max=1 master-node-max=1 \
clone-max=2 clone-node-max=1 notify=true
I defined the cs_primitive type like this...
cs_primitive {
'p_drbd_coraid23':
ensure => present,
primitive_class => 'ocf',
primitive_type => 'drbd',
provided_by => 'linbit',
promotable => true,
parameters => {
'drbd_resource' => 'coraid23'
},
operations => {
'monitor' => {
'interval' => '29',
'role' => 'Master',
},
'monitor' => {
'interval' => '31',
'role' => 'Slave',
}
},
metadata => {
'master-max' => '1',
'master-node-max' => '1',
'clone-max' => '2',
'clone-node-max' => '1',
'notify' => 'true',
};
What results is only 1 of the 2 operations being defined, and my guess is that this is because of logic like this...
operations = {}
operations['monitor'] = a
operations['monitor'] = b
puts operations['monitor']
=> b
Any suggestions?
Thanks
- Trey