From dee99cd4f9f05158c6d7b5626d47b874b9819ff2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 9 Mar 2016 19:11:56 -0300 Subject: Drop gitosis support --- README | 6 +++--- manifests/daemon.pp | 12 +++--------- manifests/gitolite.pp | 3 --- manifests/gitosis.pp | 26 -------------------------- templates/gitweb.conf.erb | 2 +- 5 files changed, 7 insertions(+), 42 deletions(-) delete mode 100644 manifests/gitosis.pp diff --git a/README b/README index 205b731..fe31745 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ Puppet module for git management This module sets all structure need to run git in a server. It's dependent on puppet-inetd module if you want to use git-daemon. -The only manual step needed is to load your ssh pubkey into gitosis -configuration, by doing something like +The only manual step needed is to load your ssh pubkey into the configuration, +by doing something like - sudo -H -u gitosis gitosis-init + sudo -H -u git gitolite setup -pk yourkey.pub diff --git a/manifests/daemon.pp b/manifests/daemon.pp index 740a2ad..47746a6 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -1,7 +1,7 @@ class git::daemon ( $implementation = hiera('git::daemon::implementation', 'gitolite') ) { - # directory for gitosis user and repositories + # directory for git user and repositories file { "/var/git": ensure => directory, mode => 0755, @@ -67,14 +67,8 @@ class git::daemon ( require => File['/usr/local/sbin/git-mass-update-server-info'], } - case $implementation { - 'gitosis': { - include git::gitosis - } - default: { - include git::gitolite - } - } + # default implementation + include git::gitolite # the needed packages and services include inetd diff --git a/manifests/gitolite.pp b/manifests/gitolite.pp index cb99edc..acba328 100644 --- a/manifests/gitolite.pp +++ b/manifests/gitolite.pp @@ -11,9 +11,6 @@ class git::gitolite inherits git { ensure => installed } - # make sure this is not installed - package { "gitosis": ensure => purged } - # tries to get rid of ugly directory structure file { "/srv/gitolite": ensure => absent, diff --git a/manifests/gitosis.pp b/manifests/gitosis.pp deleted file mode 100644 index 168e2a2..0000000 --- a/manifests/gitosis.pp +++ /dev/null @@ -1,26 +0,0 @@ -# This class handles a gitosis installation, with /var/git as the root for -# git repositories. - -class git::gitosis inherits git { - # the needed packages - package { "gitosis": ensure => installed } - - # make sure this is not installed - package { "gitolite": ensure => purged } - - # tries to get rid of ugly directory structure - file { "/srv/gitosis": - ensure => absent, - force => true, - backup => false, - require => User["git"], - } - - # we also don't need /var/gitosis - file { "/var/gitosis": - ensure => absent, - force => true, - backup => false, - require => User["git"], - } -} diff --git a/templates/gitweb.conf.erb b/templates/gitweb.conf.erb index 00f2053..d01f575 100644 --- a/templates/gitweb.conf.erb +++ b/templates/gitweb.conf.erb @@ -13,7 +13,7 @@ $git_temp = "/tmp"; $home_text = "indextext.html"; # file with project list; by default, simply scan the projectroot dir. -$projects_list = "/var/git/<% if implementation == 'gitosis' %><%= implementation %>/<% end %>projects.list"; +$projects_list = "/var/git/projects.list"; # stylesheet to use $stylesheet = "/gitweb.css"; -- cgit v1.2.3