From ec28f495ba5d8a827fb931e338a0a69bc3dd5aae Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 9 Jun 2013 10:11:26 +0000 Subject: Add initial cgit module --- modules/cgit/manifests/init.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/cgit/manifests/init.pp (limited to 'modules/cgit/manifests') diff --git a/modules/cgit/manifests/init.pp b/modules/cgit/manifests/init.pp new file mode 100644 index 00000000..cda47a4b --- /dev/null +++ b/modules/cgit/manifests/init.pp @@ -0,0 +1,21 @@ +class cgit { + package { 'cgit': } + + file { '/etc/cgitrc': + content => template('cgit/cgitrc'), + notify => Service['apache'], + require => Package['cgit'], + } + + apache::webapp_other { 'cgit': + webapp_file => 'cgit/webapp.conf', + } + + mga-common::local_script { 'cgit.filter.commit-links.sh': + content => template('cgit/filter.commit-links.sh'), + } + + apache::vhost::base { "cgit.$::domain": + content => template('cgit/vhost.conf') + } +} -- cgit v1.2.1