Re: [Puppet Users] IF statement using custom fact does not work

2024-01-10 Thread Aaron Russo
If $facts['versionrepokubelocal'] is an integer I don't think your comparison will work. Try: ``` if $facts['versionrepokubelocal'] != 2 { notify { "Upgrading repository version": }type here } ``` -- Aaron Russo (He/Him/His) PIXAR | Lead Systems Engineer On Wed, Jan 10, 2024 at 7:35 AM

[Puppet Users] IF statement using custom fact does not work

2024-01-10 Thread Pato Bongi
The if statement doesn't work using a custom fact, i try this : notify { "FACTER value= ${facts['versionrepokubelocal']}": } if $facts['versionrepokubelocal'] != '2' { notify { "Upgrading repository version": }type here } I use notify before "if" for to check the value of the custom fact.