summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests/site.pp
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-11-05 21:56:01 -0500
committerJesse Luehrs <doy@tozt.net>2017-11-05 21:56:01 -0500
commitbd9f23facf43df40a481aa07732600d7512a86dc (patch)
treead473b769ae0597669af07a67118fff77810facf /modules/tozt/manifests/site.pp
parent18dab99801d978f6b037858e5dafb197e5f8c804 (diff)
downloadpuppet-tozt-bd9f23facf43df40a481aa07732600d7512a86dc.tar.gz
puppet-tozt-bd9f23facf43df40a481aa07732600d7512a86dc.zip
nginx config
Diffstat (limited to 'modules/tozt/manifests/site.pp')
-rw-r--r--modules/tozt/manifests/site.pp27
1 files changed, 26 insertions, 1 deletions
diff --git a/modules/tozt/manifests/site.pp b/modules/tozt/manifests/site.pp
index ef7fcae..c71ba76 100644
--- a/modules/tozt/manifests/site.pp
+++ b/modules/tozt/manifests/site.pp
@@ -1,3 +1,28 @@
class tozt::site {
- include nginx
+ nginx::site {
+ "blog":
+ source => 'puppet:///modules/tozt/nginx/blog.conf';
+ "doy":
+ source => 'puppet:///modules/tozt/nginx/doy.conf';
+ "mail":
+ source => 'puppet:///modules/tozt/nginx/mail.conf';
+ "paste":
+ source => 'puppet:///modules/tozt/nginx/paste.conf';
+ }
+
+ file {
+ [
+ '/home/doy/blog',
+ '/home/doy/public_html',
+ '/home/doy/paste',
+ ]:
+ ensure => directory,
+ owner => 'doy',
+ group => 'doy',
+ require => [
+ User['doy'],
+ Group['doy'],
+ File['/home/doy'],
+ ];
+ }
}