Thanks John. At least I know there is no way to improve my code.
I prefer to try to keep logic in the .pp files and out of the templates,
just to make it easier to find.
On Thursday, October 4, 2012 1:02:35 AM UTC+10, jcbollinger wrote:
>
>
>
> On Tuesday, October 2, 2012 10:10:13 AM UTC-5, Guzmá
Thanks Guzman, as John pointed out that won't work (I think this is because
Puppet's language is declarative, even if it resembles procedural language
in many ways).
On Wednesday, October 3, 2012 1:10:13 AM UTC+10, Guzmán Brasó wrote:
>
> I'm in no way a puppet guru but rewritting it didnt w
On Tuesday, October 2, 2012 10:10:13 AM UTC-5, Guzmán Brasó wrote:
>
> I'm in no way a puppet guru but rewritting it didnt work? from a logic
> point of view this should work:
>
>
> class
> $baseurl,
> $webapp_context_path = ''
> ) {
> if ($webapp_context_path == '') {
> #
I'm in no way a puppet guru but rewritting it didnt work? from a logic
point of view this should work:
class
$baseurl,
$webapp_context_path = ''
) {
if ($webapp_context_path == '') {
# Try to get value from baseurl
$webapp_context_path = regsubst($baseurl, '^https?://[^/]+(