visibilityspots / puppet-ansible

A puppet-module to manage ansible as an orchestrator through puppet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

puppet-ansible module Build Status

This module is intented to use ansible as an orchestration tool within an existing puppet environment based on puppetdb. It relies on the epel repository which you have to manage yourselves.

Tested on a CentOS 6.5 machine using puppet 3.7.1, puppetdb 2.2 and ansible 1.7

puppet

include ansible

class { 'ansible':
	puppetdb_host    => 'PUPPETDBHOST',
	puppetdb_port    => 'PUPPETDBPORT',
	puppet_inventory => true,
}

/etc/ansible/hosts

Using the defaults, ansible will use the default installed static /etc/ansible/hosts file which you can manipulate yourself.

If on the other hand you want to use your hosts managed by puppet you could enable the puppet_inventory param on true so the /etc/ansible/hosts file will be replaced by a dynamic inventory script based on your puppetdb service.

That way you can benefit of both services the nifty ansible to trigger services and the robust way of configuration management by puppet.

About

A puppet-module to manage ansible as an orchestrator through puppet

License:MIT License


Languages

Language:HTML 53.8%Language:Puppet 16.2%Language:Ruby 14.6%Language:Shell 11.2%Language:Python 4.1%