Thanks. I used this:
file {'puppet_sudo': ensure => present, path => '/tmp/puppet_sudo', source => 'puppet:///files/puppet_sudo', owner => 'root', group => 'root', mode => 0440, } file {'move_puppet_sudo': ensure => present, path => '/etc/sudoers.d/', source => '/tmp/puppet_sudo', owner => 'root', group => 'root', mode => 0440, require => file['puppet_sudo'], } but My Puppet master is 6.3 and all my puppet clients are all 5.8. 5.8 doesnt have the line #includedir /etc/sudoers.d nor does it have a DIRECTORY /etc/sudoers.d/, just a file called /etc/sudoers.d Any Idea about that? I am avoiding writing code since I dont know how. > -- 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/-/G3ZQJhWgM1QJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.