Jira (FACT-2917) Blocking `legacy` facts slows down facter

2021-01-17 Thread Bogdan Irimie (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie assigned an issue to Bogdan Irimie  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2917  
 
 
  Blocking `legacy` facts slows down facter   
 

  
 
 
 
 

 
Change By: 
 Bogdan Irimie  
 
 
Assignee: 
 Bogdan Irimie  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.383065.1610551174000.117009.161095545%40Atlassian.JIRA.


Jira (PUP-10850) Puppet facts show doesn't have an option to opt out of legacy facts

2021-01-17 Thread Oana Tanasoiu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oana Tanasoiu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10850  
 
 
  Puppet facts show doesn't have an option to opt out of legacy facts   
 

  
 
 
 
 

 
Change By: 
 Oana Tanasoiu  
 
 
Release Notes Summary: 
 By default, 'puppet facts show' application displays all facts, including legacy facts.  A new option, Description of the fix: Fix the  -- no show -legacy , was added to disable  option and don't display  legacy facts  by default (only  when  querying for all facts. The  the  --show-legacy  facts  option  remains, but  is  ignored, as that is the default behavior  provided) .  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.382858.1610379246000.117010.161095589%40Atlassian.JIRA.


Jira (PUP-10847) "puppet facts show fact" output differs from "facter fact"

2021-01-17 Thread Oana Tanasoiu (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Oana Tanasoiu updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10847  
 
 
  "puppet facts show fact" output differs from "facter fact"   
 

  
 
 
 
 

 
Change By: 
 Oana Tanasoiu  
 
 
Release Notes: 
 Bug Fix  
 
 
Release Notes Summary: 
 Description of the problem: The output format is different between Facter and puppet facts when a query for a single fact is provided:~~ puppet facts facterversion{ "facterversion": "4.0.47" }vs~~ facter facterversion4.0.47Description of the fix:Added --value-only command argument:When there is a single query, only display the value of the fact without it's name:~~ puppet facts facterversion --value-only"4.0.47"Also this generates a warning message if the argument is used with multiple queries or with no query at all:puppet facts show facterversion os --value-onlyWarning: Incorrect use of --value-only argument! The argument can only be used when querying for a single factAdded flat render format:When there is a query for a simple fact:puppet facts show facterversion --render-as flatfacterversion=4.0.47and with --value-onlypuppet facts show facterversion --render-as flat --value-only4.0.47When there is a query for a more complex fact (ex. os) the output will be:~~ puppet facts os --render-as flatos.architecture=x86_64os.family=Darwinos.hardware=x86_64os.macosx.build=18G95os.macosx.product=Mac OS Xos.macosx.version.full=10.14.6os.macosx.version.major=10.14os.macosx.version.minor=6os.name=Darwinos.release.full=18.7.0os.release.major=18os.release.minor=7and with --value-only~~ puppet facts os --render-as flat --value-onlyarchitecture=x86_64family=Darwinhardware=x86_64macosx.build=18G95macosx.product=Mac OS Xmacosx.version.full=10.14.6macosx.version.major=10.14macosx.version.minor=6name=Darwinrelease.full=18.7.0release.major=18release.minor=7For multiple user queries the output is :~~ puppet facts show os.name facterversion --render-as flatfacterversion=4.0.47os.name=DarwinWhen the result is an array, the index of each element is also displayed:~~ puppet facts show processors.models --render-as flatprocessors.models.0=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.1=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.2=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.3=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.4=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.5=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.6=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHzprocessors.models.7=Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz~~ puppet facts show networking.interfaces.interface_name.bindings6 --render-as flat --value-only0.address=fe80::...0.netmask=:::::0.network=fe80::0.scope6=link