age[$krb5_user_package, $winbind_package, &#39;expect&#39;],
      Augeas[&#39;samba-realm&#39;, &#39;samba-security&#39;, &#39;samba-winbind enum users&#39;,
        &#39;samba-winbind enum groups&#39;, &#39;samba-winbind uid&#39;, &#39;samba-winbind gid&#39;,
        &#39;samba-winbind use default domain&#39;], Service[&#39;winbind&#39;] ],
  }

  if ($perform_join) {
    exec {&#39;join-active-directory&#39;:
      # join the domain configured in samba.conf
      command =&gt; &#39;/sbin/configure_active