Clark Boylan 8cc1cd9126
Simplify puppet cmd generation
We were copy pastaing code in the puppet cmd generation for noop and
environment handling. Collapse that to make code easier to read and
hopefully avoid future bugs where only one side is edited.

Local testing shows that puppet parses commands like:

  puppet apply test.pp --noop

just fine.

Change-Id: Ie7665f72b9327b6b834d358699addf2c60a95ec0
2016-10-01 08:11:12 -07:00
2016-10-01 08:11:12 -07:00
2016-10-01 08:11:12 -07:00
2015-11-11 21:43:59 -05:00
2015-11-11 21:43:59 -05:00

puppet

Run puppet consistently from ansible.

Requirements

puppet needs to be installed on the target node, and if puppet agent is being used, the cert exchange needs to have been performed.

Role Variables

puppetmaster is the required parameter.

Dependencies

None

Example Playbook

The only required argument is puppetmaster:

- hosts: servers
  roles:
     - { role: infra.puppet, puppetmaster: puppetmaster.openstack.org }

License

Apache

Author Information

ansible-puppet is maintained by the OpenStack Infra team. The best way to contact them is on #openstack-infra on freenode.

Description
Ansible role for running puppet
Readme 1,023 KiB
Languages
Python 84.6%
Jinja 11%
Shell 4.4%