title: Puppet Ubuntu check Version 16 or 17
body: <p>i need to check if its Ubuntu Version 16 (for older pcs) or 17 (for newer pcs with different WLAN module), but this IF check doesnt work so far. Can you support please?</p>
  
  <pre><code>  if /opt/puppetlabs/bin/facter os.distro.id == 'Ubuntu' {
      if /opt/puppetlabs/bin/facter os.distro..release.major == '16.04.' {
          $ubunutname = 'xenial'
          $wlankarte  = 'wlp4s0'
      }
      if /opt/puppetlabs/bin/facter os.distro..release.major == '17.04' {
        $ubunutname = 'zesty'
        $wlankarte  = 'wlp58s0'
      }
      else{
        fail("Unsupported major of ${facts}['operatingsystem']")
      }
    }
  </code></pre>