class hostapd::service ( Enum['running', 'stopped'] $status = 'running', Boolean $enabled = true, ) inherits hostapd { service{'hostapd': ensure => $status, enable => $enabled, subscribe => Package['hostapd'], } }