Skip to content

Commit

Permalink
Merge pull request #147 from robrankin/master
Browse files Browse the repository at this point in the history
Adding groups parameter to user definition
  • Loading branch information
solarkennedy committed Jul 6, 2015
2 parents d4e8345 + d443956 commit 75479d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
$manage_user = true,
$user = 'consul',
$manage_group = true,
$extra_groups = [],
$purge_config_dir = true,
$group = 'consul',
$join_wan = false,
Expand Down Expand Up @@ -76,6 +77,7 @@

validate_bool($purge_config_dir)
validate_bool($manage_user)
validate_array($extra_groups)
validate_bool($manage_service)
validate_hash($config_hash)
validate_hash($config_defaults)
Expand Down
1 change: 1 addition & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
user { $consul::user:
ensure => 'present',
system => true,
groups => $consul::extra_groups,
}

if $consul::manage_group {
Expand Down

0 comments on commit 75479d1

Please sign in to comment.