Commit Graph

11 Commits (443be858f1b2705617787ab4035ba00e3f840e7d)

Author SHA1 Message Date
Brian Coca 4296ffbf03 Merge pull request #586 from resmo/feature/puppet-environments
puppet: add --environment support
9 years ago
Brian Coca c144836eb1 Merge pull request #588 from resmo/feature/puppet-optional-puppetmaster
puppet: make arg puppetmaster optional
9 years ago
Brian Coca c1d6023d98 Merge pull request #585 from resmo/fix/puppet-no-noop
puppet: ensure puppet is in live mode per default
9 years ago
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
~~~
9 years ago
Rene Moser d63425388b puppet: fix missing space between command and arg
Fixes:
~~~
{
    "cmd": "/usr/bin/puppetconfig print agent_disabled_lockfile",
    "failed": true,
    "msg": "[Errno 2] No such file or directory",
    "rc": 2
}
~~~
9 years ago
Rene Moser f33efc929a puppet: add --environment support 9 years ago
Rene Moser 537562217f puppet: ensure puppet is in live mode per default
puppet may be configured to operate in `--noop` mode per default.

That is why we must pass a `--no-noop` to make sure, changes are going to be applied.
9 years ago
Monty Taylor 8b6001c3da Fix octal values for python 2.4 9 years ago
Monty Taylor 12c945388b Add support for check mode 9 years ago
Monty Taylor 1605b1ec9c Fix some errors pointed out by travis 9 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
9 years ago