Skip to content
Automated installation using Ansible
Python Ruby Vim script Makefile PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
base
cloud
contrib
debug
desktop
editors
finish
hosts
setup
wm
.drone.yml
.gitignore
.gitlab-ci.yml
ChangeLog.md
LICENSE.txt
Makefile
README.md
circle.yml
divona.yml
wercker.yml

README.md

Divona

  • Master: pipeline status

  • Develop: pipeline status

Automated installation. Tools supported:

Supported operating system:

Installation

Linux

  • Clone repository and install pip:

      $ git clone https://github.com/nlamirault/divona.git
      $ python get-pip.py
    
  • Install ansible:

      $ sudo pip install ansible==2.4.0.0
      $ sudo pip install ansible-lint==3.4.17
    

OSX

  • Clone repository and install pip:

      $ git clone https://github.com/nlamirault/divona.git
      $ python get-pip.py
    
  • Install ansible:

      $ sudo pip install ansible==2.4.0.0
      $ sudo pip install ansible-lint==3.4.17
    
  • Install homebrew:

      $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

Usage

  • Help:

      $ ==== divona [2.0.0] ====
      apply                : Which type to apply
      clean                : Cleanup
      docker-build         : Build a Docker image
      docker-debug         : Run a bash from a Docker image
      docker-publish       : Publish the Divona image
      docker-run           : Run Ansible using a Docker image
      init                 : Install requirements
      lint                 : Check ansible style
      ping                 : Check Ansible installation
    

Ansible

  • Check ansible is working :

      $ make ping host=ansible/hosts/xxxxx
    
  • Apply a configuration using which, host and user :

      $ make apply which=ansible/divona.yml host=ansible/hosts/xxxx user=yyyy
    
  • You could increase verbosity with DEBUG environment variable :

      $ DEBUG="-vvvv" make default host=ansible/hosts/xxxx user=yyyy
    

Development

It's possible to test the ansible playbooks using docker or vagrant.

Molecule

  • Setup Molecule:

      $ python3 -m venv venv
      $ source venv/bin/activate
      $ pip3 install molecule docker-py pytest==3.9.3
    
  • Execute all tasks:

      $ molecule test
    

Or :

  • Check yaml syntax: molecule lint
  • Check ansible syntax: molecule syntax
  • Create docker instance: molecule create
  • Execute the playbook: molecule converge
  • Execute unit tests: molecule verify

Docker

Build the image :

$ make docker-build image=debian (or arch, ...)

Run the playbooks :

$ make docker-run playbook=divona.yml image=debian (or arch, ...)

Vagrant

Changelog

A changelog is available here.

Contact

Nicolas Lamirault nicolas.lamirault@gmail.com

You can’t perform that action at this time.