Ask Your Question

puppet 6 package jdk & jdk1.8 install

asked 2018-10-16 17:49:55 -0600

billjamzz2 gravatar image

I'm testing puppet 6 to see what module changes I need. One thing I've found is package behaves differently. Trying to install jdk & jdk1.8 on same system. With puppet 5.2.0-1 it works fine because it does "Debug: Executing '/bin/yum -d 0 -e 0 -y install jdk'". Wtil puppet 6.0.2 it doesn't work becuase it does "Debug: Executing: '/bin/rpm -q jdk --nosignature --nodigest --qf '%{NAME} %|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}\n' --whatprovides'" which tries to install jdk1.8 instead of jdk-1.7.

How do I install jdk and jdk1.8 in puppet 6? I tried "package {'jdk': ensure => '1.7.0_79-fcs'" but it tried to run: "Debug: Executing: '/bin/yum -d 0 -e 0 -y downgrade jdk-1.7.0_79-fcs'" which is not what I asked for.

How do I get puppet 6 to use yum instead of "rpm --whatprovides"?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-22 17:11:37 -0600

billjamzz2 gravatar image

I guess the only way to install jdk 7 and jdk 8 on a server is to use an exec for jdk7. Unfortunate.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-10-16 17:49:55 -0600

Seen: 119 times

Last updated: Oct 22