Skip to content

Commit

Permalink
Consolidate templates and convert to epp()
Browse files Browse the repository at this point in the history
Replace the separate erb-templates for chrony.conf with one epp-template.
The chrony.conf.epp is based on the erb-template for redhat.
  • Loading branch information
chrekh committed Jul 9, 2020
1 parent b37d7e8 commit b971db0
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 631 deletions.
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
owner => 0,
group => 0,
mode => '0644',
content => template($config_template),
content => epp($config_template),
}

file { $config_keys:
Expand Down
6 changes: 3 additions & 3 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'Archlinux' : {
$cmdacl = ['cmdallow 127.0.0.1']
$config = '/etc/chrony.conf'
$config_template = 'chrony/chrony.conf.archlinux.erb'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony.keys'
$config_keys_owner = 0
$config_keys_group = 0
Expand All @@ -18,7 +18,7 @@
'Suse', 'RedHat' : {
$cmdacl = []
$config = '/etc/chrony.conf'
$config_template = 'chrony/chrony.conf.redhat.erb'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony.keys'
$config_keys_owner = 0
$config_keys_group = chrony
Expand All @@ -30,7 +30,7 @@
'Debian' : {
$cmdacl = []
$config = '/etc/chrony/chrony.conf'
$config_template = 'chrony/chrony.conf.debian.erb'
$config_template = 'chrony/chrony.conf.epp'
$config_keys = '/etc/chrony/chrony.keys'
$config_keys_owner = 0
$config_keys_group = 0
Expand Down
Loading

0 comments on commit b971db0

Please sign in to comment.