Hi all,
I am quite new to Puppet and are currently struggeling with the namespace.
Thus, I have a manifest to deploy my service organized in
manifests --> myservice.pp
node "myservice.thing.foo"{
class {'myservice::deploy':}
}
The module is located in
modules --> myservice --> manifests --> deploy.pp
class myservice::deploy()
{
...dostuffhere...
}
So, now I would like to move some variables to a separate module, e.g.,
modules --> myservice --> manifests --> subdir --> variablefoo.pp
class variablefoo
{
$myvar1 = "HALLOWORLD"
class variablebar
{
$myarr1 = [1,2,3]
}
}
How can I access the elements in variablefoo.pp in my modules::deploy.pp, i.e., what is the complete namespace path??
I tried several pathes that seemed to be somewhat reasonable to me as
$testvar = $subdir::variablefoo::myvar
$testvar = myservice::subdir::variablefoo::myvar
but apparently I have not really got into puppet yet :(
Maybe, somebody can help me out?
Cheers and thanks,
Thomas