FAQ

On 2014-04-02 11:02, DjE wrote:
The issue (-d does not provide more informations) :
facter -p
undefined method `puppetversion' for Facter:Module
Something like this can also happen when you have a custom fact (or
function?) that calls the Facter API in a now defunct way. For example,
we had this in a custom fact:

if Facter.puppetversion.to_i >= 3
...

Which had to be replaced with this (works in Facter < 2.0.1, too):

if Facter.value(:puppetversion).to_i >= 3
...

This was kindly pointed out to me and fixed by Dominic Cleal in #puppet.

Andreas

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 8 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedApr 1, '14 at 11:32p
activeApr 14, '14 at 11:07p
posts8
users5
websitepuppetlabs.com

People

Translate

site design / logo © 2022 Grokbase