diff options
Diffstat (limited to 'modules/bcd')
-rw-r--r-- | modules/bcd/manifests/init.pp | 22 |
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, + } } } |