voxpupuli/puppet-corosync

location rules definition missing

Closed this issue · 2 comments

flhe commented

in puppet-corosync 1.2.1, i am missing location rules configuration
(for example a ping-gateway configuration). Would be great, if it does exist.

What do you mean?

The following should work.

cs_primitive {'ping':
  primitive_class => 'ocf',
  primitive_type  => 'ping',
  provided_by     => 'pacemaker',
  operations      => [
    { 'monitor'   => { 'interval' => '10s', 'timeout' => '30s' } },
  ],
  parameters     => {
    'dampen'     => '5s',
    'multiplier' => "1000",
    'host_list'  => "my.gateway.com www.bigcorp.com",
  },
}

cs_primitive { 'nginx_service':
  primitive_class => 'ocf',
  primitive_type  => 'nginx',
  provided_by     => 'pacemaker',
  operations      => {
    'monitor' => { 'interval' => '10s', 'timeout' => '30s' },
    'start'   => { 'interval' => '0', 'timeout' => '30s', 'on-fail' => 'restart' }
  },
}

cs_colocation {
  'nginx_with_ping':
    primitives => [ 'ping', 'nginx_service' ],
}
flhe commented

Thank you. Yes this is working also.