   =&gt; bare,
    provider =&gt; git,
    user     =&gt; $admin_user,
    source   =&gt; $upstream,
    require  =&gt; File[$repo_path],
  }

  file { &quot;${control_repo_path}/${hook_filename}&quot;:
    ensure =&gt; file,
    mode   =&gt; &#39;0755&#39;,
    source =&gt; &quot;puppet:///modules/${module_name}/post-receive&quot;,
  }

  # admin key :)
  user { $admin_user:
    ensure =&gt; $admin_key,
    home   =&gt; $repo_path,
  }

  $ssh_keyname = &quot;psquared@${fqdn}&quot;
  include sshkeys

  ssh