Supriya Uppalapati
2014-May-21 15:05 UTC
[Puppet Users] could not retrieve information from environment development source(s) file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh
Hi, I am having an error could not retrieve information development source *file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* Please help me I have a code in */etc/puppetlabs/puppet/modules/java_versions/manifests/init.pp* *class java_versions {# $::var_java_ver = '1.7.0_42' file {'/usr/local/sbin/java_path.sh': source => '/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh', owner => root, group => root, mode => '0700',}* *if versioncmp($::var_java_ver, $java_version) < 0 { notify {"using concatenated files, java version ${java_version}":; }} else { # work with java notify {"using java, java version ${java_version}":; }}# file {'/usr/local/sbin/java.sh': # source => '/etc/puppetlabs/puppet/modules/java_versions/scripts/java.sh', #owner => root, #group => root, #mode => '700',#} if $java_version == 'notexit' {* *warning('java versions are not available ($java_version)')}}* And script in / *etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* *$cat java_path.shrunuser -l oracle -c '/u01/app/oracle/product/jdk1.7.0_25/bin/java -version'* *Ruby code :/etc/puppetlabs/puppet/modules/java_versions/lib/facter/java_path.rb* *$vi java_path.rbrequire 'facter'* *Facter.add(:java_path) do setcode do Facter::Util::Resolution.exec('/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh') endend* -- 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/dfa17004-6c33-4fe0-b7a1-88ffaab40362%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.