| I see two differences when comparing facter and facter-ng output on Windows 2019. The aio_agent_version and puppetversion facts are missing. Also paths with backslashes often are escaped on facter-ng, but not facter:
1d0 |
< aio_agent_version => 6.14.0.237 |
10,11c9,10 |
< env_windows_installdir => C:\Program Files\Puppet Labs\Puppet |
< facterversion => 3.14.10 |
--- |
> env_windows_installdir => C:\\Program Files\\Puppet Labs\\Puppet |
> facterversion => 4.0.15 |
14c13,14 |
< vmware => {} |
--- |
> vmware => { |
> } |
18c18 |
< user => "STIFFER-EXHAUST\Administrator" |
--- |
> user => "STIFFER-EXHAUST\\Administrator" |
27,29c27,29 |
< available => "2.91 GiB", |
< available_bytes => 3129040896, |
< capacity => "27.13%", |
--- |
> available => "2.90 GiB", |
> available_bytes => 3118993408, |
> capacity => "27.36%", |
32,33c32,33 |
< used => "1.08 GiB", |
< used_bytes => 1164857344 |
--- |
> used => "1.09 GiB", |
> used_bytes => 1174904832 |
94c94 |
< system32 => "C:\Windows\system32" |
--- |
> system32 => "C:\\Windows\\system32" |
97c97 |
< path => C:\Program Files\Puppet Labs\Puppet\puppet\bin;C:\Program Files\Puppet Labs\Puppet\bin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\cygwin64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Packer\SysInternals;C:\Program Files\Git\cmd;C:\Program Files\PowerShell\6;C:\Users\cyg_server\AppData\Local\Microsoft\WindowsApps |
--- |
> path => C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\cygwin64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Packer\\SysInternals;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\6;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps |
106a107 |
> puppetversion => 6.15.0 |
115,116c116,117 |
< seconds => 1376, |
< uptime => "0:22 hours" |
--- |
> seconds => 1381, |
> uptime => "0:23 hours" |
|
Also when looking at the different output formats, single vs double backslashes is only consistent for json but not yaml or the default:
$ cmd /c facter-ng | grep path |
path => C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\cygwin64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Packer\\SysInternals;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\6;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps |
|
$ cmd /c facter | grep path |
path => C:\Program Files\Puppet Labs\Puppet\puppet\bin;C:\Program Files\Puppet Labs\Puppet\bin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\cygwin64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Packer\SysInternals;C:\Program Files\Git\cmd;C:\Program Files\PowerShell\6;C:\Users\cyg_server\AppData\Local\Microsoft\WindowsApps |
|
$ cmd /c facter-ng --json | grep path |
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\cygwin64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Packer\\SysInternals;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\6;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps", |
|
$ cmd /c facter --json | grep path |
"path": "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\cygwin64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Packer\\SysInternals;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\6;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps", |
|
$ cmd /c facter-ng --yaml | grep path |
path: C:\Program Files\Puppet Labs\Puppet\puppet\bin;C:\Program Files\Puppet Labs\Puppet\bin;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\cygwin64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Packer\SysInternals;C:\Program |
|
$ cmd /c facter --yaml | grep path |
path: "C:\\Program Files\\Puppet Labs\\Puppet\\puppet\\bin;C:\\Program Files\\Puppet Labs\\Puppet\\bin;C:\\cygwin64\\usr\\local\\bin;C:\\cygwin64\\bin;C:\\cygwin64\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;C:\\Packer\\SysInternals;C:\\Program Files\\Git\\cmd;C:\\Program Files\\PowerShell\\6;C:\\Users\\cyg_server\\AppData\\Local\\Microsoft\\WindowsApps"
|
|