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

Unified Diff: modules/users/manifests/init.pp

Issue 29323115: Noissue - Allow for specifying a users::user's list of groups (Closed)
Patch Set: Created July 30, 2015, 3:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/private-stub/manifests/users.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/users/manifests/init.pp
===================================================================
--- a/modules/users/manifests/init.pp
+++ b/modules/users/manifests/init.pp
@@ -3,17 +3,14 @@
$user_name = $title,
$authorized_keys,
$password = undef,
- $sudo = false
+ $groups = [],
) {
user {$user_name:
home => "/home/${user_name}",
shell => "/bin/bash",
managehome => true,
password => $password,
- groups => $sudo ? {
- true => 'sudo',
- default => undef
- }
+ groups => $groups,
}
file {"/home/${user_name}/.ssh":
« no previous file with comments | « modules/private-stub/manifests/users.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld