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

On Saturday, 1 February 2014 07:10:01 UTC+5:30, Supriya Uppalapati wrote:
>
> 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
>
>  
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d251779f-d919-490d-bf18-e4a9c643a6ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to