Skip to content

Commit

Permalink
Remove the webui provider in favor of using config.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bellone committed Mar 17, 2016
1 parent 20332b3 commit b25b15e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 123 deletions.
23 changes: 6 additions & 17 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ suites:
- recipe[consul::default]
attributes:
consul:
config: *default-config
installation:
provider: webui
config:
bootstrap: true
server: true
ui: true
datacenter: FortMeade
encrypt: CGXC2NsXW4AvuB4h5ODYzQ==
excludes:
- windows-2012r2
- name: acl
Expand Down Expand Up @@ -84,17 +87,3 @@ suites:
nssm_params:
AppStdout: C:\foo\bar\out.log
AppStderr: C:\foo\bar\err.log
# - name: atlas
# excludes:
# - windows-2012r2
# run_list:
# - recipe[consul::default]
# attributes:
# consul:
# config:
# bootstrap: true
# server: true
# datacenter: fortmeade
# atlas_join: true
# atlas_infrastructure: <%= ENV.fetch('ATLAS_INFRASTRUCTURE', 'example/cluster') %>
# atlas_token: <%= ENV.fetch('ATLAS_TOKEN', 'NOT_REAL') %>
104 changes: 0 additions & 104 deletions libraries/consul_installation_webui.rb

This file was deleted.

4 changes: 2 additions & 2 deletions libraries/consul_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class ConsulService < Chef::Resource
# @!attribute nssm_params
# @return [String]
attribute(:nssm_params, kind_of: Hash, default: lazy { node['consul']['service']['nssm_params'] })
# @!attribute consul_binary
# @!attribute program
# The location of the Consul executable.
# @return [String]
attribute(:program, kind_of: String, default: '/usr/local/bin/consul')

def command
"#{consul_binary} agent -config-file=#{config_file} -config-dir=#{config_dir}"
"#{program} agent -config-file=#{config_file} -config-dir=#{config_dir}"
end

def default_environment
Expand Down

0 comments on commit b25b15e

Please sign in to comment.