I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
mode => 440,
source => "puppet:///modules/sudo/sudoers.$name",
}
} # Class:: sudo
Hiera FIle for node :
hostname01.yaml
=============
---
config: - XXXX
server: - hostname01p
node_classes: - sudo('webapp')
I get this error message when trying to apply on node:
puppet agent -tv --noop
err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Invalid tag "sudo('webapp')" at /etc/puppet/manifests/site.pp:
19 on node
cat /etc/puppet/manifests/site.pp ( portion of file )
===================================
node default {
hiera_include( "node_classes" ) # Maintained in hostgroups/
<hostgroup>/<site>/<hostname>.yaml
}
--
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.