Giter VIP home page Giter VIP logo

Install Virtualbox and Vagrant

For local setup, please install Virtualbox and Vagrant on your machine. Follow the installation instructions on their websites.

Bootstrap the Environment

  1. Boot the master node

The following command will create a VM with salt installed and activated:

$ vagrant up monitor
  1. Create BCCVL certificates
$ vagrant ssh monitor
$ pushd /srv/CA
$ ./createcerts.sh
$ popd

This copies also all generated certs and keys into pillar/base/certs from where they can be used in normal pillar files

  1. Provision the monitor node

Create an empty users.sls:

$ touch /srv/pillar/base/users.sls

Copy /srv/pillar/base/variables.yml to /srv/pillar/dev/variables.yml and change the authtkt and requests sections to:

authtkt:
  name: __ac
  domain: {{ bccvl.hostname }}
  secret: secret
  secure: True

requests:
  ssl:
    verify: false

Because the master "salts" itself, we have to run highstate on the master first:

$ vagrant ssh monitor
$ sudo salt-call state.highstate

This should trigger a restart of the salt master daemon, which causes the minion to loose it's connection. If that's the case we'll have to re-run the highstate:

$ sudo salt-call state.highstate
$ exit

Build BCCVL Node:

First, create the SSH keys for the various components:

$ pushd salt/roots/pillar/dev/keys
$ ./createkeys.sh
$ popd

Then, bring up the BCCVL node. This works very similar to building the master node:

$ vagrant up bccvl
$ vagrant ssh bccvl
$ sudo salt-call state.highstate
$ exit

Build Worker Node:

Run the script downloadrlibs.sh to fetch all required R libraries. This step is necessary until a bug in salt file.managed with multiple alternative source locations is fixed:

$ ./downloadrlibs.sh

Go to http://www.cs.princeton.edu/~schapire/maxent/ and download a copy of maxent.jar v3.3.3k and place it in salt/roots/salt/prod/worker

The last steps are the same steps as above:

$ vagrant up worker
$ vagrant ssh worker
$ sudo salt-call state.highstate
$ exit

Available URIs after build:

Master Node:

URL Description
https://192.168.100.100/loganalyzer/ Loganalyzer
https://192.168.100.100/flower/ Flower
https://192.168.100.100/kibana/ Elasticsearch

BCCVL Node:

URL Description
https://192.168.100.200/ http://192.168.100.200/ BCCVL
https://192.168.100.200/_debug/ http://192.168.100.200/_debug/ BCCVL debug
https://192.168.100.200:15671 Rabbitmq
https://192.168.100.200/_visualiser/ http://192.168.100.200/_visualiser/ Visualiser
https://192.168.100.200/_datamover/ http://192.168.100.200/_datamover/ Datamover

Worker Node:

Nothing exposed here

Problems:

  • When updating the master config via salt, the master will be restarted and the minion looses the connection with the master and fails to finish executing the remainder of the state tree

TODO:

  • document folder structure ... esp. pillar/base/keys and certs
  • document how and what to override for different environments

bccvl's Projects

bccvl_visualiser icon bccvl_visualiser

A Pyramid web app to act as the Geo Server (Maps and Features) for the client. Expected to support WFS, GeoJSON, and WMS.

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.