-
Notifications
You must be signed in to change notification settings - Fork 69
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
HOWTO: Successful consul ansible installation in Ubuntu 16.04 locally #14
Comments
Hey @TheEdu, Sorry to hear you are having some problems precompiling assets, it could be a number of things... 🤔 @zenny Thank you so much for the kudos and the walkthrough 🙌 I'm closing this issue so that other developers don't feel tempted to ask questions here instead of creating new issues 👍 |
This worked for me! thank you. ONly when I try ti rerun the playbook it gets stuck on the task rails : Load configuration seeds. To be exact it gets stuck on:
Any help? |
Hey @kevieman, |
Hi,
In order to install consul with this ansible script locally in Ubuntu 16.04, one needs to do the following step-by-step:
Login as root user (sudoers did not work)
Create a rsa key
# ssh-keygen -t rsa
Install necessary dependency for 4 below:
# apt-get install software-properties-common -y
Install latest
ansible
and dependencies from upstream (requires ansible 2.4+ which is not readily available in ubuntu repository)# add-apt-repository ppa:ansible/ansible
# apt-get update
# apt-get -y install ansible curl python-simplejson git
Pull this repo (as root itself) and change to the installer directory:
# git clone https://github.com/consul/installer
# cd installer
Disable remote_user as it is a local ansible instance:
# sed -i -e 's/remote_user: vagrant/#remote_user: vagrant/g' consul.yml
Make hosts to reflect localhost (127.0.0.1)
# echo '[servers]' > hosts
# echo '127.0.0.1' >> hosts
Make changes to
/root/installer/group_vars/all
to reflect your own needs.Run ansible-playbook with
-c local
flag to run locally.# ansible-playbook consul.yml -i hosts -c local --extra-vars "target=servers"
Once finished, browse to the
server_ip_address
in a browser and login with default credentials:Once logged in, change admin password. That's all!
Hope this helps for anyone who shall be in my shoes.
Kudos goes to the entire consul team for developing such a thought-provoking software and a comprehensive installer.
Cheers,
/z
The text was updated successfully, but these errors were encountered: