https://github.com/eendroroy/ansible-rails-mysql
https://github.com/eendroroy/ansible-rails-mysql
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eendroroy/ansible-rails-mysql
- Owner: eendroroy
- License: mit
- Created: 2018-01-10T09:44:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T10:15:05.000Z (over 8 years ago)
- Last Synced: 2025-11-01T12:10:35.067Z (9 months ago)
- Language: Shell
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-rails-mysql
[](https://github.com/eendroroy/ansible-rails-mysql/graphs/contributors)
[](https://github.com/eendroroy/ansible-rails-mysql)
[](https://github.com/eendroroy/ansible-rails-mysql/blob/master/LICENSE)
[](https://github.com/eendroroy/ansible-rails-mysql/issues)
[](https://github.com/eendroroy/ansible-rails-mysql/issues?q=is%3Aissue+is%3Aclosed)
[](https://github.com/eendroroy/ansible-rails-mysql/pulls)
[](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