Re: [Puppet Users] getvar and case
I confirm that using stdlib's downcase() worked. -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d1e9f7a0-e8de-4457-b43f-4020931d46e4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] getvar and case
On Friday, June 23, 2017 at 2:01:46 AM UTC-4, R.I. Pienaar wrote: > > You don't mention your versions but on the last 2 years of versions - i.e. > 4 - do: > > $facts["zend_application_name_${user_app_name}"] > > It looks like the facts are all forced downcase (https://tickets.puppetlabs.com/browse/FACT-777). I changed $directive_value_fact = getvar("::zend_directive_fileValue_${name}") to $directive_value_fact = getvar("::zend_directive_filevalue_${name}") and it seems to be working. I'll have to find a way to do a downcase on the variables and I think it'll be ok. I'll try to think about posting my final results for the community's benefit. Thanks, -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6370ae09-4938-4b72-bdde-3cd85c1888df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] getvar and case
On Friday, June 23, 2017 at 2:01:46 AM UTC-4, R.I. Pienaar wrote: > > You don't mention your versions but on the last 2 years of versions - i.e. > 4 - do: > > $facts["zend_application_name_${user_app_name}"] > Unfortunately, I'm still on Puppet 3.8. I know that Puppet 3 is EOL and Puppet 5 is already available (at least as beta), but I've been swamped with work and didn't have time to start to plan my migration yet. I have installed Puppet 4 on a server, but that's about how far I could go for now. If I could solve this specific problem, I'll have about 98% of this task done so I'm just about to be able to start to work with a more recent version of puppet. Thanks, > > --- > R.I.Pienaar > > > On 23 Jun 2017, at 05:03, Ugo Bellavance> wrote: > > > > zend_application_name_${user_app_name} > > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/92d689bb-7494-406f-a93b-d2ffcc64a303%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] getvar and case
You don't mention your versions but on the last 2 years of versions - i.e. 4 - do: $facts["zend_application_name_${user_app_name}"] --- R.I.Pienaar > On 23 Jun 2017, at 05:03, Ugo Bellavancewrote: > > zend_application_name_${user_app_name} -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/34DB2B38-C103-42AB-A087-AD14C1B9F269%40devco.net. For more options, visit https://groups.google.com/d/optout.