-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniel,

thanks for your answer.

> The only way to specify the run mode is at the very start of the
> application; this is one of the limitations of the older Puppet
> architecture that we didn't completely excise during the initial move
> to faces.  Specifically, you need to pass it on the command line:
> 
> ] puppet --mode {user,agent,master} node clean # or whatever...
> 
> That will set the run mode before it does the rest of the command line
> parsing, invokes your face and action, or anything like that.
> 
> To make the certificate face work as expected you have to do the same
> thing: set the run mode globally, for all faces, before any face is
> invoked.

hmm, this makes faces not so useable for certain cases. So for example
the clean face: Setting the mode on the cli is quite cumbersome, and I'm
not really happy to propose a face, that only works with an additional
cli flag, to be included in the core.

However, the certificate face will be included, which, I fear, will lead
to a lot of confusion and imho regarding Randall's UX talk, the current
behavior should actually be a no go.

So as far as I see we have to options:

* fix setting mode before 2.7. Is this feasible?
* Ship things that require an ugly face/cli-options chain. Could we then
at least say that certain actions require master mode and abort
otherwise? One option is to manually test it on our own in the action,.
The other way would be to have a more declarative way, where we can
require run modes for an action and abort execution in a more generic
and clean way. (With a nice error message and so on...)

It would be nice to have the first option, otherwise various faces will
look quite half baken. However, I don't know all the internals and
further plans to decide and say whether it's actually feasible. So #2
would also be fine, although rather hacky and smelly.

Other options?

~pete
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2+9OcACgkQbwltcAfKi3/GqwCcCIlulcJ9HioXvzqKg13LG12g
gSMAn2GvaksQyQh0162GmDGpaTYpjU2k
=4BZG
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en.

Reply via email to