GithubHelp home page GithubHelp logo

ansible-deployment-spike's Introduction

Setting up VMs on macOS using Virtual box:

  • Download and install Virtual box: https://www.virtualbox.org/wiki/Downloads
  • Download centos 7 VM image: https://www.linuxvmimages.com/images/centos-7/
  • Import the centos 7 image into virtual box
  • We can go with the default configuration for network cards, RAM etc.
  • After the image is imported, go to network settings and add following network adapters:
    • Bridged adapter (with en0 interface) (for communication between multiple VMs)
    • NAT adapter (for communication via host OS)
  • Duplicate this image in order to create another VM
  • Share host ssh keys with the VM so that Ansible is able to connect to VMs from host OS
  • Disable the firewall on VMs using systemctl stop firewalld command as this would prevent location service cluster from forming. Alternatively, whitelist the VM IPs in firewall.

Running the ansible deployment on VMs

Ansible playbook contains the task that are to be executed on the target nodes. This includes:

  • Download and install coursier
  • Install Java and setup path env
  • Install and launch location service cluster using one VM as seed node
  • Install and launch config service on one VM
  • Install and launch agent app on both VMs

Host specific variables like machine_name are defined in the inventory file.

Variables for versions (csw-version and esw_version) are defined in the deploy_versions.json file.

ansible-deployment-spike's People

Contributors

mausamyede avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.