OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |