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