Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Josh Cooper commented on FACT-3076 Re: Custom facts cannot reference external facts Since Puppet 6/Facter 3 will be EOL at the end of February and Puppet 7/Facter 4 support the requested functionality, I'm going to close this as won't do. Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- 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.417351.1632831868000.70929.1673295060293%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Robert Berry commented on FACT-3076 Re: Custom facts cannot reference external facts Thanks for the workaround. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.165153.1635403380040%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Gabriel Nagy commented on FACT-3076 Re: Custom facts cannot reference external facts Hey Robert Berry, If you're using a recent enough version of Puppet 6, you can enable Facter 4 on a per-agent basis by setting facterng to true in puppet.conf (or on a per-run basis with puppet agent -t --facterng). We recommend you to be on the latest Puppet 6 version before you do this, so you benefit from the latest updates that went in Facter 4. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.151669.1633963140204%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Ciprian Badescu commented on FACT-3076 Re: Custom facts cannot reference external facts The problem is no longer reproducible with latest facter 4. $ facter --external-dir ./FACT-3076/external --custom-dir `pwd`/FACT-3076/custom/ not_shouting hello Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.148275.1633517280367%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Robert Berry commented on FACT-3076 Re: Custom facts cannot reference external facts Or is there a way to modify the order of fact resolution in Facter 3? I cannot find any mention of this in the manpage or config examples. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.142828.1632967860023%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Robert Berry commented on FACT-3076 Re: Custom facts cannot reference external facts Hi Josh, Our Puppet fleet is huge and the binaries are managed by multiple teams, depending on platform. We have not yet scoped the migration to Puppet 7/Facter 4. Does Facter 4 include test cases for this behavior? Thanks Rob. Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.142827.1632967620215%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Josh Cooper commented on FACT-3076 Re: Custom facts cannot reference external facts Robert Berry do you get the same behavior with Puppet 7/Facter 4? Add Comment This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97) -- 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.417351.1632831868000.142817.1632963000413%40Atlassian.JIRA.
Jira (FACT-3076) Custom facts cannot reference external facts
Title: Message Title Robert Berry created an issue Facter / FACT-3076 Custom facts cannot reference external facts Issue Type: Bug Affects Versions: FACT 3.14.1 Assignee: Unassigned Components: Facter 3 Created: 2021/09/28 5:24 AM Priority: Normal Reporter: Robert Berry https://puppet.com/docs/puppet/6/external_facts.html says > Due to parse order, you can reference an external fact from a Ruby fact. But this does not seem to work: $ cat external/ext.yaml — shouting: 'HELLO' $ cat custom/cust.rb Facter.add('not_shouting') do setcode do Facter.value('shouting').downcase() end end $ facter --external-dir external shouting HELLO $ facter --external-dir external --custom-dir custom not_shouting 2021-09-28 05:08:08.686159 ERROR puppetlabs.facter - error while resolving custom fact "not_shouting": undefined method `downcase' for nil:NilClass The custom fact is loaded before external facts, and cannot resolve it: $ facter --debug --external-dir external --custom-dir custom not_shouting 2021-09-28 05:08:14.428428 INFO puppetlabs.facter - executed with command line: --debug --external-dir external --custom-dir custom not_shouting. 2021-09-28 05:08:14.428594 DEBUG leatherman.ruby:513 - ruby was found at "/usr/bin/ruby". 2021-09-28 05:08:14.428740 DEBUG leatherman.execution:93 - executing command: /usr/bin/ruby -e print(['libdir', 'archlibdir', 'sitearchlibdir', 'bindir'].find do |name|dir = RbConfig::CONFIG[name];next unless dir;file = File.join(dir, RbConfig::CONFIG['LIBRUBY_SO']);break file if File.exist? file;false end) 2021-09-28 05:08:14.498854 DEBUG | - /usr/lib/x86_64-linux-gnu/libruby-2.7.so.2.7.4 2021-09-28 05:08:14.499154 DEBUG leatherman.execution:610 - process exited with status code 0. 2021-09-28 05:08:14.501242 INFO leatherman.ruby:139 - ruby loaded from