I have following requirement.
I am running puppet to install and startup server in puppet agent and it works fine.
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.
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 ?
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