diff options
Diffstat (limited to 'modules/cgit/manifests')
-rw-r--r-- | modules/cgit/manifests/init.pp | 21 |
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') + } +} |