Nigel Kersten
2011-Jan-11 18:37 UTC
[Puppet Users] Fwd: [Puppet-dev] Proposal: move parameter/property validation from master to agent
This is a reasonably important thread that I think is of interest to
the -users list as well as -dev.
I''m happy to take feedback from -users and migrate it to -dev if
people don''t want to go through the work of subscribing to the dev
list.
If you do want to, you can do that here:
http://groups.google.com/group/puppet-dev/
and you can also follow the thread itself here:
http://groups.google.com/group/puppet-dev/browse_thread/thread/51b1a5ce0be9698e
---------- Forwarded message ----------
From: Paul Berry <paul@puppetlabs.com>
Date: Tue, Jan 11, 2011 at 10:31 AM
Subject: [Puppet-dev] Proposal: move parameter/property validation
from master to agent
To: puppet-dev@googlegroups.com
Currently the master is responsible for validating resource parameters
and properties. That is, it checks that the user doesn''t attempt to
use a parameter or property that doesn''t exist (for example,
''group {
foo: path => bar }''), and it checks that the user doesn''t
attempt to
specify an invalid value for a parameter or property (for example,
''file { "/tmp/foo": recurse => "cheese"
}'').
Jesse Wolfe and I have been thinking about this in connection with
http://projects.puppetlabs.com/issues/4409, and we propose changing
this so that validation is done on the agent rather than the master.
Advantages we''re anticipating:
- It is no longer necessary for the master to be aware of types at
all, so when a module defines its own native type, it is not necessary
to copy it into the master''s lib directory
- It becomes possible to use different types in different
environments; this is especially important when using a "test"
environment to try out changes to a native type on a limited set of
nodes before pushing them to all nodes.
Disadvantages:
- If a catalog fails due to a type validation error, it will be an
execution error on the agent rather than a compilation error, so the
agent will not be able to fall back to the previous catalog.
Any comments on this proposal? This is a change that would likely be
made in version 2.7.
--
You received this message because you are subscribed to the Google
Groups "Puppet Developers" group.
To post to this group, send email to puppet-dev@googlegroups.com.
To unsubscribe from this group, send email to
puppet-dev+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-dev?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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Bruce Richardson
2011-Jan-11 19:10 UTC
Re: [Puppet Users] Fwd: [Puppet-dev] Proposal: move parameter/property validation from master to agent
On Tue, Jan 11, 2011 at 10:37:52AM -0800, Nigel Kersten wrote:> This is a reasonably important thread that I think is of interest to > the -users list as well as -dev.I subscribed to puppet-dev a while back and have never seen a single message from it. Assumed it was a quiet list ;) Tried resubscribing and it tells me I am subscribed. Still no messages. -- Bruce Remember you''re a Womble. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.