Search code examples
puppet

Can I apply configuration from puppet master to agent


I have following requirement.

  1. I am running puppet to install and startup server in puppet agent and it works fine.

  2. Then I am running some tests on that server ( I execute test from the machine where puppet master resides) . In those tests I want to shutdown the server running in the agent side.

  3. Problem is I want to invoke this operation from master side to agent through puppet.

( As far as I know, normally we are triggering puppet from agent side to master and then master apply configurations to agent).

Can I do above described thing with puppet and how ?


Solution

  • Check out puppet kick

    https://docs.puppetlabs.com/references/3.6.2/man/kick.html

    As the doc says, first you have to configure the agents in order to listen to kick