Giter Site home page Giter Site logo

ansible-marionette's Introduction

ansible-marionette

Orchestrate with Ansible a complex deployment driven by Puppet OpenStack modules.

Quickstart

Prepare your environment by editing deployment.yaml file. An example is provided with openstack-example.yaml. This is a simple example that will deploy and validate OpenStack Keystone.

---
- hosts: controllers
  become: yes
  roles:
    - common
    - mysql
    - keystone
    - puppet_run
  vars:
    puppet_role: controller

Soon, you'll be able to deploy complex deployments such as this example:

---
- hosts: controllers
  become: yes
  roles:
    - common
    - mysql
    - keystone
    - nova-api
    - nova-scheduler
    (...)
    - puppet_run
  vars:
    puppet_role: controller

- hosts: computes
  become: yes
  roles:
    - common
    - nova-compute
    (...)
    - puppet_run
  vars:
    puppet_role: compute

You'll also need to build your inventory by creating "inventory" file. An example is given in inventory_example.

[controllers]
controller.openstack.org ansible_host=controller.openstack.org

[computes]
compute1.openstack.org ansible_host=compute1.openstack.org
compute2.openstack.org ansible_host=compute2.openstack.org

The architecture of this module makes easy to compose roles. Any deployment can be different, by just editing deployment.yaml and the inventory.

Run the deployment and validation:

./run_tests.sh

Steps of deployment

  • Ansible & dependencies will be installed where Ansible is run.
  • Puppet will be installed, configured and tested on remote nodes.
  • Each node will have correct Hieradata to deploy the services we want.
  • Puppet will be run remotely, in masterless.
  • After the deployment, services will be validated.

Demo

A demo of a controller deployment + validation: https://asciinema.org/a/eecud0zny7gd3pny1ht27cc6w

Limitations

  • only work on centos7, fedora and rhel.

ansible-marionette's People

Contributors

emilienm avatar larsks avatar

Watchers

 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.