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/CAF_B3ddcDaczLHiW3dE6SCw20eR2uFUXVdqASXNwE0TCyXcWcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to