An open API service indexing awesome lists of open source software.

https://github.com/eendroroy/ansible-rails-mysql


https://github.com/eendroroy/ansible-rails-mysql

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# ansible-rails-mysql

[![Contributors](https://img.shields.io/github/contributors/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/graphs/contributors)
[![GitHub last commit (branch)](https://img.shields.io/github/last-commit/eendroroy/ansible-rails-mysql/master.svg)](https://github.com/eendroroy/ansible-rails-mysql)
[![license](https://img.shields.io/github/license/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/issues)
[![GitHub closed issues](https://img.shields.io/github/issues-closed/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/issues?q=is%3Aissue+is%3Aclosed)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/pulls)
[![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/eendroroy/ansible-rails-mysql.svg)](https://github.com/eendroroy/ansible-rails-mysql/pulls?q=is%3Apr+is%3Aclosed)

Setup environment for deploying rails application on a `Debian` or `RPM based` os
(`Debian`, `Ubuntu`, `RHEL 7+`, `CentOS 7+`, `Fedora`).
Base repo needs to be enabled using `subscription-manager` on `RHEL`.

## Description

Works on Debian and RedHat os family.

Tested on `Ubuntu 16.04`, `CentOS 7`, and `RedHat 7`

- System wide `rbenv` installation with ruby 2.5.0 and bundler gem
- MySQL with environment specific (staging or production) database and user with default configuration
- Nginx with minimal configuration (application specific configurations should be uploaded during rails application deployment).
See [puma-deploy](https://github.com/eendroroy/puma-deploy)
- Some common dependencies required for rails applications
- Create deploy user with ssh access and specific sudo permission required to deploy rails application

A sample Vagrantfile is included to test the playbook (Ubuntu 16.04 and CentOS 7)

## Variables

```bash
ruby_version: 2.5.0
deploy_user: deployer
app_name: application
app_env: vagrant
mysql_user: VagrantUser
mysql_user_password: vagrant_pass
```

## Contributing

Bug reports and pull requests are welcome on GitHub at [ansible-rails-mysql repository](https://github.com/eendroroy/ansible-rails-mysql).
This project is intended to be a safe, welcoming space for collaboration,
and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

## Authors

* **indrajit** - *Owner* - [eendroroy](https://github.com/eendroroy)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details