Issue #2834 has been updated by Alan Barrett.
Daniel Beckham wrote:
> Whatever is defined in the external node database will be used instead of
> what was passed on the command line.
> This makes it hard to do a noop check on a production node that you can't or
> do not want to actually move to testing or development.
> Can we somehow force the command line parameter to override all?
The external node classifier is not just a database; it can contain arbitrary
code. Under my proposal, I think you could satisfy your use case (which is
also a use case that I have) using logic like this in the external node
classifier:
<pre>
if (client asked to be in the testing or development environment,
and client would normally be in the production environment)
{
allow client to be in the environment that it asked for
}
else
{
ignore what client asked for
}
</pre>
----------------------------------------
Bug #2834: external node classifier should take client's idea of the
environment into account
http://projects.reductivelabs.com/issues/2834
Author: Alan Barrett
Status: Accepted
Priority: Normal
Assigned to: Jesse Wolfe
Category: plumbing
Target version: Rowlf
Affected version: 0.25.1
Keywords:
Branch:
This is a feature request. I would like the external node classifier to be the
final authority over what environment is used for each client, but I would like
the node classifier to have access to more than just the client hostname when
making its decision. I would especially like the node classifier to have
access to the environment value that the client requests, but it may also be
useful to have access to more facts.
For example, I would like to be able to write an external node classifier that
incorporates rules like this:
* any node may request to be in the "bootstrap" environment at any time
* certain nodes may switch back and forth between the "test" or "dev"
environments whenever they like, but may never be in the "prod" environment
* certain nodes are always in the "prod" environment (unless they request to be
in the "bootstrap" environment)
Issue #2748 is related.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.