[Mageia-sysadm] [777] use the new sudo::sudoers_config define

root at mageia.org root at mageia.org
Thu Jan 13 19:12:28 CET 2011


Revision: 777
Author:   misc
Date:     2011-01-13 19:12:28 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
use the new sudo::sudoers_config define

Modified Paths:
--------------
    puppet/modules/bcd/manifests/init.pp

Modified: puppet/modules/bcd/manifests/init.pp
===================================================================
--- puppet/modules/bcd/manifests/init.pp	2011-01-13 18:12:27 UTC (rev 776)
+++ puppet/modules/bcd/manifests/init.pp	2011-01-13 18:12:28 UTC (rev 777)
@@ -9,18 +9,15 @@
         include sudo
 
         buildsystem::sshuser { $bcd_login:
-	    homedir => $bcd_home,
- 	    comment => "User for creating ISOs",
-	}
+            homedir => $bcd_home,
+            comment => "User for creating ISOs",
+	    }
 
-	package { bcd:
-	    ensure => 'installed',
-	}
+        package { bcd:
+            ensure => 'installed',
+        }
 
-       file { "/etc/sudoers.d/bcd":
-            owner => root,
-            group => root,
-            mode => 440,
+        sudo::sudoers_config { "bcd":
             content => template("bcd/sudoers.bcd")
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/a6d9d992/attachment.html>


More information about the Mageia-sysadm mailing list