hello,
i want to create some files with an array:
class files (
...
$type = [ "file1", "file2", "file3", "file4", "file5", "file5" ]
) {
define rsyslog($owner = root, $group = root, $mode = 644,
$ensure = present) {
file {"/etc/rsyslog.d/$type.conf":
ensure => $ensure,
owner => $owner,
group => $group,
mode => $mode,
content => template('template.erb'),
}
}
rsyslog { $type: }
}
Puppet says Duplicate declaration:
File[/etc/rsyslog.d/oevd-intern-accesserrors.conf *(and how to fix this?*)]
is already declared in file
It works with only one element in my array...
anyone can help me?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/jiEFtSDdGL8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.