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

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/umlivTZTkS0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to