Facts exist at top scope, as indicated in the scoping doc several people have 
referred you to on this list.  Use $::ec2_instance_type

Sent from my iPad

On Aug 19, 2012, at 10:44 PM, Douglas Garstang <doug.garst...@gmail.com> wrote:

> I don't get it...
> 
>    if ! ( $ec2_instance_type in [$ec2_inst_type_allow]) {
>        notice("NOT ALLOWED")
>    } else {
>        notice("ALLOWED")
>    }
> 
> 2012-08-20T02:39:10.537134+00:00 truth puppet-master[24080]: Dynamic
> lookup of $ec2_instance_type at /truth/sauce/env/prod/modules/rol
> e/manifests/validate_server.pp:12 is deprecated.  Support will be
> removed in Puppet 2.8.  Use a fully-qualified variable name (e.g., $
> classname::variable) or parameterized classes.
> 
> Line 12 is the if statement. However, on the same client system...
> 
> [us1:i-16c5c050] root@testweb11:~# facter | grep ec2_instance_type
> ec2_instance_type => m1.large
> 
> It's a facter variable. What's it complaining about?
> 
> Doug.
> 
> -- 
> 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