Hi all,

This may be a simple one but I am not able to do it.

Folder structure is like:

mname -> name of the module
------init.pp -> includes class mname
------config.pp -> includes are user defined resource which is defined
as "define mname::config ( $a,$b ) { ... code here ... }
------misc.pp -> Contains misc class. This class is included in
config.pp. I did this because there are few resources which are to be
defined only once for a node if there are multiple user-defined
resources mname::config.pp defined. Now, in this class misc, I want to
access variable $a and $b. *How do I do that?* Using mname::config::a is
not working.. Error says "class config could not be found". This makes
sense because it's not a class, config is a user-defined resource type.
------t1.erb -> I want to access value of $a and $b here. Using
mname::config::$a is not working. I am using <%=
scope.lookupvar("mname::config::$a" %> to get the value.

I am completely lost. Right now, I am using 2.7 and just accessing $a
and $b directly (which is showing warnings) so it's working but this
will start failing once I move to 2.8.

Abhijeet R

You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 6 | next ›
Discussion Overview
grouppuppet-users @
postedOct 26, '12 at 8:47a
activeOct 26, '12 at 7:29p



site design / logo © 2022 Grokbase