Background Story Why I did it ? Assumptions Is it for me ? Acknowledgments/Disclaimers HOW others can so the same ? Background Story tldr 😉 So this post is more of sharing how we can achieve X with amalgamation of Y,Z… where, X => auto-scaling aws machines Y,Z… => tools like git,ansible I work here at CloudFactory team to create some meaningful work/opportunities. We are big fan of some good stuffs like:
- name: test boolean hosts: all vars: SPIN_IN_VPC: false connection: local tasks: - shell: xcowsay 'spinnning in vpc' when: SPIN_IN_VPC|bool - shell: xcowsay 'spinnning in classic world :(' when: not SPIN_IN_VPC|bool
Motivation How we nailed it. In gist: Motivation Adding ssh-keys of a developer,qas never been a fun work to do. How we nailed it. In gist, we automate the whole process in 3 breakdowns: collect ips from our rails apps repo from github src code #kudoscflibs #kudooctokit pulling public keys from github pushing to authorized keys list for deploy user Ansible is awesome, so is github.