Hi,

So, after setting pluginsync = true I manage to get this working, but
only executing correctly as puppetd --test

Except that it only functions correctly when run as puppetd --test,
when I run it as the puppet service the custom provider does not do
anything.

This seems odd.

The only notice I have in /var/log/messages is

"Provider npm has not defined the 'instances' class method"

Is that required?

On Jan 6, 4:10 pm, pl <[email protected]> wrote:
> On Jan 6, 4:01 pm, pl <[email protected]> wrote:
>
> >   def install
> >     output = `sudo -u node sh -c \"export PATH=/home/node/opt/bin:$
> > {PATH}; npm install http-console\"`
> >     if output =~ /npm not ok/
> >       raise Puppet::ExecutionFailure, "Failed to install
> > #{resource[:name]}"
> >     end
> >   end
>
> Note that this was a hard-coded package (http-console) I added just to
> see if it would install. It didn't.

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

Reply via email to