Skip to content

Commit

Permalink
consul_service: Get user and group defaults from attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
legal90 committed May 30, 2017
1 parent eebc129 commit a23d96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/consul_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ class ConsulService < Chef::Resource
# @!attribute user
# The service user the Consul process runs as.
# @return [String]
attribute(:user, kind_of: String, default: 'consul')
attribute(:user, kind_of: String, default: lazy { node['consul']['service_user'] })
# @!attribute group
# The service group the Consul process runs as.
# @return [String]
attribute(:group, kind_of: String, default: 'consul')
attribute(:group, kind_of: String, default: lazy { node['consul']['service_group'] })
# @!attribute environment
# The environment that the Consul process starts with.
# @return [String]
Expand Down

0 comments on commit a23d96c

Please sign in to comment.