aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-12-22 12:59:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-12-22 12:59:32 -0200
commit75bbacddbc3365586956a6177806cbfee2618810 (patch)
treed0885d5b9cdb2234a754fe62f3583e09a0a60b58 /manifests
parent54eacd438e5fc4fb5618db553cee2594b2145c0e (diff)
downloadpuppet-git-75bbacddbc3365586956a6177806cbfee2618810.tar.gz
puppet-git-75bbacddbc3365586956a6177806cbfee2618810.tar.bz2
Adding git-manager wrapper class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/git-daemon.pp2
-rw-r--r--manifests/git-manager.pp10
-rw-r--r--manifests/gitweb.pp2
-rw-r--r--manifests/init.pp1
4 files changed, 13 insertions, 2 deletions
diff --git a/manifests/git-daemon.pp b/manifests/git-daemon.pp
index fdb0007..5ed845a 100644
--- a/manifests/git-daemon.pp
+++ b/manifests/git-daemon.pp
@@ -4,7 +4,7 @@
#
# http://reductivelabs.com/trac/puppet/wiki/Recipes/SimpleText
-class git-daemon inherits gitosis {
+class git-daemon inherits git-manager {
# the needed packages and services
include inetd
diff --git a/manifests/git-manager.pp b/manifests/git-manager.pp
new file mode 100644
index 0000000..9e29518
--- /dev/null
+++ b/manifests/git-manager.pp
@@ -0,0 +1,10 @@
+class git-manager {
+ case $use_gitolite {
+ true: {
+ include gitolite
+ },
+ default: {
+ include gitosis
+ }
+ }
+}
diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp
index dbf08e1..045787d 100644
--- a/manifests/gitweb.pp
+++ b/manifests/gitweb.pp
@@ -1,6 +1,6 @@
# This class handles a gitweb installation.
-class gitweb inherits gitosis {
+class gitweb inherits git-manager {
# the needed packages
package { gitweb: ensure => installed }
diff --git a/manifests/init.pp b/manifests/init.pp
index 9e1a5f6..09e9010 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -4,4 +4,5 @@ import "git.pp"
import "gitosis.pp"
import "gitweb.pp"
import "git-daemon.pp"
+import "git-manager.pp"
import "gitolite.pp"