1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
class sudo { package { sudo: ensure => installed; } file { "/etc/sudoers.d": ensure => directory, mode => 711, owner => root, group => root, } file { "/etc/sudoers": ensure => present, owner => root, group => root, mode => 440, content => template("sudo/sudoers") } }