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

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

Issue 29469584: #1634 - Update file resource syntax in module adblockplus (Closed)
Patch Set: Created June 21, 2017, 10:15 a.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/sudo.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
1 # == Type: adblockplus::user 1 # == Type: adblockplus::user
2 # 2 #
3 # Manage user accounts. 3 # Manage user accounts.
4 # 4 #
5 # === Parameters: 5 # === Parameters:
6 # 6 #
7 # [*authorized_keys*] 7 # [*authorized_keys*]
8 # A list of zero or more lines for the ~/.ssh/authorized_keys file of 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. 9 # the respective user. Used as-is, joined by newline characters.
10 # 10 #
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 managehome => true, 49 managehome => true,
50 password => $password_hash, 50 password => $password_hash,
51 shell => '/bin/bash', 51 shell => '/bin/bash',
52 } 52 }
53 53
54 file {"$home/.ssh": 54 file {"$home/.ssh":
55 ensure => $ensure ? { 55 ensure => $ensure ? {
56 'present' => 'directory', 56 'present' => 'directory',
57 default => $ensure, 57 default => $ensure,
58 }, 58 },
59 mode => 0700, 59 mode => '0700',
60 owner => $name, 60 owner => $name,
61 require => User[$name], 61 require => User[$name],
62 } 62 }
63 63
64 file {"$home/.ssh/authorized_keys": 64 file {"$home/.ssh/authorized_keys":
65 content => join($authorized_keys, "\n"), 65 content => join($authorized_keys, "\n"),
66 ensure => $ensure, 66 ensure => $ensure,
67 mode => 0644, 67 mode => '0644',
68 owner => $name, 68 owner => $name,
69 require => File["$home/.ssh"], 69 require => File["$home/.ssh"],
70 } 70 }
71 } 71 }
OLDNEW
« no previous file with comments | « modules/adblockplus/manifests/sudo.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld