Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Install puppet-agent on Windows 10.

The guide to install is below:

...

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

...

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


Code Block
languagebash
titleTrigger 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:


Image Added


And edit:


Image Added


Add class "launch_win" to machine:


Image Added


Set the variables:


Image Added


Note
titleAbout Variables

https://baltig.infn.it/lnf-da-control/puppet-launcher_win/-/blob/master/README.md


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


Code Block
languagebash
titleTrigger puppet-agent
 $ ssh chaos@chaos-win01.chaos.lnf.infn.it "puppet agent --test"

Below the typical output of puppet-agent:

Code Block
languageruby
titleOutput 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