Help needed!!
I am trying to add 2 users to /ect/sudoers john.smith and jane.may granting privileges to all servers *step 1. **modules/user/manifests/init.pp * class user { user { 'john.smith': ensure => present, comment => 'john.smith', home => '/home/john.smith', managehome => true } } *Step 2 manifests/site.pp* /etc/puppet/manifests/site.pp node 'mydomain.local.org' { include user } *step 3 :* sudo mkdir -p modules/sudoers/manifests *Step 4* sudo mkdir -p modules/sudoers/files step 5 Create the file modules/sudoers/manifests/init.pp # Manage the sudoers file class sudoers { file { '/etc/sudoers': source => 'puppet:///modules/sudoers/sudoers' mode => '0440', owner => 'root', group => 'root', } } *Step 6 *Check the syntax of the sudoers file visudo -c -f modules/sudoers/files/sudoers modules/sudoers/files/sudoers *output*: usage: visudo [-chqsV] [-f sudoers] step 7: back in manifests/site.pp node 'mydomain.local.org' { include user include sudoers } step 8 puppet$ sudo puppet agent --test does respond I finally tried: node 'mydomain.local.org' { class { 'sudo': } sudo::conf { 'john.smith': priority => 10, source => 'puppet:///files/etc/sudoers.d/users/john.smith', } } still the agent doesn't respond can someone point me to the right direction please -- 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/288911f6-185e-4073-b494-6a83fa0948a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.