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

-- 
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/64586175-05c8-4f54-8e9a-df25d4bc5f26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to