I have the following use case, which I think is a very valid use case,
but puppet is throwing an error.  Puppet's implementation of how
parameterized classes work with include/require breaks the
*declarative* nature of Puppet.  I believe this is the same bug as:

http://projects.puppetlabs.com/issues/5046

It seems there is a lot of discussion in that ticket, and IMO this use
case should be supported.

# this works fine
node default {
        class { ruby: version => "1.8" }
        class { rails: version => "3.0" }
}

# this throws an error "Must pass version to Class[Ruby] at ...
site.pp:13"
node baderror {
        class { rails: version => "3.0" }
        class { ruby: version => "1.8" }
}

class ruby ($version) { # line 13
}

class rails ($version) {
        require ruby
}

The reason I ran into this bug now is because I'm also using class
inheritance (for simplicity, I have not shown this in my example
above).

-- 
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