Skip to content

Commit

Permalink
Merge branch 'tighten-permissions' into more-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrett-twc committed Jun 10, 2016
2 parents 8bb5d66 + ab8d631 commit 6f54e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class ConsulConfig < Chef::Resource
attribute(:path, kind_of: String, name_attribute: true)
# @!attribute owner
# @return [String]
attribute(:owner, kind_of: String, default: lazy { node['consul']['config']['owner'] })
attribute(:owner, kind_of: String, default: 'consul')
# @!attribute group
# @return [String]
attribute(:group, kind_of: String, default: lazy { node['consul']['config']['group'] })
attribute(:group, kind_of: String, default: 'consul')
# @!attribute config_dir
# @return [String]
attribute(:config_dir, kind_of: String, default: lazy { node['consul']['service']['config_dir'] })
Expand Down
5 changes: 1 addition & 4 deletions test/spec/libraries/consul_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
default_attributes['consul'] = {
'service' => {
'config_dir' => '/etc/consul/conf.d'
},
'config' => {
'owner' => 'root',
'group' => 'consul'
}
}
end
Expand All @@ -23,6 +19,7 @@
context 'sets options directly' do
recipe do
consul_config '/etc/consul/default.json' do
owner 'root'
options do
recursor 'foo'
translate_wan_addrs true
Expand Down

0 comments on commit 6f54e7a

Please sign in to comment.