gary
01/18/2023, 7:20 PMFacter.value . Any ideas whats going on / what am I doing wrong?
Note this is only when I set the external fact (/etc/facter/facts.d/fact.json). The custom fact works fine when running without the module (see snippet).
Pasting snippets in this thread so I don't spam everyone.todd.seidenberg
01/18/2023, 9:03 PMinclude ::foo
include ::bar
Class['bar']
-> Class['foo']todd.seidenberg
01/18/2023, 9:04 PM;;Slackbot
01/18/2023, 9:04 PMSlackbot
01/18/2023, 9:20 PMgary
01/18/2023, 9:54 PMgary
01/18/2023, 10:03 PMlldp that calls Facter.value(:lldp) is proabbly not the best call 🙂Joe Abbate
01/18/2023, 10:37 PMnatemccurdy
01/18/2023, 10:40 PM--use_cached_catalog flag or with the use_cached_catalog config option set to true.
For example:
sudo puppet agent --use_cached_catalog
Also note that if you're using the -t (--test) flag, the agent will not use a cached catalog since -t includes the --no-usecacheonfailure flag.natemccurdy
01/18/2023, 10:41 PMnatemccurdy
01/18/2023, 10:42 PM--use_cached_catalog flag or with the use_cached_catalog config option set to true.
For example:
sudo puppet agent --use_cached_catalog
Also note that if you're using the -t (--test) flag, the agent will not use a cached catalog since -t includes the --no-use_cached_catalog flag.natemccurdy
01/18/2023, 10:42 PM--use_cached_catalog flag or with the use_cached_catalog config option set to true.
For example:
sudo puppet agent --use_cached_catalog
Also note that if you're using the -t (--test) flag, the agent will not use a cached catalog since -t includes the --no-usecacheonfailure flag.natemccurdy
01/18/2023, 10:43 PMSlackbot
01/18/2023, 10:45 PMnatemccurdy
01/18/2023, 10:46 PMusecacheonfailure option.
If you want the agent to only use the cached catalog and not try to get a new one, use the use_cached_catalog option.Craig Gumbley
01/19/2023, 12:57 PMDavid Sandilands
01/19/2023, 1:18 PMLes Shiner
01/19/2023, 5:19 PMLes Shiner
01/19/2023, 5:19 PMLes Shiner
01/19/2023, 5:19 PMDavid Sandilands
01/19/2023, 5:21 PMLes Shiner
01/19/2023, 5:22 PMLes Shiner
01/19/2023, 5:22 PMSlackbot
01/19/2023, 6:30 PMrusty
01/19/2023, 7:19 PMOptional[Enum['thing1', 'thing2']] $param = undef, when you have a default in mind. Using the default value instead of undef makes puppet-lint angry.rusty
01/19/2023, 7:20 PMnatemccurdy
01/19/2023, 7:22 PMundef, don't use a data type of Optionalrusty
01/19/2023, 7:23 PMnatemccurdy
01/19/2023, 7:24 PM'thing1', for example, I'd make the parameter definition be: Enum['thing1', 'thing2'] $param = 'thing1'rusty
01/19/2023, 7:24 PM