Hi, I am trying this. config.pp of module logrotate define logrotate::config{ case $::osfamily { redhat:{ file { "/etc/logrotate.d/${conf_file}": ensure => 'present', owner => 'root', group => 'root', mode => '0644', source => "puppet://${puppetmaster}/modules/logrotate/${conf_file}", } } solaris:{ notice('logrotate not available') } default:{ fail("Unsupported platform: ${::osfamily}") } } }
in the nodes.pp logrotate::config{'test':} logrotate::config{'puppet':} And it says Duplicate declaration: File[/etc/logrotate.d/] is already declared in file /data/git/test/modules/logrotate/manifests/config.pp:10 It also does not work if I just have on file to provide. The it does nothing. Can you please help me? Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7576638c-5157-4df3-a5a4-69c481e644ca%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.