Hi,

Facter runs and transffer the  facts to the server before any config
is actully done on the client ( puppet needs the facts to decide which
configs to send to the client).
Your only way around this is to install the package before the first
puppet run or wait for the second run (and handle the nil value in the
template...)

Ohad

On 2/23/09, Keith Edmunds <[email protected]> wrote:
>
> I have the following as part of a module:
>
> --------------------------------------------------------------------------------
>     # Ensure "lsb-release" installed
>     package {"lsb-release":
>         ensure  => installed,
>     }
>
>     # Use our sources.list
>     file { "/etc/apt/sources.list":
>         owner   => root,
>         group   => root,
>         mode    => 644,
>         content => template("tclbase/sources.erb"),
>         require => [ Package["lsb-release"], Exec["Import $aptkey_volatile
> to apt keystore"] ] }
> --------------------------------------------------------------------------------
>
> This works on some systems, but fails on at least one other with:
>
> err: Could not retrieve catalog: Failed to parse template
> tclbase/sources.erb: Could not find value for 'lsbdistcodename'
> at /etc/puppet/modules/tclbase/manifests/init.pp:77 on node
> [deleted]
>
> The value 'lsbdistcodename' comes from facter, but on Debian systems it
> requires lsb-release to be installed. On the system in question,
> lsb-release is not installed, hence the failure above. However, given the
> "require" statement above, why isn't lsb-release installed?
>
> Thanks.
>
> >
>

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