Giter Site home page Giter Site logo

khusnetdinov / provisioner Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 64 KB

Prepare enviroment on linux (Ubuntu) for run Ruby on Rails application in production. Setting up deploy user, timezone, locales, swapfile. Install PostgreSQL, Redis, Nginx.

provisioner timezone swapfile nginx ubuntu redis linux enviroment

provisioner's Introduction

Provisioner

Galaxy

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:

  ---

  - src: "https://github.com/Stouts/Stouts.locale"
    name: locale
    version: 1.1.0

  ... other tools ...

Installation

Run command:

  $ ansible-galaxy install -r requirements.yml

Configuration

All variables should be placed in defaults/main.yml:

  ---
  
  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.

  # hosts

  [provision]
  # Set you hosts
  0.0.0.0

Run provision

  $ ansible-playbook playbook.yml -i hosts -vvv

provisioner's People

Contributors

khusnetdinov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cbepx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.