----- "Peter Meier" <peter.me...@immerda.ch> wrote:

> > right, classes cant have Caps as the first char (or maybe even  
> > anywhere? not sure).
> >
> > anyway, you'd probably need to look at a case statement then that  
> > includes opsys::centos for $operatingsystem == CentOS and similar  
> > for your other operating systems. :(
> 
> puppet does that already for us:
> 
> $ cat test.pp
> class test::debian {
>    notice("why don't you test? Fact: ${operatingsystem}")
> }
> 
> include "test::${operatingsystem}"
> $ puppet test.pp
> notice: Scope(Class[test::debian]): why don't you test? Fact: Debian

nice, didn't know include downcases things - I just always avoided the 
situation :)

I did test, but my test was lame and so did something stupid that failed :P

> 
> > puppet really needs a downcase function.
> 
> should be straighforward to implement, not?

yup, but not needed it seems :)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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