-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Add support for Consul 0.5.0 and Atlas auto-join #135
Conversation
atlas_cluster: <%= ENV.fetch('ATLAS_CLUSTER', 'example/cluster') %> | ||
atlas_token: <%= ENV.fetch('ATLAS_TOKEN', 'NOT_REAL') %> | ||
excludes: | ||
- centos-7.0 |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Ideally this should support auto-bootstrapping the cluster with I have prototyped that here: https://github.com/donaldguy/consul-cookbook/commit/7cf273aaffc220af6dc42cd74ddb76baba168015 It worked for me, starting from an up and associated with Atlas but unclustered set of servers, bringing them all down, deleteing the contents of the data dir (probably could just done |
@shanesveller Please rebase! |
@johnbellone I've rebased my branch, but it looks like CentOS Kitchen tests are currently failing - maybe on master too. Will investigate more tomorrow. |
Also please make sure something with I have all that on the branch(es) here: https://github.com/donaldguy/consul-cookbook/commit/7cf273aaffc220af6dc42cd74ddb76baba168015 I haven't tried the full test suit but at least on Ubuntu 14.04 its working great in my production env. |
@johnbellone Rebased one more time - CentOS tests fail on master too, and my company doesn't use it so I'm afraid I can't really invest any time digging further. @donaldguy I'm not clear on what your concerns are, can you elaborate here in the comments? My company tested this code as-is with an EC2 auto-scale group created from Packer-built AMIs and had no trouble scaling the cluster from 0 to 3 and up-and-down from there. The Atlas guide and Configure documentation don't seem to mention |
So upon further review, this is a case of user error, but I suspect I won't be the only one. the TL;DR is I didn't use the Maybe the fix is just putting it higher in the README or linking to it under Usage. It may also be making the (EDIT: I guess if you are still using the legacy manual While I noticed But what happens with this value and Atlas is confusing, when I first spun up, So the problems were/are three fold:
so @shanesveller you can probably safely ignore my branch, but I will still suggest that, since Atlas seems to make the service_config[join_mode] = node['consul']['servers'] should be service_config[join_mode] = node['consul']['servers'] unless node.consul.atlas_autojoin |
Hey, right now, It seems that auto-join and the SCADA/infrastructure stuff are two separate things (both require |
#126 is about to land on master. Are these attributes exposed via configuration? |
Add support for Consul 0.5.0 and Atlas auto-join
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. |
Commit adfa120 can probably be ignored from mainline. I took a glance at rebasing this off of
develop
branch,but it seems like it's in the middle of a sizeable rewrite.
Please keep or discard as much as you the maintainers find useful, in light of #126 etc.