Skip to content

Commit

Permalink
Merge pull request #329 from bastelfreak/track
Browse files Browse the repository at this point in the history
vrrp::instance::track_script: Enforce Array datatype 2
  • Loading branch information
bastelfreak authored Apr 2, 2024
2 parents d94054c + c8de827 commit 0239d22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1198,8 +1198,7 @@ Default value: `undef`
Data type: `Array[String[1]]`

Define which scripts to run to track service states.
May be specified either as a String with a single Scriptname,
or as an Array of Strings with multiple Scriptnames.
Must be specified as an Array of Strings with multiple Scriptnames.

Default value: `[]`

Expand Down
3 changes: 1 addition & 2 deletions manifests/vrrp/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
#
# @param track_script
# Define which scripts to run to track service states.
# May be specified either as a String with a single Scriptname,
# or as an Array of Strings with multiple Scriptnames.
# Must be specified as an Array of Strings with multiple Scriptnames.
#
# @param track_process
# Define which process trackers to run.
Expand Down
17 changes: 0 additions & 17 deletions spec/defines/keepalived_vrrp_instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -370,23 +370,6 @@
}
end

describe 'with parameter track_script as a single String' do
let(:params) do
mandatory_params.merge(
track_script: '_VALUE_'
)
end

it { is_expected.to create_keepalived__vrrp__instance('_NAME_') }

it {
is_expected.to \
contain_concat__fragment('keepalived.conf_vrrp_instance__NAME_').with(
'content' => %r!^ track_script {\n _VALUE_!
)
}
end

describe 'with parameter lvs_interface' do
let(:params) do
mandatory_params.merge(
Expand Down

0 comments on commit 0239d22

Please sign in to comment.