Code Monkey home page Code Monkey logo

girder-ansible's Introduction

Ansible playbook for for girder

Quick-Start

Ensure ansible-playbook is installed locally,

Create hosts.ini with the following and replace XXXX with the server IP address or Hostname. You can use a local VM for development tiers - see below section for instructions.

[prod]
XXXXX

[dev]
XXXXX

[all:children]
prod
dev

Create a remote user named ansible on the remote server and add them to the sudo-ers group

adduser ansible
gpasswd -a ansible sudo

Use the run binstub with a specified tier.

bin/run dev
bin/run prod

Virtual Machine Setup (Development)

You can set up a local virtual host to perform a trial run of the ansible playbook for development

Create a new server and map the following ports

  • ssh - 2222 (host) -> 22 (virtual machine)
  • ssh - 8080 (host) -> 80 (virtual machine)

Add the following to your hosts.ini file

[dev:vars]
vm=1
ansible_port=2222

Set up ssh on the VM

# Install open-ssh
sudo apt install openssh-server

# Start SSH service
sudo service ssh start

# Verify it is running
sudo lsof -i -n -P | grep ssh

Add an entry for this server in your /etc/hosts file

sudo vi /etc/hosts

# Add below line. Hostname can be anything.
127.0.0.1       dev-1001.example.co

You can now access the virtual machine from your local host

ssh -p 2222 dev-1001.example.co

girder-ansible's People

Contributors

abhchand avatar

Watchers

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