Re: [Puppet Users] Issues creating a customer type/provider

2016-07-28 Thread Martin Alfke
Hi Simon, > On 28 Jul 2016, at 12:53, Simon Weald wrote: > > Hi guys > > I'm extending our in-house package management system to include management of > apt's GPG keys (we're a Debian shop). Ruby isn't my forte, but I've cooked up > what I think is a decent working type and provider which I

Re: [Puppet Users] Question Exec resource

2016-07-28 Thread Martin Alfke
Hi Christian, > On 28 Jul 2016, at 18:47, Christian Charpentier wrote: > > Thnaks for your answer Martin. > > Here is the beginning of the stack: > > [0;36mDebug: Executing '/bin/sh -c source /etc/profile && > /opt/openam/bin/openam_install.sh install cm > /opt/openam/install.log' [0m > [0

Re: [Puppet Users] Question Exec resource

2016-07-28 Thread Christian Charpentier
Thnaks for your answer Martin. Here is the beginning of the stack: [0;36mDebug: Executing '/bin/sh -c source /etc/profile && /opt/openam/bin/openam_install.sh install cm > /opt/openam/install.log' [0m [0;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns: Certificate was adde

[Puppet Users] Issues creating a customer type/provider

2016-07-28 Thread Simon Weald
Hi guys I'm extending our in-house package management system to include management of apt's GPG keys (we're a Debian shop). Ruby isn't my forte, but I've cooked up what I think is a decent working type and provider which I can extend further if the need arises. Currently during a run I'm gettin

Re: [Puppet Users] Question Exec resource

2016-07-28 Thread Martin Alfke
An exec resource will always start with an empty environment. I assume that it can not find the java binary. You can try specifying the path => ‘…' attribute. And: log_output => true Besides this: please take care on being idempotent (only run in case that it is required) and on error handling (h