puppet 6 package jdk install

asked 2018-10-16 17:49:01 -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