Parent Directory | Revision Log
fix bcd problem of variable missing
1 | boklm | 765 | class bcd { |
2 | misc | 776 | class variable { |
3 | boklm | 765 | |
4 | misc | 776 | $bcd_login = 'bcd' |
5 | $bcd_home = '/home/bcd' | ||
6 | } | ||
7 | boklm | 765 | |
8 | misc | 776 | class base inherits variable { |
9 | include sudo | ||
10 | |||
11 | boklm | 765 | buildsystem::sshuser { $bcd_login: |
12 | homedir => $bcd_home, | ||
13 | comment => "User for creating ISOs", | ||
14 | } | ||
15 | |||
16 | package { bcd: | ||
17 | ensure => 'installed', | ||
18 | } | ||
19 | |||
20 | file { "/etc/sudoers.d/bcd": | ||
21 | owner => root, | ||
22 | group => root, | ||
23 | mode => 440, | ||
24 | content => template("bcd/sudoers.bcd") | ||
25 | } | ||
26 | } | ||
27 | |||
28 | define ssh_access($type, $key) { | ||
29 | misc | 776 | include bcd::variable |
30 | ssh_authorized_key{$name: | ||
31 | type => $type, | ||
32 | key => $key, | ||
33 | user => $bcd_login, | ||
34 | } | ||
35 | boklm | 765 | } |
36 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |