This procedure allows you to start Labview in a RDP session of Windows 10, through the use of puppet.

Install puppet-agent on Windows 10.

The guide to install is below:

https://puppet.com/docs/puppet/5.5/install_windows.html

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



Find Puppet-Agent and stop and disable service:



Now, It's possible triggering the start of puppet-agent from ssh, for example:


Trigger puppet-agent
 #ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test"


Setting variable on Puppet Master /  Foreman.


Connect to https://puppet01.lnf.infn.it with your AAI credencial, search the Windows machine by name:



And edit:



Add class "launch_win" to machine:



Set the variables:




After press submit, it is possible running puppet-agent on machine by ssh command:


Trigger puppet-agent
 $ ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test"

Below the typical output of puppet-agent:

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








 











  • No labels