Hi, I have the following code:
if( $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7' ) { file { "...": ensure => 'file', path => "...", content => "...", } } My agent is puppet 3.8.4, my master is 3.7.3 with no special configuration. Here is the fact: $ facter | grep ^os os => {"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7", "minor"=>"2", "full"=>"7.2.1511"}, "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", "distdescription"=>"CentOS Linux release 7.2.1511 (Core) ", "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.2.1511", "majdistrelease"=>"7", "minordistrelease"=>"2"}} osfamily => RedHat When building the catalog, I get the dreaded "facts is not a hash or array". When searching for this, I get tangled in a maze of "if your agent is older than foo, and your server has stringify_bla set, then you might succeed with baz." How do I write my manifest to get things (a) pretty (b) non-deprecated? Any hints will be appreciated. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20160601144332.GA24651%40torres.zugschlus.de. For more options, visit https://groups.google.com/d/optout.