Coder Social home page Coder Social logo

kamillelonek / ansible-with-clojure Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 6 KB

An example of Ansible module in Clojure

Home Page: https://medium.com/@KamilLelonek/how-to-write-ansible-module-in-clojure-5b340df90f5a

Shell 57.86% Clojure 42.14%

ansible-with-clojure's Introduction

servers-provisioning

This project manages your infrastructure by authorizing all GitHub users from your organization to access every machine.

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

Before doing anything make sure you have configured environmental variables such as:

  • GITHUB_TOKEN
  • GITHUB_CLIENT_ID
  • GITHUB_CLIENT_SECRET

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

Producion

Reprovision all machines and synchronize them with current GitHub users run:

./scripts/deploy.rb

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.