...
Puppet-agent, periodically fetches and applies configurations from a Puppet master server, but in this case it doesn't need this features. It's possible use a ssh command to start of puppet-agent, as needed.
Disable puppet-agent in windows 10:
Open Windows "Services" App
...
Code Block |
---|
language | bash |
---|
title | Trigger puppet-agent |
---|
|
ssh#ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test" |
...
After press submit, it is possible running puppet-agent on machine by ssh command:
Code Block |
---|
language | bash |
---|
title | Trigger puppet-agent |
---|
|
$ ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test" |
Below the typical output of puppet-agent:
Code Block |
---|
language | ruby |
---|
title | Output puppet-agent |
---|
|
$ ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test"
chaos@chaos-win01.chaos.lnf.infn.it's password:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for chaos-win01
Info: Applying configuration version '1600870006'
Notice: /Stage[main]/Launcher_win/Exec[start_process]/returns: executed successfully
Info: /Stage[main]/Launcher_win/Exec[start_process]: Scheduling refresh of Exec[kill_cmd]
Notice: /Stage[main]/Launcher_win/Exec[kill_cmd]: Triggered 'refresh' from 1 event
Notice: Applied catalog in 10.32 seconds |