On Fri, Apr 29, 2011 at 08:16, Peter Meier <[email protected]> wrote:

G'day.

> I tried to port the clean application (#1886) with help of Nick to
> faces. So far it looks good (POC pushed to my github account), except
> that faces seem to run in user mode (by default). This is for example
> likely a problem when we try to figure out, whether the master is
> configured as CA or not.
>
> So currently my POC can't delete any certs as it thinks it is not a CA.
>
> We weren't able to figure out how we can set it on a face action side.
> Also we were asking us how the certificate face is then actually be able
> to sign certificates, as imho it should know whether it is a CA or not,
> before trying to sign any certs.
>
> Any hints?

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.

Regards,
    Daniel
-- 
⎋ Puppet Labs Developer – http://puppetlabs.com
✉ Daniel Pittman <[email protected]>
✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775
♲ Made with 100 percent post-consumer electrons

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