Hi Christian,

> On 28 Jul 2016, at 18:47, Christian Charpentier <[email protected]> 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;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns: 
> Certificate was added to keystore [0m
>  [0;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns: 
> Certificate stored in file </tmp/openam-openam1.der> [0m
>  [0;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns: 
> Certificate was added to keystore [0m
>  [0;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns: 
> java.net.ConnectException: Connection refused [0m
>  [0;36mDebug: /Stage[main]/Openam::Config/Exec[openam_install]/returns:       
>   at java.net.PlainSocketImpl.socketConnect(Native Method) [0m

This looks like a connection error from within the java process.
This is unrelated to Puppet.
Does the command work when running it from a root shell?
If this is the case: check for further environments setting which might be 
needed by the installer and use the environment parameter of the exec resource 
type.

Best,
Martin

> 
> 
> Could it be an SSL connection issue instead of a path issue with the java 
> -jar command?
> 
> About the idenpotency, by using the creates attribute normally ensure the 
> exec command will be executed only if the file/directory doesn't exist. So i 
> should not have any problem with that.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/cf796f0d-7ddb-4ff5-bbfb-5ce67aeae565%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/C8F54464-11A7-4C69-98B5-C1740EE58B66%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to