Coder Social home page Coder Social logo

caliopen-ansible's Introduction

This is an ansible repository for deployment of Caliopen infrastructure.

Deployment is done using ansible playbooks.

2 types of deployments are possibles:

  • single machine deployment
  • 2 distincts machines set, one for web application another for backend services

Installation

if ansible is not installed on your system:

  • make a virtualenv, activate it
  • pip -r requirements.txt

Configuration

x509 configuration

  • Edit certificates information using your own (rsa key are crypted inside this repository they will not work for you)
rm roles/web/files/certs/*
# generate a new key and csr
openssl req -new -newkey rsa:2048 \
    -keyout roles/web/files/certs/caliopen.key \
    -out roles/web/files/certs/caliopen.csr

# generate the certificate using [CaCert](www.cacert.org) for example
# and set this certificate as roles/web/file/certs/caliopen.crt file

Ansible configuration

  • Edit a hosts file with a webservers and backends groups and reachable address of related machines

  • Edit a group_vars/backends file using backend.tmpl template

  • Edit a group_var/webservers file using webservers.tmpl template

  • Edit a host_vars/<machine_name> for all of your machines using relatedtemplate switch machine role

NOTE:

For deployment on a single machine, make the machine appear in both webservers and backends groups

Set the private_ip_address in host_vars/<machine_name> to 127.0.0.1

For deployment on 2 distincts groups of machines, make sure you can have a private network usable on eth1 interface for your machines. This kind of

Deployment

single machine deployment

ansible-playbook -i hosts single.yaml

2 groups of machines

ansible-playbook -i hosts backends.yaml
ansible-playbook -i hosts webservers.yaml

Usage

Hence deployment is done, you can play with the caliopen cli command on the webservers machines. You have to activate the python virtualenv for that.

su - caliopen
source /var/projects/caliopen/env/bin/activate

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.