diff options
author | duritong <peter.meier+github@immerda.ch> | 2014-01-25 06:22:18 -0800 |
---|---|---|
committer | duritong <peter.meier+github@immerda.ch> | 2014-01-25 06:22:18 -0800 |
commit | 21eeb6c772a2e8b362b6917694f169d5b2c7032d (patch) | |
tree | 5d851c42f824570900fa5896c50be65fe2d31632 /manifests/host/cgi.pp | |
parent | 09316f8abaa90b816be0c3dae35c86b41959bd2b (diff) | |
parent | 151b37a22ee5822101aa316d0c0620ad535c80d1 (diff) |
Merge pull request #30 from oxilion/file-cleanup
Clean up files by using templates
Diffstat (limited to 'manifests/host/cgi.pp')
-rw-r--r-- | manifests/host/cgi.pp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/manifests/host/cgi.pp b/manifests/host/cgi.pp index 5b0ecbb..9951a48 100644 --- a/manifests/host/cgi.pp +++ b/manifests/host/cgi.pp @@ -30,13 +30,9 @@ class munin::host::cgi( } file{'/etc/logrotate.d/munin': - source => [ "puppet:///modules/site_munin/config/host/${::fqdn}/logrotate", - "puppet:///modules/site_munin/config/host/logrotate.${::operatingsystem}", - 'puppet:///modules/site_munin/config/host/logrotate', - "puppet:///modules/munin/config/host/logrotate.${::operatingsystem}", - 'puppet:///modules/munin/config/host/logrotate' ], - owner => root, - group => 0, - mode => '0644', + content => template("${module_name}/logrotate.conf.erb"), + owner => root, + group => 0, + mode => '0644', } } |