        = true) {

  if $facts[&#39;os&#39;][&#39;family&#39;] == &#39;RedHat&#39; {
    $krb5_user_package  = &#39;krb5-workstation&#39;
    $winbind_package    = &#39;samba-winbind&#39;
  } else {
    $winbind_package    = &#39;winbind&#39;
    $krb5_user_package  = &#39;krb5-user&#39;
  }

  package { [$krb5_user_package, $winbind_package, &#39;expect&#39;]:
    ensure =&gt; installed,
    before =&gt; Service[&#39;winbind&#39;],
  }

  service { &#39;winbind&#39;:
    ensure  =&gt; running,
    enable  