diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-17 11:05:25 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-17 11:05:25 +0000 |
commit | 6262cd9568116edc47864958935ec8128fd06d0a (patch) | |
tree | 25e2c4457533f24479678df784ef796e04cabdc3 /modules/bcd/templates/sudoers.bcd | |
parent | cc782be3aed069c1c538e90358f0f0647bb2e425 (diff) | |
download | puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.gz puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.bz2 puppet-6262cd9568116edc47864958935ec8128fd06d0a.tar.xz puppet-6262cd9568116edc47864958935ec8128fd06d0a.zip |
split base from init.pp, and simplify the variable declaration and lookup
by merging bcd::variable with the main class (so we can directly say bcd::login instead of using
bcd::variable )
Diffstat (limited to 'modules/bcd/templates/sudoers.bcd')
-rw-r--r-- | modules/bcd/templates/sudoers.bcd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/bcd/templates/sudoers.bcd b/modules/bcd/templates/sudoers.bcd index 5649a24f..b768f653 100644 --- a/modules/bcd/templates/sudoers.bcd +++ b/modules/bcd/templates/sudoers.bcd @@ -1,8 +1,8 @@ -<%= bcd_login %> ALL=(root) NOPASSWD:/bin/mount, /bin/umount, \ +<%= scope.lookupvar('bcd::login') %> ALL=(root) NOPASSWD:/bin/mount, /bin/umount, \ /usr/sbin/chroot, \ /usr/sbin/urpmi, \ /usr/sbin/urpmi.addmedia, \ /usr/sbin/urpmi.removemedia, \ /bin/rm -%<%= isomakers_group %> ALL=(<%= bcd_login %>) SETENV: NOPASSWD: ALL +%<%= isomakers_group %> ALL=(<%= scope.lookupvar('bcd::login') %>) SETENV: NOPASSWD: ALL |