From e7dee07acf637bcf78d13004fcc00df944b91ba5 Mon Sep 17 00:00:00 2001 From: Guillaume Beaulieu Date: Mon, 22 Apr 2013 16:00:28 -0400 Subject: [PATCH] First commit, just some crap that was in koumbit for no reason ! --- manifests/init.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 manifests/init.pp diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..80dc045 --- /dev/null +++ b/manifests/init.pp @@ -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" ], + } + } +} + +