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

Move to ansible for provisioning from terraform #57

Closed
tayzlor opened this issue Mar 31, 2015 · 1 comment
Closed

Move to ansible for provisioning from terraform #57

tayzlor opened this issue Mar 31, 2015 · 1 comment

Comments

@tayzlor
Copy link
Member

tayzlor commented Mar 31, 2015

At the moment we have a set of bash scripts (which works) but is slightly clunky / ugly.

We should be able to switch over to ansible fairly easily. This would allow us to -

  • Have a playbook that is generic (with box specific stuff in it) - that could be run over any cloud
  • Take advantage of ansible dynamic inventory for provisioning into cloud where we dont know the ip / details ahead of time.
  • Remove some slightly messy bash code e.g. -
ssh "$node" "echo '{\"ui_dir\": \"/opt/consul-ui\", \"server\": true, \"bootstrap_expect\": ${nodes}, \"service\": {\"name\": \"consul\", \"tags\": [\"consul\", \"bootstrap\"]}}' >/etc/consul.d/bootstrap.json"

For the second one we could use potentially use this https://github.com/adammck/terraform-inventory (AWS only at the moment) which generates a dynamic ansible inventory based on a terraform state file.

@tayzlor
Copy link
Member Author

tayzlor commented Apr 28, 2015

fixed

@tayzlor tayzlor closed this as completed Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant