Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type jdk7::javaexec

511 views
Skip to first unread message

Supriya Uppalapati

unread,
Jan 31, 2014, 8:40:01 PM1/31/14
to puppet...@googlegroups.com
Hi,
 
I am new to writing code for puppet. I installed biemond/jdk7 module. In that it has install7.pp and javaexec.pp Now I am trying to modify the parameters using wrapper class. In that I wrote
class javajdk {
 include jdk7,java7_exec

 jdk7::install7{ "jdk1.7.0_25" :
  version              => "7u25",
  fullVersion          => "jdk1.7.0_25",
  x64                  => true,
  user                => oracle,
  group               => oinstall,
  alternativesPriority => 17065,
  downloadDir          => "/data/install",
  urandomJavaFix       => true,
  sourcePath           => "/stage/",
}
 
.......
......
class java7_exec{
 $path  =  "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:"
 $fullVersion          = "jdk1.7.0_25"
  $jdkfile              = "jdk-${version}-${installVersion}-${type}${installExtension}"
  $user                 = 'oracle'
  $group                = 'oinstall'
 jdk7::javaexec{ 'java7_exec' :
  path                 => $path,
  fullVersion          => "jdk1.7.0_25",
  jdkfile              => $jdkfile,
  user                 => $user,
  group                => $group
}
I am getting the issue:Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type jdk7::javaexec
 
Please help me.
 
Thank you

 

Srinidhi krishnamurthy

unread,
May 28, 2014, 8:00:51 AM5/28/14
to puppet...@googlegroups.com
Hi Supriya ,

i encountered similar issue while installing weblogic , i have resolved this by calling the class file seperatly like below.

create a new file in orawls module and add below lines and call using "puppet apply -v --modulepath=<module path> test.pp"

test.pp 
>>
include orawls

class{'orawls::weblogic':
      version              => 1036,                       # 1036|1211|1212
      filename             => 'wls1036_generic.jar',           # wls1036_generic.jar|wls1211_generic.jar|wls_121200.jar
      jdk_home_dir         => '/Webcenter/SOA/Middleware/java/jrockit-jdk1.6.0_45-R28.2.7-4.1.0',
      oracle_base_home_dir => "/Webcenter/SOA",
      middleware_home_dir  => "/Webcenter/SOA/Middleware",
      os_user              => "oracle",
      os_group             => "dba",
      download_dir         => "/Webcenter",
      source               => "puppet:///modules/orawls/",                 # puppet:///modules/orawls/ | /mnt |
      log_output           => true,
    }


you can call similarly your jdk7 file , hope this will sole your issue.

Thanks,
Srinidhi
Reply all
Reply to author
Forward
0 new messages