From afb1b241436046fd9c7d15a8b5047b7a3adcef14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Wed, 24 Apr 2013 16:08:42 -0400 Subject: [PATCH] remove needless else clause --- manifests/init.pp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 7a8c5ea..a93b2f7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -4,6 +4,7 @@ class sudo { file { "/etc/sudoers": mode => 440, owner => root, group => 0, require => Package['sudo'], + source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers" ], } if $operatingsystem == 'FreeBSD' { File["/etc/sudoers"] { @@ -11,9 +12,4 @@ class sudo { source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers.FreeBSD" ], } } - else { - File["/etc/sudoers"] { - source => [ "puppet:///secrets/sudoers.$fqdn", "puppet:///secrets/sudoers" ], - } - } }