--
Facter.add("is_reseller") do confine :osfamily => "windows" setcode do powershell = 'C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -NoProfile' command = ' if ((hostname) -match \"rs\"){return $true}else{return $false}' Facter::Core::Execution.execute(%Q{#{powershell} -command "#{command}"}) end end
--