Hi. i have "keys" class where I copy some files from puppet server.
Example:
#cat keys.pp
class keys {
$users=["user1","user2","user3"]
<% users.each do |u| -%>
file { "/etc/file/keys/<%= u %>_keys":
owner => "<%= u %>",
group => "root",
mode => "440",
replace => true,
source => "puppet://server/files/file/keys/<%= u
%>_keys",
require => User["<%= u %>"],
}
<% end -%>
}
When I run puppet client I got the next error:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not parse for environment mera: Could not match % at /
etc/puppet/manifes/mera/users/keys.pp:5 on node test-node.
How to implement this?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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.