From: Silvio Rhatto Date: Wed, 4 Aug 2010 18:11:58 +0000 (-0300) Subject: Supporting per-hostname sudoers file X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=42dce5f7c4c1cf612b88c8e433f4102be1eb74f3;p=puppet-nodo.git Supporting per-hostname sudoers file --- diff --git a/manifests/subsystems/locales.pp b/manifests/subsystems/locales.pp index 3bed96f..90bd96c 100644 --- a/manifests/subsystems/locales.pp +++ b/manifests/subsystems/locales.pp @@ -23,6 +23,6 @@ class locales { exec { "locale-gen": refreshonly => true, - subscribe => File["/etc/locale.gen"], + subscribe => File["/etc/locale.gen"], } } diff --git a/manifests/subsystems/sudo.pp b/manifests/subsystems/sudo.pp index c5679fd..3b377ed 100644 --- a/manifests/subsystems/sudo.pp +++ b/manifests/subsystems/sudo.pp @@ -5,7 +5,8 @@ class sudo { } file { "/etc/sudoers": - source => "puppet://$server/modules/nodo/etc/sudoers", + source => [ "puppet://$server/files/etc/sudoers/$hostname", + "puppet://$server/modules/nodo/etc/sudoers" ], owner => "root", group => "root", mode => 440,