Hi,
I have written two defined type and trying to use some variables between them.
----foo/manifest/init.pp ------------
define foo( $x=undef, $y=undef)
{
if $x == undef {
$xx = $defualt_x
if $y == undef {
$yy $defualt_y
fooinstall {$xx:}
}
--------------foo/manifest/install.pp-------------------
define foo::install (){
if $yy= "some text"
{
puppet code here
}
else {
puppet code here
}
}
------ sites.pp ----
{
foo { "Aname" :
$x => a,
$y => b,
}
}
Could you suggest how can I make this code work. I am not able to access $xx and $yy in defined type foo::install.
Thanks,
Rajgourav Jain