Thanks Stefan. That worked.

Denmat, the quotes seem to work fine for both the fact name and the values.

On Sun, Apr 17, 2011 at 5:04 PM, Denmat <tu2bg...@gmail.com> wrote:
> Hi,
>
> I'm pretty sure you need to remove the quotation marks from $operatinngsystem 
> and from redhat and solaris case matches.
>
> Cheers,
> Den
>
> On 18/04/2011, at 4:15, Mohamed Lrhazi <lrh...@gmail.com> wrote:
>
>> I have code like this:
>>
>> case "$operatingsystem" {
>>        "redhat": {
>>            include gu_splunk::redhat
>>        }
>>        "solaris": {
>>            include gu_splunk::solaris_old
>>            include gu_splunk::solaris
>>        }
>>    }
>>
>> In gu_splunk::solaris_old I have an Exec like this:
>>
>> exec { "download_pkgrm_adminfile":
>>        command => "wget -q -O /tmp/$pkgrm_adminfile http://... ",
>>        timeout => 60,
>>        creates => "/tmp/$pkgrm_adminfile",
>>    }
>>
>> Running puppet agent on a RedHat machine causes the Exec to execute
>> and the file to get downloaded!!
>>
>> Why?
>>
>> Thanks a lot.
>> Mohamed.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To post to this group, send email to puppet-users@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to