community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Puppet: Disable/Enable Agent

Open sitzmoebelchronograph opened this issue 2 years ago • 2 comments

Summary

When using Ansible and Puppet in conjunction, it is possible for one to "step on" the other.

To avoid Puppet interfering with a running Ansible playbook, it would be helpful if there was support for specifically running:

puppet agent --disable "Doing Blah"

and, when done, run:

puppet agent --enable

It'd be "nice to have" for this to be part of the puppet module, rather than using raw commands, as it can be idempotent.

Issue Type

Feature Idea

Component Name

puppet

Additional Information

I'd see this working in a playbook something like this:

- name: Disable Puppet
  puppet:
    enabled: no
    message: Doing Blah
- name: Upgrade Stuff
  yum: '....'
- name: Enable Puppet
  puppet:
    enabled: yes

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

sitzmoebelchronograph avatar Jun 14 '22 20:06 sitzmoebelchronograph

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Jun 14 '22 20:06 ansibullbot

cc @emonty @nibalizer click here for bot help

ansibullbot avatar Jun 14 '22 20:06 ansibullbot

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Nov 05 '22 21:11 ansibullbot