First commit, just some crap that was in koumbit for no reason !
This commit is contained in:
commit
e7dee07acf
1 changed files with 21 additions and 0 deletions
21
manifests/init.pp
Normal file
21
manifests/init.pp
Normal file
|
@ -0,0 +1,21 @@
|
|||
class koumbit::sudo {
|
||||
package { 'sudo': ensure => installed, }
|
||||
|
||||
file { "/etc/sudoers":
|
||||
mode => 440, owner => root, group => 0,
|
||||
require => Package['sudo'],
|
||||
}
|
||||
if $operatingsystem == 'FreeBSD' {
|
||||
File["/etc/sudoers"] {
|
||||
path => "/usr/local/etc/sudoers",
|
||||
source => [ "puppet://$servername/secrets/sudoers.$fqdn", "puppet://$servername/secrets/sudoers.FreeBSD" ],
|
||||
}
|
||||
}
|
||||
else {
|
||||
File["/etc/sudoers"] {
|
||||
source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers" ],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in a new issue