puppet-keepalived icon indicating copy to clipboard operation
puppet-keepalived copied to clipboard

No "notify_master / notify_backup / notify_fault

Open evgenyidf opened this issue 10 years ago • 4 comments

Hi

Couldn't find this option in your package. This is quite useful !

Thanks

evgenyidf avatar Apr 07 '15 12:04 evgenyidf

Could you give me a small example config of each of those parameters? I've never used them and I'd like to get them implemented the right way.

arioch avatar Aug 06 '15 19:08 arioch

I need this too. It's very useful to do some custom actions if the master node becomes unavailable Then we may need something like: https://tobrunet.ch/2013/07/keepalived-check-and-notify-scripts/

You have added the first part of the post, a check script, and can be defined as:

keepalived::vrrp::script { 'check_nginx':
    script => '/usr/bin/killall -0 nginx',
  }

But the notify scripts are not implemented. isn't it?

marcgascon avatar Aug 21 '15 14:08 marcgascon

Hi @evgenyidf and @marcgascon . The module migrated to Vox Pupuli. If it is accurate with the current code, can you propose a PR to fix this ?

Dan33l avatar Mar 15 '19 20:03 Dan33l

Those are available within an vrrp instance, see https://github.com/voxpupuli/puppet-keepalived/blob/5ab0d6389c68d5e65b016da97a5ce41cd4a9d3ce/manifests/vrrp/instance.pp#L100

I think this issue can be closed.

saz avatar Sep 25 '19 19:09 saz