Skip to content

Commit

Permalink
Move default value for $config_template from params.pp to init.pp
Browse files Browse the repository at this point in the history
Since this now has the same value for all OS, this don't need to be set by params.pp
  • Loading branch information
chrekh committed Jul 9, 2020
1 parent 59f61aa commit aa4be5a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Data type: `String[1]`

This determines which template puppet should use for the chrony configuration.

Default value: $chrony::params::config_template
Default value: 'chrony/chrony.conf.epp'

##### `config_keys`

Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
Optional[Stdlib::Port] $cmdport = undef,
$commandkey = 0,
Stdlib::Unixpath $config = $chrony::params::config,
String[1] $config_template = $chrony::params::config_template,
String[1] $config_template = 'chrony/chrony.conf.epp',
Stdlib::Unixpath $config_keys = $chrony::params::config_keys,
String[1] $config_keys_template = 'chrony/chrony.keys.erb',
String[1] $chrony_password = 'xyzzy',
Expand Down
3 changes: 0 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'Archlinux' : {
$cmdacl = ['cmdallow 127.0.0.1']
$config = '/etc/chrony.conf'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony.keys'
$config_keys_owner = 0
$config_keys_group = 0
Expand All @@ -18,7 +17,6 @@
'Suse', 'RedHat' : {
$cmdacl = []
$config = '/etc/chrony.conf'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony.keys'
$config_keys_owner = 0
$config_keys_group = chrony
Expand All @@ -30,7 +28,6 @@
'Debian' : {
$cmdacl = []
$config = '/etc/chrony/chrony.conf'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony/chrony.keys'
$config_keys_owner = 0
$config_keys_group = 0
Expand Down

0 comments on commit aa4be5a

Please sign in to comment.