I have a tricky problem where I need your support. We use the regsubst
function in one of our manifests to extract certain information from the
fqdn. That code is running in production since months and does extactly
what it should.
7: $customer = upcase(regsubst($::fqdn, '(^[^-]*)-[^-]*.*', "\\1"))
8: $environment = upcase(regsubst($::hostname, '^[^-]*-([^-]*).*', "\\1"))
9: $product = upcase(regsubst($::hostname, '^[^-]*-[^-]*-([^\.1-9]*).*',
Last week I discovered the stdlib module from PuppetLabs and gave it a try.
Really nice functions, and I used them of course for my next module. But
since then it looks like the regsubst function is not working anymore.
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Function 'regsubst' does not return a value at
It even fails when I run puppet against a environment without the stdlib
module, which confuses me most. Does anybody of you have an idea, why that
code now fails? We use Puppet 2.7.18.
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.