On Tue, Jul 6, 2010 at 10:40 AM, Patrick Mohr wrote:
>>
>> Is it even possible in version 0.25.4?
>
> Try changing #{variable} to ${variable}
I tried this, it doesn't work.
Here's my test:
# Regular Expression Test
$who = "jeff"
$party = "jeff, john, bill, carrie"
$match = $party? {
/"${jef
On Jul 6, 2010, at 6:40 AM, Christian Casar wrote:
> Well, how do I use the content of a variable in regex?
>
> $username = "user1"
> file { "userdata.tar.bz2":
>source => "puppet://$server/modules/$module/
> userdata.tar.bz2",
>ensure => $users ? {
>
On Tue, Jul 6, 2010 at 6:40 AM, Christian Casar wrote:
> Well, how do I use the content of a variable in regex?
...
> But things like /$variable/ or /\$variable/ or /#{variable}/ just
> don't work.
> Is it even possible in version 0.25.4?
I couldn't get this to work either.
I get the same behavi
Well, how do I use the content of a variable in regex?
$username = "user1"
file { "userdata.tar.bz2":
source => "puppet://$server/modules/$module/
userdata.tar.bz2",
ensure => $users ? {
/$username/ => absent,