Re: [Puppet Users] Windows custom fact as a batch file

2019-07-10 Thread Dirk Heinrichs
Am Mittwoch, den 10.07.2019, 23:10 -0700 schrieb Glenn Sarti: Change Request raised -

Re: [Puppet Users] Windows custom fact as a batch file

2019-07-10 Thread Glenn Sarti
Change Request raised - https://tickets.puppetlabs.com/browse/FACT-1934 On Thursday, July 11, 2019 at 2:01:48 PM UTC+8, Dirk Heinrichs wrote: > > Am Mittwoch, den 10.07.2019, 22:30 -0700 schrieb comport3: > > C:\ProgramData\ssh\ssh_host_ecdsa_key.pub > > > On Linux, SSH host keys are already conta

Re: [Puppet Users] Windows custom fact as a batch file

2019-07-10 Thread Dirk Heinrichs
Am Mittwoch, den 10.07.2019, 22:30 -0700 schrieb comport3: C:\ProgramData\ssh\ssh_host_ecdsa_key.pub On Linux, SSH host keys are already contained in facts. Maybe you can extract that code from a Linux agent and adapt it to your needs... Puppet developers: If you read this, please take it as a

[Puppet Users] Windows custom fact as a batch file

2019-07-10 Thread comport3
Is there anything else that is needed to have a custom facter fact as a batch file? cat lib/facter/ssh_hostkey.bat ``` @ECHO OFF for /f "tokens=2" %%a in ('type C:\ProgramData\ssh\ssh_host_ecdsa_key.pub') do (set hostkey=%%a) Echo ssh_hostkey=%hostkey% ``` Executes fine on the Windows host and