aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bcd
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-01-13 18:12:27 +0000
committerMichael Scherer <misc@mageia.org>2011-01-13 18:12:27 +0000
commitcc8a8c5e2ed8cf593c93c76daf9561988c167a26 (patch)
treef2ed5ef3966c391a0eaf83c9cad0247c1b58f7a3 /modules/bcd
parent3d55b77f3fe835b39af1b628ca78260903dc5cef (diff)
downloadpuppet-cc8a8c5e2ed8cf593c93c76daf9561988c167a26.tar
puppet-cc8a8c5e2ed8cf593c93c76daf9561988c167a26.tar.gz
puppet-cc8a8c5e2ed8cf593c93c76daf9561988c167a26.tar.bz2
puppet-cc8a8c5e2ed8cf593c93c76daf9561988c167a26.tar.xz
puppet-cc8a8c5e2ed8cf593c93c76daf9561988c167a26.zip
fix bcd problem of variable missing
Diffstat (limited to 'modules/bcd')
-rw-r--r--modules/bcd/manifests/init.pp22
1 files changed, 13 insertions, 9 deletions
diff --git a/modules/bcd/manifests/init.pp b/modules/bcd/manifests/init.pp
index 07b4e073..3ef04c12 100644
--- a/modules/bcd/manifests/init.pp
+++ b/modules/bcd/manifests/init.pp
@@ -1,9 +1,12 @@
class bcd {
- $bcd_login = 'bcd'
- $bcd_home = '/home/bcd'
+ class variable {
- class base {
- include sudo
+ $bcd_login = 'bcd'
+ $bcd_home = '/home/bcd'
+ }
+
+ class base inherits variable {
+ include sudo
buildsystem::sshuser { $bcd_login:
homedir => $bcd_home,
@@ -23,10 +26,11 @@ class bcd {
}
define ssh_access($type, $key) {
- ssh_authorized_key{$name:
- type => $type,
- key => $key,
- user => $bcd_login,
- }
+ include bcd::variable
+ ssh_authorized_key{$name:
+ type => $type,
+ key => $key,
+ user => $bcd_login,
+ }
}
}