Hi,

I'm trying to install openam with puppet. To do this i'm using an exec 
resource:

exec { 'openam_install':
  command  => "source /etc/profile && /opt/openam/bin/openam_install.sh install 
${::env} > /opt/openam/install.log",
  provider => shell,
  creates  => '/var/lib/tomcat/webapps/sso',
}


The script openam_install.sh exit with an error code:

Debug: /Stage[main]/Openam::Config/Exec[openam_install]/returns:    ERROR: 
command execution failed at line 247 !

Error: source /etc/profile && /opt/openam/bin/openam_install.sh install cm 
returned 1 instead of one of [0]

Error: /Stage[main]/Openam::Config/Exec[openam_install]/returns: change 
from notrun to 0 failed: source /etc/profile && 
/opt/openam/bin/openam_install.sh install cm returned 1 instead of one of 
[0]


Line 247 i have this:


java -jar 
/opt/openam/configurator/openam-configurator-tool-${openAMversion}.jar -f 
/opt/openam/configurator/openam.conf

echo "Restarting OpenAM"
service tomcat restart


The java -jar command fail but i can't figure out why because if i try to 
launch this command directly in a shell it works.


Any help would be appreciated.


Thanks.


Chris

-- 
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/c0c81a61-b7cc-46e8-b9cf-63020f7598fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to