summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-18 18:56:28 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-18 18:56:28 -0400
commitea4b286d1202ffcc81564cb843e21bf62dd2bd80 (patch)
tree513ce82a3bf148fc88d9a08b61ab510710f9f5aa /modules/tozt/manifests
parent1cdecce2a863cc95e7e977130209f0ee27c2ba2c (diff)
downloadpuppet-tozt-ea4b286d1202ffcc81564cb843e21bf62dd2bd80.tar.gz
puppet-tozt-ea4b286d1202ffcc81564cb843e21bf62dd2bd80.zip
run cgit on git.tozt.net
Diffstat (limited to 'modules/tozt/manifests')
-rw-r--r--modules/tozt/manifests/git.pp37
1 files changed, 37 insertions, 0 deletions
diff --git a/modules/tozt/manifests/git.pp b/modules/tozt/manifests/git.pp
new file mode 100644
index 0000000..5beee5b
--- /dev/null
+++ b/modules/tozt/manifests/git.pp
@@ -0,0 +1,37 @@
+class tozt::git {
+ include git::server
+ include tozt::certbot
+ include tozt::persistent
+
+ file {
+ "/media/persistent/git/doy":
+ ensure => directory,
+ owner => 'doy',
+ group => 'doy',
+ require => [
+ Class['tozt::persistent'],
+ User['doy'],
+ Group['doy'],
+ ];
+ "/home/doy/git":
+ ensure => link,
+ target => "/media/persistent/git/doy",
+ owner => 'doy',
+ group => 'doy',
+ require => [
+ User['doy'],
+ Group['doy'],
+ File["/home/doy"],
+ ];
+ "/etc/cgitrc":
+ source => "puppet:///modules/tozt/cgitrc";
+ }
+
+ nginx::site {
+ "git-tls":
+ source => 'puppet:///modules/tozt/nginx/git-tls.conf',
+ require => Class['certbot'];
+ "git":
+ source => 'puppet:///modules/tozt/nginx/git.conf';
+ }
+}