Problem
Facter cannot obtain network information on windows (codepage 936):
C:\Windows\system32>facter networking
|
[2022-03-04 18:24:44.359844 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.374198 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.383266 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.401726 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.412167 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.420493 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.440852 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.450050 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.465984 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.475664 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.485691 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
[2022-03-04 18:24:44.496139 ] ERROR Facter::InternalFactManager - "\xE5" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to UTF-16LE
|
{
|
domain => "desktop",
|
fqdn => "DESKTOP-QJS4564",
|
hostname => "DESKTOP-QJS4564"
|
}
|
os
C:\Windows\system32>facter os
|
{
|
architecture => "x64",
|
family => "windows",
|
hardware => "x86_64",
|
name => "windows",
|
release => {
|
full => "10",
|
major => "10"
|
},
|
windows => {
|
edition_id => "Enterprise",
|
installation_type => "Client",
|
product_name => "Windows 10 Enterprise",
|
release_id => "1809",
|
system32 => "C:\Windows\system32"
|
}
|
}
|
version
C:\Windows\system32>facter ruby
|
{
|
platform => "x64-mingw32",
|
sitedir => "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/site_ruby/2.7.0",
|
version => "2.7.5"
|
}
|
|
C:\Windows\system32>facter --version
|
4.2.7
|
|
C:\Windows\system32>puppet --version
|
7.14.0
|