Jira (FACT-1743) Environment variable override for structured facts
Title: Message Title Geoff Nichols assigned an issue to Unassigned Facter / FACT-1743 Environment variable override for structured facts Change By: Geoff Nichols Assignee: Larissa Lane Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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-1743) Environment variable override for structured facts
Title: Message Title Branan Riley updated an issue Facter / FACT-1743 Environment variable override for structured facts Change By: Branan Riley Team: Platform OS Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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-1743) Environment variable override for structured facts
Title: Message Title Branan Riley updated an issue Facter / FACT-1743 Environment variable override for structured facts Change By: Branan Riley Labels: cli triaged Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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-1743) Environment variable override for structured facts
Title: Message Title Scott McClellan assigned an issue to Larissa Lane Facter / FACT-1743 Environment variable override for structured facts Change By: Scott McClellan Assignee: Larissa Lane Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- 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-1743) Environment variable override for structured facts
Title: Message Title David Wood commented on FACT-1743 Re: Environment variable override for structured facts Branan Riley I've filed a ticket for the incorrect OS detection issue here. Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- 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-1743) Environment variable override for structured facts
Title: Message Title Fabien Wernli commented on FACT-1743 Re: Environment variable override for structured facts I find the FACTER_foo method very useful for debugging purposes. I think it would be great to be able to override structured facts too. IMHO it would suffice to be able to override the whole contents of the fact, not just a subset, e.g. # FACTER_os=''{"name"=>"Debian", "family"=>"Debian", "release"=>{"major"=>"9", "minor"=>"3", "full"=>"9.3"}, "lsb"=>{"distcodename"=>"stretch", "distid"=>"Debian", "distdescription"=>"Debian GNU/Linux 9.3 (stretch)", "distrelease"=>"9.3", "majdistrelease"=>"9", "minordistrelease"=>"3"}}' puppet agent --test Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- 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-1743) Environment variable override for structured facts
Title: Message Title Branan Riley commented on FACT-1743 Re: Environment variable override for structured facts As a workaround, you can lay down a .json or .yaml file in Facter's external facts directory, containing the entire structure you wish to override. EX: --- os: family: ... ... We don't currently provide a way to override just a subset of any structured fact, although it's definitely a feature that's been requested before. Also: Have you filed a ticket for the misdetected OS version? I'd like us to be able to resolve that for you as well, if possible. Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Jira (FACT-1743) Environment variable override for structured facts
Title: Message Title David Wood commented on FACT-1743 Re: Environment variable override for structured facts Has anyone had a chance to look at this? Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- 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-1743) Environment variable override for structured facts
Title: Message Title David Wood created an issue Facter / FACT-1743 Environment variable override for structured facts Issue Type: Bug Assignee: Unassigned Components: CLI Created: 2017/09/04 2:27 AM Environment: Bash for Windows, Windows 10, Puppet 5.1.0, Facter 3.8.0 (commit 89d6aed5d7847bacb3cc8547b00fefbf9771b202) Priority: Minor Reporter: David Wood I've found that within Docker containers, Facter incorrectly reports the operating system (Debian in an Ubuntu container) from the `os.name` and legacy `operatingsystem` facts. In order to combat this, I've been using environment variables such as `FACTER_operatingsystem='Ubuntu' facter operatingsystem` so that Puppet can correctly determine the OS in the manifests. However, as far as I'm aware, there is no way to override the structured facts using an environment variable, such as `FACTER_os_name` or `FACTER_osname` - this is an issue as throughout my Puppet manifests I've switched to using the modern, structured facts rather than the legacy ones and as such I cannot override the fact value that is being incorrectly reported. Are there any solutions to this I am unaware of or is it a bug?