I tried to use a Puppet variable named "$memory" and access it from
a template, like this:

     $memory = 4711
     file {
         "/tmp/test.txt":
             content => inline_template("memory = <%= memory %>\n");
     }

One would think that my file would contain "memory = 4711" after that,
but instead the memory variable seems to hold a somewhat random number
each time I run Puppet.  On the two machines I have tried it (using the
stand-alone puppet executable), I get values that are on the order of
100000.  Other variable names work as expected, though.

Why can't I access $memory like other variables?  From where does the
value I do get come from?


(My real use case was a define with a parameter named "memory", from
where I called template(), but the above is a slightly shorter test
case.)


        /Bellman

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

Reply via email to