deploying a rails app using ansible (ansible meetup 4th july)
Post on 16-Apr-2017
297 Views
Preview:
TRANSCRIPT
Deploying a rails app using Ansible
Mahesh B R Sahaj Software Solutions Pvt. Ltd. @maheshbr1008 @maheshbr
What is Ansible?
• Configuration management and orchestration tool.
• Written in python.
• Everything is a yaml file.
• https://github.com/ansible/ansible
Steps
• Install rvm
• Remove default version of ruby if it’s present
• Install required version of ruby and make it the default.
• Install rails
• Install a rails server - puma/unicorn/raptor
• Install nginx
• Remove default nginx site
• Add myapp.conf
• Pull the repo or copy the artefact
• Couchbase
• Elasticsearch
• Kibana
• Postgres
• Newrelic
Demo
Walkthrough
Multi stage environment
• Multiple inventory files
• Grouping servers
• Group variables and precedence
Resources• http://docs.ansible.com/
• https://docs.ansible.com/playbooks_best_practices.html
• http://rosstuck.com/multistage-environments-with-ansible/
• http://www.erikaheidi.com/blog/configuring-a-multistage-environment-with-ansible-and-vagrant
Questions?
top related