This is why you should always use explicit scoping :)

Probably someone introduced some osfamily=RedHat in the current scope.

Regards,
El 31/01/2014 18:46, "Doug_F" <[email protected]> escribió:

>
> Yikes...
>
> (Scope(Class[Mail])) ::osfamily = Debian
> (Scope(Class[Mail])) Module mail, OsFamily RedHat, Operatingsystem Debian
>
>
> On Friday, January 31, 2014 10:35:39 AM UTC-7, Jose Luis Ledesma wrote:
>>
>> Sorry, i mean $::osfamily
>>
>> Regards
>> El 31/01/2014 18:29, [email protected] escribió:
>>
>> Please, could you try using $::operatingsystem?
>>
>> It could be some variable scoping problem...
>>
>> Regards,
>> El 31/01/2014 18:27, "Doug_F" <[email protected]> escribió:
>>
>> I have tried additionally disconnecting puppetdb via removing
>> storeconfigs and puppetdb.yaml on the puppet master.
>>
>>
>>> I'm looking for more direct evidence of what fact values the master
>>> receives.  Humor me, please.
>>>
>> If I run Factor on deb-vm it matches 
>> /var/lib/puppet/yaml/node/deb-vm.part.net.yaml
>> from the puppetmaster with correct / expected values.
>>
>> One think I noticed odd is that the puppetlabs-Firewall applies the
>> appropriate class firewall::linux::debian
>> But in the same run the following puppet code is responsible for the
>> error below.
>> case $osfamily {
>>       Debian: {$my_version = $osfamily}
>>       RedHat: {$my_version = "${osfamily}.${::
>> operatingsystemmajrelease}"}
>>       default: {fail("Module $module_name is not supported on $osfamily /
>> $operatingsystem")}
>>     }
>> file { '/etc/mail/sendmail.cf':
>>       owner   => root,
>>       group   => root,
>>       mode    => 644,
>>       source  => "puppet:///modules/$module_
>> name/sendmail.cf.${my_version}",
>>     }
>> Error: /Stage[main]/Mail/File[/etc/mail/submit.cf]: Could not evaluate:
>> Could not retrieve information from environment production source(s)
>> puppet:///modules/mail/submit.cf.RedHat.7
>>
>> I added this code in the mail module and got this log message:
>>     notice ("Module ${module_name}, OsFamily ${osfamily}, Operatingsystem
>> ${operatingsystem}")
>> (Scope(Class[Mail])) Module mail, OsFamily RedHat, Operatingsystem Debian
>>
>> It may also be worthwhile -- but separate -- to see what facts Facter
>>> computes when you run it from the command line.
>>>
>>> Additionally, check the master's log for suspicious entries related to
>>> the problem node.
>>>
>>
>> This is really kind of weird. Any thoughts.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/puppet-users/c7762a03-d3b6-4cb4-aeab-711a6873af91%
>> 40googlegroups.com.
>>
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/e5f77cbe-adfd-4fac-8d28-2dc65e0938a5%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3dd4USvaHB3%2BeKZ3gv%3DMH0_X4EryeWnV_q%2BQ6REYEROcCw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to