From 75bbacddbc3365586956a6177806cbfee2618810 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 22 Dec 2012 12:59:32 -0200 Subject: Adding git-manager wrapper class --- manifests/git-daemon.pp | 2 +- manifests/git-manager.pp | 10 ++++++++++ manifests/gitweb.pp | 2 +- manifests/init.pp | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 manifests/git-manager.pp (limited to 'manifests') 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" -- cgit v1.2.3