OLD | NEW |
(Empty) | |
| 1 # http://hub.eyeo.com/issues/3913 |
| 2 define adblockplus::sudoers ( |
| 3 $config, |
| 4 ) { |
| 5 |
| 6 # modules/adblockplus/manifests/sudo.pp |
| 7 include adblockplus::sudo |
| 8 |
| 9 # https://forge.puppet.com/puppetlabs/stdlib#ensure_resource |
| 10 # https://forge.puppet.com/puppetlabs/stdlib#merge |
| 11 # modules/adblockplus/lib/puppet/parser/functions/ensure_file_state.rb |
| 12 ensure_resource('file', "adblockplus::sudoers#$name", merge({ |
| 13 ensure => ensure_file_state(Package['sudo']), |
| 14 group => 'root', |
| 15 mode => '0440', |
| 16 owner => 'root', |
| 17 path => "/etc/sudoers.d/$name", |
| 18 }, $config)) |
| 19 } |
OLD | NEW |