Hi,

I am getting the issue when i modifyied the code like this

class java_rpm::install { 
$version = hiera("javaversion")

package { $version: 
provider => rpm, 
source => "puppet:///development/java_rpm/files/$version", 
ensure => installed, 
} 
} 
MY file is here: 
pwd 
/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files

*In my /var/lib/hiera*
classes: 
- 'cis' 
- 'java_versions' 
- 'java_rpm'

javaversion: jdk-7u25-linux-x64.rpm

 

*Error: Execution of '/bin/rpm -i 
puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm' returned 1: 
error: open of puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm 
failed: No such file or directory*

*Error: 
/Stage[main]/Java_rpm::Install/Package[jdk-7u25-linux-x64.rpm]/ensure: 
change from absent to present failed: Execution of '/bin/rpm -i 
puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm' returned 1: 
error: open of puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm 
failed: No such file or directory*

Let me know
 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c25a25f1-2aaa-4596-a8d9-b66a8331fcbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to