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