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

client config not being created #217

Closed
rj-reilly opened this issue Sep 14, 2015 · 5 comments
Closed

client config not being created #217

rj-reilly opened this issue Sep 14, 2015 · 5 comments

Comments

@rj-reilly
Copy link

I have added the following to my recipe, I also have consul in the run list (?)

node.default['consul']['config']['start_join'] = %w{10.10.xx.xx 10.10..xx.xx 10.10.xx.xx 10.10.xx.xx }
node.default['consul']['config']['client_addr'] = node['ipaddress']
#

consul_definition "epm_worspace_#{node['fqdn']}" do
   type 'service'
   parameters(http: 'http://10.109.xx.xx:9000/workspace/status',tags: %w{essabse}, address: node['fqdn'], port: 19000, interval: '30s')
   notifies :reload, 'consul_service[consul]', :delayed
 end

but the config that gets generated is

 {
  "data_dir": "/var/lib/consul",
  "client_addr": "0.0.0.0",
  "ports": {
    "dns": 8600,
    "http": 8500,
    "rpc": 8400,
    "serf_lan": 8301,
    "serf_wan": 8302,
    "server": 8300
  },
  "verify_incoming": false,
  "verify_outgoing": false
}

thanks !
Rob

@rj-reilly
Copy link
Author

I will say the check definition gets created but the consul agent config is wrong and unable to reach the cluster

@ramonskie
Copy link

when i do the following in my wrapper cookbook

node.default['consul']['config']['start_join'] = %w{ 172.21.xx.xx 172.21.xx.xx 9 172.21.xx.xx }
include_recipe 'consul'

it sets consul in server mode for some strange reason

@johnbellone johnbellone added this to the 1.4 milestone Dec 8, 2015
@johnbellone johnbellone self-assigned this Dec 8, 2015
@gdavison
Copy link
Contributor

This cookbook defaults to installing a server. The docs need to be updated.

See line 80 in https://github.com/johnbellone/consul-cookbook/blob/master/libraries/consul_config.rb#L80

@gdavison
Copy link
Contributor

@devilldog are you still experiencing this? I can't reproduce it with v1.3.1.

You mention that you also have consul in the run-list. Is there maybe an ordering issue? Can you post your run-list?

@johnbellone johnbellone removed this from the 1.4 milestone Feb 5, 2016
@johnbellone johnbellone added unknown and removed bug labels Feb 5, 2016
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot unassigned johnbellone Apr 25, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants