Skip to content

Commit

Permalink
Add comment for user and append to group.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbellone committed Feb 14, 2015
1 parent ff460f7 commit 6387c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/provider_consul_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def whyrun_supported?

action :create do
user "#{new_resource.name} :create #{parsed_run_user}" do
comment 'Consul Service User'
system true
home '/dev/null'
shell '/bin/false'
Expand All @@ -23,6 +24,7 @@ def whyrun_supported?

group "#{new_resource.name} :create #{parsed_run_group}" do
system true
append true
members parsed_run_user
group_name parsed_run_group
not_if { group_name == 'root' }
Expand Down

0 comments on commit 6387c6d

Please sign in to comment.