nter codes.
Steven
Date: Thu, 25 Oct 2012 01:13:04 -0700
From: paolo.sup...@gmail.com
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] puppet facter variable substring
Hi Steven
Why the if statement?
TIA Paolo
On Wednesday, October 24, 2012 5:58:16 PM UTC+2, Steven wrote:
You can
Hi Steven
Why the if statement?
TIA
Paolo
On Wednesday, October 24, 2012 5:58:16 PM UTC+2, Steven wrote:
>
> You can use regex for that
>
> Here is an piece of my code for doing that. In my case [environment, 1
> letter][collo, 2 letters]
>
> if $hostname =~ /^(.)(..)/ {
> $gl
You can use regex for that Here is an piece of my code for doing that. In my
case [environment, 1 letter][collo, 2 letters] if $hostname =~ /^(.)(..)/ {
$global_env = $1
$location = $2
}
Steven
Date: Wed, 24 Oct 2012 07:14:50 -0700
From: paolo.sup...@gmail.com
To: puppet-users@google