I was able to get past this in my env, but wanted to pass the fix up to you guys since the it's pretty straightforward. I can submit a PR too if wanted, it should should only require 4 lines to be modified.
My env:
puppetserver version is 7.6.1 (from Debian apt downstream)
puppet agent version is 7.23.0 (from Puppet apt upstream)
puppetlabs-stdlib version is v9.3.0
pupppet-bitbucket version I'm using is 2.3.0
Client OS is Debian Bookworm (12.5)
Upon running puppet-bitbucket I get the following:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown function: 'validate_hash'.
I traced this to a deprecation of that function, additionally the function validate_bool has also been deprecated.
The recommended mitigation by puppetlabs-stdlib is to use data types, see here.
To get past this I replaced every instance of validate_hash() with Hash() and every instance of validate_bool() with Boolean(). If either type were malformed assigning them a type will fail, as intended.
I was able to get past this in my env, but wanted to pass the fix up to you guys since the it's pretty straightforward. I can submit a PR too if wanted, it should should only require 4 lines to be modified.
My env:
7.6.1
(from Debian apt downstream)7.23.0
(from Puppet apt upstream)v9.3.0
2.3.0
Upon running puppet-bitbucket I get the following:
I traced this to a deprecation of that function, additionally the function
validate_bool
has also been deprecated.The recommended mitigation by puppetlabs-stdlib is to use data types, see here.
To get past this I replaced every instance of
validate_hash()
withHash()
and every instance ofvalidate_bool()
withBoolean()
. If either type were malformed assigning them a type will fail, as intended.