Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added missing ACL config options #419

Merged
merged 1 commit into from
Mar 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ class ConsulConfig < Chef::Resource
attribute(:options, option_collector: true)

# @see: http://www.consul.io/docs/agent/options.html
attribute(:acl_agent_token, kind_of: String)
attribute(:acl_agent_master_token, kind_of: String)
attribute(:acl_datacenter, kind_of: String)
attribute(:acl_default_policy, kind_of: String)
attribute(:acl_down_policy, kind_of: String)
attribute(:acl_enforce_version_8, equal_to: [true, false], default: false)
attribute(:acl_master_token, kind_of: String)
attribute(:acl_replication_token, kind_of: String)
attribute(:acl_token, kind_of: String)
Expand Down Expand Up @@ -109,9 +112,12 @@ class ConsulConfig < Chef::Resource
# Consul service's configuration format.
def to_json
for_keeps = %i(
acl_agent_token
acl_agent_master_token
acl_datacenter
acl_default_policy
acl_down_policy
acl_enforce_version_8
acl_master_token
acl_replication_token
acl_token
Expand Down