From cc8a8c5e2ed8cf593c93c76daf9561988c167a26 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 13 Jan 2011 18:12:27 +0000 Subject: fix bcd problem of variable missing --- modules/bcd/manifests/init.pp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'modules') 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, + } } } -- cgit v1.2.1