Hi all,
I''m happy to announce that Puppet''s latest release is out now.
This release provides a mostly refactored interpreter, which provides
two key language features.
First and foremost, we now have virtual resources[1], which allows you
to specify resources in one part of your configuration and mark them to
be sent to your client in another.
Second, resource overrides are now much more functional. The syntax has
been changed so that overrides must be specified explicitly. For instance:
class base {
file { "/etc/passwd": owner => root }
}
class sub inherits base {
File["/etc/passwd"] { owner => luke }
}
The biggest change WRT overrides, though, is that they are now
late-binding. You would previously have to worry about file order, but
now all you have to worry about is whether the current class has the
ability to override. As long as the resource was created by a parent
class, and the parameter you are overriding was also set by a parent
class (it could have been set by a different subclass instead), you can
override anywhere in your configuration.
Similar to the above syntax, all resource references (e.g.,
File["/etc/passwd"]) should now be capitalized; you''ll get
deprecation
warnings otherwise.
I''ll be working to update the documentation to reflect this change as
quickly as I can, but please send a note to the list if you find a place
that specifically reflects out-of-date information.
Thanks, and enjoy!
1 -
http://reductivelabs.com/projects/puppet/documentation/advanced/virtual.html
--
I have lost friends, some by death... others through sheer inability to
cross the street. -- Virginia Woolf
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com