Class git::gitosis
In: /modules/git/manifests/gitosis.pp
Parent:

Class: git::gitosis Configure the git user‘s home for repository management using gitosis.

Usage :

  class git::gitosis {
    admin_username   => 'jdoe',
    admin_sshkey     => 'AAAAHsKhmP44J0....j2H6pC8dU=',
    admin_sshkeytype => 'rsa',
  }

Resources

Resources

Exec[echo ssh-$admin_sshkeytype $admin_sshkey $admin_username | gitosis-init]
   user => $gituser
   group => $gitgroup
   path => ["/bin", "/usr/bin"]
   environment => [HOME=$githome]
   creates => $githome/.gitosis.conf
   require => [Package["gitosis"], $requireuser]
Package["gitosis"]
   ensure => installed

[Validate]