Fact Validation is failing on latest release. Sets fact in one run then removes it in the next run.
Code sample of defining facts to be set:
facter::fact { 'mongodb_auth_init':
value => 'true',
}
On the first run we see the facts getting set:
Notice: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]/content:
--- /etc/facter/facts.d/facts.txt 2022-05-27 00:21:20.874163515 -0400
+++ /tmp/puppet-file20220527-161762-1o1t8p1 2022-05-27 00:33:08.876574115 -0400
@@ -2,5 +2,7 @@
#DO NOT EDIT
+mongodb_auth_init=true
Info: Computing checksum on file /etc/facter/facts.d/facts.txt
Info: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: Filebucketed /etc/facter/facts.d/facts.txt to puppet with sum a94a8e719b853dff67b5ed30e8505863
Notice: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]/content: content changed '{md5}a94a8e719b853dff67b5ed30e8505863' to '{md5}664404d17196dd6098a58a8c530a53e7'
Debug: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: The container Concat[facts_file] will propagate my refresh event
Debug: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: The container facts_file will propagate my refresh event
Debug: facts_file: The container Concat[facts_file] will propagate my refresh event
Debug: Concat[facts_file]: The container Class[Facter] will propagate my refresh event
Debug: Class[Facter]: The container Stage[main] will propagate my refresh event
Debug: Class[Facter]: The container Class[Encore_rp::Profile::Facter] will propagate my refresh event
And then on the very next run we see the facts getting taken out:
Debug: Executing: 'diff -u /etc/facter/facts.d/facts.txt /tmp/puppet-file20220527-157331-1ex18de'
Notice: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]/content:
--- /etc/facter/facts.d/facts.txt 2022-05-27 00:06:57.331738051 -0400
+++ /tmp/puppet-file20220527-157331-1ex18de 2022-05-27 00:21:20.015139357 -0400
@@ -2,7 +2,5 @@
#DO NOT EDIT
-mongodb_auth_init=true
Info: Computing checksum on file /etc/facter/facts.d/facts.txt
Debug: Locked '/opt/puppetlabs/puppet/cache/clientbucket/6/6/4/4/0/4/d/1/664404d17196dd6098a58a8c530a53e7/paths'
Debug: Unlocked '/opt/puppetlabs/puppet/cache/clientbucket/6/6/4/4/0/4/d/1/664404d17196dd6098a58a8c530a53e7/paths'
Info: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: Filebucketed /etc/facter/facts.d/facts.txt to puppet with sum 664404d17196dd6098a58a8c530a53e7
Debug: Executing: 'diff -u /etc/facter/facts.d/facts.txt /tmp/puppet-file20220527-157331-tgtv2v'
Notice: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]/content:
Notice: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]/content: content changed '{md5}664404d17196dd6098a58a8c530a53e7' to '{md5}a94a8e719b853dff67b5ed30e8505863' (corrective)
Debug: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: The container Concat[facts_file] will propagate my refresh event
Debug: /Stage[main]/Facter/Concat[facts_file]/File[/etc/facter/facts.d/facts.txt]: The container facts_file will propagate my refresh event
Debug: facts_file: The container Concat[facts_file] will propagate my refresh event
Debug: Concat[facts_file]: The container Class[Facter] will propagate my refresh event
Debug: Class[Facter]: The container Stage[main] will propagate my refresh event
Debug: Class[Facter]: The container Class[Encore_rp::Profile::Facter] will propagate my refresh event
For some reason the validation is not happening properly.
Fact Validation is failing on latest release. Sets fact in one run then removes it in the next run.
Code sample of defining facts to be set:
On the first run we see the facts getting set:
And then on the very next run we see the facts getting taken out:
For some reason the validation is not happening properly.