Skip to content

Commit

Permalink
Merge pull request sous-chefs#430 from zanox/confd_permissions
Browse files Browse the repository at this point in the history
Adding the option to modify the permissions on the consul conf.d dire…
  • Loading branch information
legal90 authored May 16, 2017
2 parents 693a275 + 3825f31 commit e7188dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class ConsulConfig < Chef::Resource
# @!attribute config_dir
# @return [String]
attribute(:config_dir, kind_of: String, default: lazy { node['consul']['service']['config_dir'] })
# @!attribute config_dir_mode
# @return [String]
attribute(:config_dir_mode, kind_of: String, default: '0755')
# @!attribute options
# @return [Hash]
attribute(:options, option_collector: true)
Expand Down Expand Up @@ -211,7 +214,7 @@ def tls?
unless platform?('windows')
owner new_resource.owner
group new_resource.group
mode '0755'
mode new_resource.config_dir_mode
end
not_if { dir == '/etc' }
end
Expand Down

0 comments on commit e7188dc

Please sign in to comment.