Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vrrp::instance: {vrrp_,}track_file: Switch default undef->[] #315

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
vrrp::instance: {vrrp_,}track_file: Switch default undef->[]
bastelfreak committed Mar 12, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
bastelfreak Tim Meusel
commit 4be59bbe166bd0917660105471e61fd563c6e7c2
8 changes: 4 additions & 4 deletions REFERENCE.md
Original file line number Diff line number Diff line change
@@ -1211,19 +1211,19 @@ Default value: `undef`

##### <a name="-keepalived--vrrp--instance--track_file"></a>`track_file`

Data type: `Optional[Array[String[1]]]`
Data type: `Array[String[1]]`

Define which file trackers to run. References a track_file block that can be created with keepalived::vrrp::track_file.

Default value: `undef`
Default value: `[]`

##### <a name="-keepalived--vrrp--instance--vrrp_track_file"></a>`vrrp_track_file`

Data type: `Optional[Array[String[1]]]`
Data type: `Array[String[1]]`

Define which file trackers to run. Deprecated, for keepalived < 2.1.0. References a vrrp_track_file block that can be created with keepalived::vrrp::vrrp_track_file.

Default value: `undef`
Default value: `[]`

##### <a name="-keepalived--vrrp--instance--track_interface"></a>`track_interface`

4 changes: 2 additions & 2 deletions manifests/vrrp/instance.pp
Original file line number Diff line number Diff line change
@@ -207,8 +207,8 @@
Optional[Variant[String, Sensitive[String]]] $auth_pass = undef,
$track_script = undef,
Optional[Array[String[1]]] $track_process = undef,
Optional[Array[String[1]]] $track_file = undef,
Optional[Array[String[1]]] $vrrp_track_file = undef,
Array[String[1]] $track_file = [],
Array[String[1]] $vrrp_track_file = [],
$track_interface = undef,
$lvs_interface = undef,
$virtual_ipaddress_int = undef,
8 changes: 4 additions & 4 deletions templates/vrrp_instance.erb
Original file line number Diff line number Diff line change
@@ -113,18 +113,18 @@ vrrp_instance <%= @_name %> {
<%- end -%>
}
<%- end -%>
<%- if @track_file -%>
<%- unless @track_file.empty? -%>

track_file {
<%- Array(@track_file).each do |track| -%>
<%- @track_file.each do |track| -%>
<%= track %>
<%- end -%>
}
<%- end -%>
<%- if @vrrp_track_file -%>
<%- unless @vrrp_track_file.empty? -%>

vrrp_track_file {
<%- Array(@vrrp_track_file).each do |track| -%>
<%- @vrrp_track_file.each do |track| -%>
<%= track %>
<%- end -%>
}