-
Notifications
You must be signed in to change notification settings - Fork 314
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
'dict object' has no attribute u'ansible_eth1' #10
Comments
Hey there, Jason! Thanks for the report. It looks like you're hitting that error because your server(s) have just one network interface and the role currently expects two, but I should be able to add something to make it work in either case. Just to clarify one other point, are you also just starting up one instance of Consul? This is generally discouraged, so the role is designed for at least 3 servers so there would also need to be something added if for example you wanted to just start one server in |
Thanks for your reply! For prod I never run fewer than three consul server instances but in this test case I had only set one up. It appears you're correct. Here is the setup of the AWS instance:
|
Okay, so this issue is not really about having only one interface as the role should work fine that way, but due to how the role works with Vagrant based VirtualBox instances, it expects the intra-cluster communications to occur on the secondary interface or eth1 by default. This is not set in stone however, and you can actually specify your own name for the preferred cluster communication interface with the Taking your playbook and making this modification should work as expected:
Can you confirm that this works for you? |
Hi Jason, Hopefully specifying a different Thanks again for the report! |
Good afternoon, Brian!
I installed your role from Ansible Galaxy and I'm trying to install
consul
on a standalone server.Here's basic information:
ansible 2.2.0.0
Full error:
The playbook:
ansible.cfg
Thanks in advance!
The text was updated successfully, but these errors were encountered: