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

queryhosts: enforce Array[String] data type #101

Merged
merged 3 commits into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
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
6 changes: 0 additions & 6 deletions .vscode/extensions.json

This file was deleted.

2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Default value: `3`

##### `queryhosts`

Data type: `Any`
Data type: `Array[String]`

This adds the networks, hosts that are allowed to query the daemon.

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
Variant[Hash,Array[Stdlib::Fqdn]] $pools = {},
Numeric $makestep_seconds = 10,
Integer $makestep_updates = 3,
$queryhosts = [],
Array[String] $queryhosts = [],
Optional[String[1]] $mailonchange = undef,
Float $threshold = 0.5,
Boolean $lock_all = false,
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/chrony_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

context 'chrony::config' do
case facts[:os]['family']
when 'Archinux'
when 'Archlinux'
context 'with some params passed in' do
it { is_expected.to contain_file('/etc/chrony.conf').with_content(%r{^\s*port 123$}) }
it { is_expected.to contain_file('/etc/chrony.conf').with_content(%r{^s*allow 192\.168\/16$}) }
Expand Down