Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 # == Type: adblockplus::user | |
2 # | |
3 # Manage user accounts. | |
4 # | |
5 # === Parameters: | |
6 # | |
7 # [*authorized_keys*] | |
8 # A list of zero or more lines for the ~/.ssh/authorized_keys file of | |
9 # the respective user. Used as-is, joined by newline characters. | |
10 # | |
11 # [*groups*] | |
12 # A list of zero or more groups (names), to assign the user to. | |
13 # | |
14 # [*name*] | |
15 # The name of the user account, defaults to $title. | |
16 # | |
17 # [*password_hash*] | |
18 # The user's password, as leixcal SHA1 hashsum. If undefined, Puppet | |
Fred
2016/01/13 17:14:33
Typo: lexical
mathias
2016/01/13 17:27:13
Done.
| |
19 # won't change the current one, if any. Use "*" to disable the user's | |
20 # password explicitly. | |
21 # | |
22 # === Examples: | |
23 # | |
24 # adblockplus::user {'pinocchio': | |
25 # authorized_keys => [ | |
26 # 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAA..................', | |
27 # 'from="10.0.8.2" ssh-rsa AAAAB3NzaC..................', | |
28 # ], | |
29 # groups => ['sudo', 'adm'], | |
30 # password_hash => '$6$k.fe9F4U$OIav.SJ..................', | |
31 # } | |
32 # | |
33 define adblockplus::user ( | |
34 $authorized_keys = [], | |
35 $groups = [], | |
36 $password_hash = undef, | |
37 ) { | |
38 | |
39 include adblockplus | |
40 include users | |
41 | |
42 users::user {"adblockplus::user#$name": | |
43 authorized_keys => join($authorized_keys, "\n"), | |
44 groups => $groups, | |
45 password => $password_hash, | |
46 user_name => $name, | |
47 } | |
48 } | |
OLD | NEW |