In my module folder, <module/mymodule> I have 2 files.
init.pp params.pp My init code: class myclass($api_key=$myclass::params::myclassagent_APIkey) inherits myclass::params{ include myclass::params some code here... }include myclass params.pp got: class myclass::params{ myclassagent_APIkey=' ' } What am i missing? On Thursday, 21 November 2013 15:41:49 UTC+5:30, Felix.Frank wrote: > > This looks pretty bad :-) > > Can you paste (excerpts of) your manifest code on pastebin or a similar > service? > > On 11/21/2013 10:11 AM, Raj kumar V wrote: > > I have written a module with a init class. Now I have to pass a dynamic > > value. so I have created a params class and inherited in the init class > > and trying to access the value. But puppet says > > > > Could not find parent resource type <myclass>::params of type hostclass > > > > error. Any idea? > -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f59055d3-7888-400f-9f46-3bd02fe3160a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.