Hi, i want to check (puppet facts / facter: is there a difference?) which
version is installed on the machine (we use Ubuntu 16 for older and Ubuntu
17 for newer laptops, they have different WLAN Modules) . Can you please
support me with the correct "Mayor-Distro-Check" ?
It doesnt work like that:
if $facts['os id'] == 'Ubuntu' {
if $facts['os major'] == '16.04.' {
$ubunutname = 'xenial'
$wlankarte = 'wlp4s0'
}
if $facts['os major'] == '17.04' {
$ubunutname = 'zesty'
$wlankarte = 'wlp58s0'
}
else{
fail("Unsupported major of ${facts}['operatingsystem']")
}
}
--
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/90380485-ea11-40fb-9836-7b5182ab35a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.