Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Ethan Brown commented on FACT-1396 Re: Replace Facter 2.x queries with WMI where applicable I think I may have filed this prematurely as well. Nano does have WMI support, which changes the scope of this ticket for Facter 2 – "Nano Server supports the full WMI, because it was too costly for Microsoft to rewrite all the existing providers to be OMI-compliant" In a quick test, I executed all the above queries within Nano, and found that there are a few that didn't work: select Name from Win32_Processor PS C:\> Get-CimInstance -Query 'Select Name From Win32_Processor' Get-CimInstance -Query 'Select Name From Win32_Processor' DeviceID Name Caption MaxClockSpeed Socket Design ation --- - -- CPU0 Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Moses Mendoza updated an issue Facter / FACT-1396 Replace Facter 2.x queries with WMI where applicable Change By: Moses Mendoza Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Branan Riley commented on FACT-1396 Re: Replace Facter 2.x queries with WMI where applicable I think it would be preferable to get the Facter 3 gem working for puppet unit tests on nano, instead of investing engineering effort in Facter 2 at this stage. My POC was pretty easy, and we mostly just need to invest in the build tooling for it. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Sean McDonald updated an issue Facter / FACT-1396 Replace Facter 2.x queries with WMI where applicable Change By: Sean McDonald Team: Agent Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Sean McDonald updated an issue Facter / FACT-1396 Replace Facter 2.x queries with WMI where applicable Change By: Sean McDonald Labels: triaged Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Sean McDonald updated an issue Facter / FACT-1396 Replace Facter 2.x queries with WMI where applicable Change By: Sean McDonald Story Points: 3 Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Ethan Brown commented on FACT-1396 Re: Replace Facter 2.x queries with WMI where applicable I think we will still need to do this when we decide to support Nano. Our initial Nano server testing will have to be spec only against Puppet repo (i.e. an install with git clone) - I'm not sure if the C++ toolchain works if we were to add it to CI to build / test Facter. To support acceptance requires that Nano Server packages are built, which involves a complete overhaul to add a new packaging format on Windows (given MSI doesn't work on Nano). So we've got a few things that we will need to do as we figure this out: Make sure Facter 2 behaves properly so that Nano specs can be run from a git install, for the sake of the Puppet repo (same would hold true for module testing I believe - which sometimes require custom facts) Figure out what to do about Facter 3: Get build toolchain working on Nano? Get binaries building once for Windows and enable testing those binaries on different Windows platforms / architectures Get Facter 3 packaged up as a gem? My statement about acceptance testing isn't strictly true - while we can't run an MSI, we can extract it like a zip / tarball. It might be too hacky to be useful, or it might be a useful stopgap solution - we'd have to spend a little time figuring that out. Add Comment
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Branan Riley commented on FACT-1396 Re: Replace Facter 2.x queries with WMI where applicable Ethan Brown Is this still worth considering, given the EOL of Puppet 3 / Facter 2? Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (FACT-1396) Replace Facter 2.x queries with WMI where applicable
Title: Message Title Ethan Brown created an issue Facter / FACT-1396 Replace Facter 2.x queries with WMI where applicable Issue Type: Improvement Affects Versions: FACT 2.4.6 Assignee: Unassigned Components: Windows Created: 2016/04/18 5:50 PM Priority: Normal Reporter: Ethan Brown All calls can use native APIs instead of WMI: select Name from Win32_Processor - https://github.com/puppetlabs/facter/blob/2.x/lib/facter/processors/os.rb#L113 select DNSDomain from Win32_NetworkAdapterConfiguration where IPEnabled = True - https://github.com/puppetlabs/facter/blob/2.x/lib/facter/domain.rb#L86 select Architecture, Level, AddressWidth from Win32_Processor - https://github.com/puppetlabs/facter/blob/2.x/lib/facter/domain.rb#L86 select TotalPhysicalMemory fro