Code Monkey home page Code Monkey logo

ansible-playground's Introduction

ansible-playground

This project consists of automation infrastructure setup for rails-api with separate frontend application.

Prerequisites

Make sure you have installed the following things:

  • Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Brew Cask - brew install caskroom/cask/brew-cask
  • Virtual Box - brew cask install virtualbox
  • Vagrant - brew cask install vagrant
  • Ansible - brew install ansible

Usage

DNS

To install DNS resolvers run setup script

./scripts/dns.sh

Then you will be able to visit

http://example.company/

and any subdomain.

Local

  1. To create virtual machine (this is required only for the first time) run the following command:

    vagrant up

  2. Then you can setup you local machine in the same way as production environment will be configured

    vagrant provision

  3. Finally you can ssh to your machine and browse it contents

    vagrant ssh

Tests

If you want to modify ansible command, for example by providing tag names you can use test.sh script for that.

./scripts/test.sh [--tags=...]

Producion

To deploy infrastructure on production server run:

./scripts/production.sh [--tags=...]

ansible-playground's People

Contributors

kamillelonek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

krishnamurtyp

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.