Issue with puppetlabs-java

157 views
Skip to first unread message

Peter Berghold

unread,
Jan 20, 2017, 10:37:58 AM1/20/17
to puppet-users
Supposedly on the forge site it says the module was tested under Ubuntu.  I'm running Ubuntu Xenial and when I apply the java::oracle class to the machine I get --

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, unsupported platform Ubuntu at /etc/puppetlabs/code/environments/production/modules/java/manifests/oracle.pp:127:11


Suggestions?

bodik

unread,
Jan 20, 2017, 10:47:27 AM1/20/17
to puppet...@googlegroups.com

> unsupported platform Ubuntu at
> /etc/puppetlabs/code/environments/production/modules/java/manifests/oracle.pp:127:11

from the code
https://github.com/puppetlabs/puppetlabs-java/blob/master/manifests/oracle.pp#L147

i can see that probably puppetlabs-java module is made just to support
officially supported operating systems.

you'd better to install java by hand or modify the module (should not be very
hard) you might get inspired by:

https://github.com/puppetlabs/puppetlabs-java/commit/d30954ebc445b76237cc3c078b83457cc26b19e5


nice weekend
bodik

Gustavo S. L.

unread,
Jan 20, 2017, 10:53:13 AM1/20/17
to puppet...@googlegroups.com
cat manifests/* | grep -i xenial -A 5 -B 5 --color

The problem may not be in the module


--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/588230F9.60608%40cesnet.cz.
For more options, visit https://groups.google.com/d/optout.

bodik

unread,
Jan 20, 2017, 10:58:43 AM1/20/17
to puppet...@googlegroups.com
class {"java": } but i doubt that {"java::oracle": }....

Lowe Schmidt

unread,
Jan 20, 2017, 12:00:45 PM1/20/17
to puppet...@googlegroups.com
The README.md says the following.

"Oracle Java is supported on:
  • CentOS 6"

--
Lowe Schmidt | +46 723 867 157

--
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 puppet-users+unsubscribe@googlegroups.com.

Michael Watters

unread,
Jan 22, 2017, 7:42:55 PM1/22/17
to Puppet Users
It looks like you need to add a package_type for deb and a case
statement for Ubuntu.  Would be a good time to patch the module and
submit a pull request.  :)
Reply all
Reply to author
Forward
0 new messages