Commit Graph

5 Commits (a7c7e2d6d55a94e85192a95213c4cff28342c28c)

Author SHA1 Message Date
Rene Moser a7c7e2d6d5 puppet: make arg puppetmaster optional
puppetmaster was used to determine if `agent` or `apply` should be used. But puppetmaster is not required by puppet per default. Puppet may have a config or could find out by itself (...) where the puppet master is.

It changed the code so we only use `apply` if a manifest was passed, otherwise we use `agent`.

This also fixes the example, which did not work the way without this change.

~~~
# Run puppet agent and fail if anything goes wrong
- puppet
~~~
11 years ago
Monty Taylor 8b6001c3da Fix octal values for python 2.4 11 years ago
Monty Taylor 12c945388b Add support for check mode 11 years ago
Monty Taylor 1605b1ec9c Fix some errors pointed out by travis 11 years ago
Monty Taylor 5b401cfcc3 Add module to run puppet
There is a growing pattern for using ansible to orchestrate runs of
existing puppet code. For instance, the OpenStack Infrastructure team
started using ansible for this very reason. It also turns out that
successfully running puppet and interpreting success or failure is
harder than you'd expect, thus warranting a module and not just a shell
command.

This is ported in from
http://git.openstack.org/cgit/openstack-infra/ansible-puppet
11 years ago