https://github.com/khusnetdinov/provisioner
Prepare enviroment on linux (Ubuntu) for run Ruby on Rails application in production. Setting up deploy user, timezone, locales, swapfile. Install PostgreSQL, Redis, Nginx.
https://github.com/khusnetdinov/provisioner
enviroment linux nginx provisioner redis swapfile timezone ubuntu
Last synced: 2 months ago
JSON representation
Prepare enviroment on linux (Ubuntu) for run Ruby on Rails application in production. Setting up deploy user, timezone, locales, swapfile. Install PostgreSQL, Redis, Nginx.
- Host: GitHub
- URL: https://github.com/khusnetdinov/provisioner
- Owner: khusnetdinov
- Created: 2016-06-23T06:52:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T09:03:23.000Z (almost 7 years ago)
- Last Synced: 2024-10-09T13:08:17.931Z (over 1 year ago)
- Topics: enviroment, linux, nginx, provisioner, redis, swapfile, timezone, ubuntu
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Provisioner
[](https://galaxy.ansible.com/khusnetdinov/provisioner/)
This ansible role helps to use several receipts together. Just wrapper for other roles.
## Files structure
```
├── /defaults/ # Default variables for playbook
│ └── main.yml # Variables for playbook
├── /meta/ # Meta
│ └── main.yml # Ansible Galaxy meta information
├── /roles/ # Vendor playbooks
├── /temp/ # Temp files
│── ansible.cfg # Ansible configuration file
│── hosts # Inventory file
│── README.md # Project description
│── requerements.txt # Dependencies file
└── playbook.yml # Playbook file
```
## How it works
#### Dependencies
Provisioner use other ansible receipts witch are specified in `requirements.yml`:
```yaml
---
- src: "https://github.com/Stouts/Stouts.locale"
name: locale
version: 1.1.0
... other tools ...
```
#### Installation
Run command:
```bash
$ ansible-galaxy install -r requirements.yml
```
#### Configuration
All variables should be placed in `defaults/main.yml`:
```yaml
---
provision_user_name: deploy
... other variables ...
```
This variables are used in playbook `playbook.yml`.
#### Playbook
Playbook is `playbook.yml` - main file. Plase here all logic.
#### Inventory
Is located in `hosts`.
```ini
# hosts
[provision]
# Set you hosts
0.0.0.0
```
#### Run provision
```bash
$ ansible-playbook playbook.yml -i hosts -vvv
```