aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-09 19:11:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-09 19:11:56 -0300
commitdee99cd4f9f05158c6d7b5626d47b874b9819ff2 (patch)
tree55a984b02715f064e6109392836c561d7b582b1c
parent795f727af45e9fab1f2fd12799b96078f7ca2300 (diff)
downloadpuppet-git-dee99cd4f9f05158c6d7b5626d47b874b9819ff2.tar.gz
puppet-git-dee99cd4f9f05158c6d7b5626d47b874b9819ff2.tar.bz2
Drop gitosis support
-rw-r--r--README6
-rw-r--r--manifests/daemon.pp12
-rw-r--r--manifests/gitolite.pp3
-rw-r--r--manifests/gitosis.pp26
-rw-r--r--templates/gitweb.conf.erb2
5 files changed, 7 insertions, 42 deletions
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";