Skip to content

Commit

Permalink
Fixes #239 - data bag item and name config.
Browse files Browse the repository at this point in the history
This was an oversight that seemingly nobody ever caught.
  • Loading branch information
John Bellone committed Jan 3, 2016
1 parent 6e6c96b commit 94d9ca0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
default['consul']['service_user'] = 'consul'
default['consul']['service_group'] = 'consul'

default['consul']['bag_name'] = 'secrets'
default['consul']['bag_item'] = 'consul'

default['consul']['config']['path'] = '/etc/consul.json'
default['consul']['config']['bag_name'] = 'secrets'
default['consul']['config']['bag_item'] = 'consul'
default['consul']['config']['data_dir'] = '/var/lib/consul'
default['consul']['config']['ca_file'] = '/etc/consul/ssl/CA/ca.crt'
default['consul']['config']['cert_file'] = '/etc/consul/ssl/certs/consul.crt'
Expand Down
4 changes: 2 additions & 2 deletions libraries/consul_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class ConsulConfig < Chef::Resource

# @!attribute bag_name
# @return [String]
attribute(:bag_name, kind_of: String, default: 'consul')
attribute(:bag_name, kind_of: String, default: 'secrets')

# @!attribute bag_item
# @return [String]
attribute(:bag_item, kind_of: String, default: 'secrets')
attribute(:bag_item, kind_of: String, default: 'consul')

# @!attribute options
# @return [Hash]
Expand Down

0 comments on commit 94d9ca0

Please sign in to comment.