W dniu piątek, 3 lipca 2015 08:28:22 UTC+2 użytkownik Andreas Dvorak 
napisał:
>
> Dear all,
>
> I would like to use the fact zone_vm5809_iptype, but vm5809 is specific to 
> the host vm5809.
> If this fact on any host is excl do something
>
> Can somebody please help me?
>
> I have tried:
> if ( $::zone_${::hostname}_iptype == 'excl')
> Could not match ${::hostname}_iptype
> or
> $hostname = $::hostname
> if ( $::zone_${hostname}_iptype == 'excl')
> Could not match ${hostname}_iptype
>
> Best regards
> Andreas
>

$local_zone = inline_template('<%= 
scope.lookupvar("zone_#{@hostname}_iptype") %>') 

-- 
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/0e859db6-b0ba-4e8e-974e-defb5888f531%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to