$apache_name = $lsbdistid ? { "Debian" => "apache2", "CentOS" => "httpd", } package { "apache2": name => $apache_name, ensure => latest }