Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/adblockplus/manifests/user.pp

Issue 29333430: Issue 3508 - Introduce class adblockplus::user (Closed)
Patch Set: Created Jan. 13, 2016, 12:31 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld