voxpupuli / puppet-keepalived

Puppet Module to manage Keepalived
https://forge.puppet.com/puppet/keepalived
Apache License 2.0
49 stars 150 forks source link

(#310) {vrrp_,}track_file: Enforce only String datatype #312

Closed tuxmea closed 6 months ago

rwaffen commented 7 months ago

can you please go into detail why you want to change this? (just for reference, code looks okay)

bastelfreak commented 6 months ago

Example config:

track_file acme {
  file     "/var/local/vrrp_track_file"
  weight      1
}
vrrp_instance lb_slm_test_4 {
  interface                 ens192
  state                     MASTER
  virtual_router_id         4
  priority                  50
  advert_int                1
  garp_master_delay         5

  track_script {
    access-lb
  }

  track_file {
    acme weight 1
  }

  virtual_ipaddress {
    127.0.0.1/27 dev eth0
  }
}

The parameter track_file in keepalived::vrrp::instance is the list track_file:

  track_file {
    acme weight 1
  }

This can be a random string and references a track_file block with that name:

track_file acme {
  file     "/var/local/vrrp_track_file"
  weight      1
}

^ is created by keepalived::vrrp::track_file defined resource.