class mymodule::scripts::os_check {
case $operatingsystem {
/(?i-mx:centos)/: { notify("You are using CentOS")}
/(?i-mx:.*)/: { notify("You are using non-CentOS OS") }
}
}
Why does this run without error, but not display either notify (on a server where the operatingsystem fact == CentOS)?
I am running this as a standalone script using puppet apply os-check.pp and just see the catalog run notify.