aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cgit/manifests
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-06-09 10:11:26 +0000
committerColin Guthrie <colin@mageia.org>2013-06-09 10:11:26 +0000
commitec28f495ba5d8a827fb931e338a0a69bc3dd5aae (patch)
treebfd646166185103e30d746d46c2657f0af35a0e8 /modules/cgit/manifests
parent173bb9330aacd7779df4248b2d9f48a138f6be18 (diff)
downloadpuppet-ec28f495ba5d8a827fb931e338a0a69bc3dd5aae.tar
puppet-ec28f495ba5d8a827fb931e338a0a69bc3dd5aae.tar.gz
puppet-ec28f495ba5d8a827fb931e338a0a69bc3dd5aae.tar.bz2
puppet-ec28f495ba5d8a827fb931e338a0a69bc3dd5aae.tar.xz
puppet-ec28f495ba5d8a827fb931e338a0a69bc3dd5aae.zip
Add initial cgit module
Diffstat (limited to 'modules/cgit/manifests')
-rw-r--r--modules/cgit/manifests/init.pp21
1 files changed, 21 insertions, 0 deletions
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')
+ }
+}