Deploying a rails app using ansible (Ansible meetup 4th July)
-
Upload
raghavendrra-mahesh -
Category
Software
-
view
296 -
download
1
Transcript of Deploying a rails app using ansible (Ansible meetup 4th July)
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?