I am running puppet from the command line with no puppet master. My 
recipe brings up the required services, including network, during 
execution. I have noticed that at initial boot, if I attempt to refernce 
the ipaddress or fqdn fact in a template that it will error out. I 
believe this is because when the recipe is parsed, the tempalte is 
evaluated. Facter, at that point, has no ipaddress.

Is there a way to delay the evaluation of a template until it is needed? 
For example, then I could do something like this:

        file {"/some/file":
                        content => template("template_with_ipaddress_fact),
                        require => Service["network"]                   
        }               

thereby using the dependencies to control when the content is applied.

-- bk

--~--~---------~--~----~------------~-------~--~----~
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