Hello All,

i have created a module called Sudoers here is the content of the init.pp


File { owner => "root", group => "root", mode  => "0440" }

        file {"/etc/sudoers":
                ensure => "present",
                content => template("sudoers/sudoers.erb"),
        }

        file {  "/etc/sudoers.d":
                        ensure  => "directory",
                        owner   => "root",
                        group   => "root",
                        recurse => "false",
                        mode    => 550,
        }


and this is the content of sudoers.erb

root                            ALL=(ALL)       NOPASSWD: ALL


# Admins
user1                      ALL=(ALL)       NOPASSWD: ALL
user2                      ALL=(ALL)       NOPASSWD: ALL


now when i do puppet agent --test 

i am getting 


*Info: Retrieving pluginfacts*
*Info: Retrieving plugin*
*Info: Caching catalog for ip-10-167-26-44.*
*Info: Applying configuration version '1441378237'*
*Notice: Finished catalog run in 0.03 seconds*


*but when i look to content of /etc/sudeors nothing get uppdated. *
*basically all my sudeors class is ignored*
*can you guys tell me what I am doing wrong?*

*Thanks a lot! *

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/19f1f9de-dfcd-4c02-88ec-d08b6f5ee951%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to