unable to use varaible in creates attribute

122 views
Skip to first unread message

Supriya Uppalapati

unread,
Jul 14, 2014, 11:54:38 AM7/14/14
to puppet...@googlegroups.com
Hi,
 
I am trying to install software using .zip file. I am defining values using varaibles. But it is throwing me an error.
 
Error: Parameter cwd failed on Exec[extract CZM8XML.zip]: cwd must be a fully qualified path at /etc/puppetlabs/puppet/environments/development/modules/staging/manifests/extract.pp:106
Wrapped exception:
cwd must be a fully qualified path
 
My code is here
 
 
class websphere::installationmanager {
  $ibm_install = '/opt/test/installationmanager'
file { $ibm_install:
  ensure => directory,
}
staging::deploy { 'CZM8XML.zip':
  source => '/stage/Security/SoftwareDepot/SAM_Software/WAS/CZM8XML.zip',
  target =>'$ibm_install',
  creates =>'$ibm_install/install',
}
 exec { 'exec the installation manager':
  command => '$ibm_install/install --launcher.ini $ibm_install/silent-install.ini  -log /opt/test/IM_install.log',
  path     => '$ibm_install',
  creates => '/opt/test/IM_install.log',
}
}

 
Please help me

Supriya Uppalapati

unread,
Jul 14, 2014, 1:05:29 PM7/14/14
to puppet...@googlegroups.com
Hi,
 
Here is the working code for installing websphere installation manager through puppet.
 

class websphere::installationmanager {
  $ibm_install = "/opt/test/installationmanager"
file {"$ibm_install":
  ensure => directory,
}
staging::deploy { 'CZM8XML.zip':
  source => '/stage/Security/SoftwareDepot/SAM_Software/WAS/CZM8XML.zip',
  target => "$ibm_install",
  creates => "$ibm_install/install",
}
 exec { 'exec the installation manager':
  command => "$ibm_install/install --launcher.ini $ibm_install/silent-install.in
i  -log /opt/test/IM_install.log",
  path     => $ibm_install,
  creates => '/opt/test/IM_install.log',

Felix Frank

unread,
Jul 15, 2014, 5:06:29 PM7/15/14
to puppet...@googlegroups.com
On 07/14/2014 05:54 PM, Supriya Uppalapati wrote:
Hi,
 
I am trying to install software using .zip file. I am defining values using varaibles. But it is throwing me an error.
 
Error: Parameter cwd failed on Exec[extract CZM8XML.zip]: cwd must be a fully qualified path at /etc/puppetlabs/puppet/environments/development/modules/staging/manifests/extract.pp:106
Wrapped exception:
cwd must be a fully qualified path
 
My code is here

We'll need to see the definition of staging::deploy to comment on this.

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