diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 10:40:42 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-25 10:40:42 -0200 |
commit | 2ead031c3e15ad1aeee4113be3250a74fa4bc766 (patch) | |
tree | 3db141612ee7347d3ffb8562e99b191a34528954 /manifests/gitweb.pp | |
parent | 68f7dc307e1ba12b5bbdabdc7d516de65981ec2e (diff) | |
download | puppet-git-2ead031c3e15ad1aeee4113be3250a74fa4bc766.tar.gz puppet-git-2ead031c3e15ad1aeee4113be3250a74fa4bc766.tar.bz2 |
Refactoring to use parametrized classes and hiera
Diffstat (limited to 'manifests/gitweb.pp')
-rw-r--r-- | manifests/gitweb.pp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/manifests/gitweb.pp b/manifests/gitweb.pp index 045787d..1305390 100644 --- a/manifests/gitweb.pp +++ b/manifests/gitweb.pp @@ -1,19 +1,14 @@ # This class handles a gitweb installation. -class gitweb inherits git-manager { +class gitweb( + $protocol = hiera('git::web::protocol', 'git'), + $hosting_domain = hiera('git::web::hosting_domain', $::domain) + $implementation = hiera('git::daemon::implementation', 'gitolite') +) { + # the needed packages package { gitweb: ensure => installed } - $hosting_domain = $base_domain ? { - '' => $domain, - default => $base_domain, - } - - $base_url_protocol = $gitweb_protocol ? { - '' => 'git', - default => $gitweb_protocol, - } - # gitweb config file file { "/etc/gitweb.conf": owner => "root", |