From a578fa37e3791c2985bc7f9e6718d3572254cf25 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 26 Sep 2010 14:02:39 +0200 Subject: [PATCH] more ideas Signed-off-by: Nico Schottelius --- conf/modules/efsh/base.sh | 6 ++++++ conf/modules/efsh/test.sh | 5 +++++ conf/modules/nginx-website/nginx_config.sh | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 conf/modules/efsh/base.sh create mode 100644 conf/modules/efsh/test.sh create mode 100644 conf/modules/nginx-website/nginx_config.sh diff --git a/conf/modules/efsh/base.sh b/conf/modules/efsh/base.sh new file mode 100644 index 00000000..d7202593 --- /dev/null +++ b/conf/modules/efsh/base.sh @@ -0,0 +1,6 @@ +efsh_base() +{ + efsh_servicedir="/home/services" + efsh_userdir="/home/users" + efsh_groupdir="/home/groups" +} diff --git a/conf/modules/efsh/test.sh b/conf/modules/efsh/test.sh new file mode 100644 index 00000000..a13a7ae0 --- /dev/null +++ b/conf/modules/efsh/test.sh @@ -0,0 +1,5 @@ +. ./base.sh + +echo $efsh_userdir +efsh +echo $efsh_userdir diff --git a/conf/modules/nginx-website/nginx_config.sh b/conf/modules/nginx-website/nginx_config.sh new file mode 100644 index 00000000..cced7827 --- /dev/null +++ b/conf/modules/nginx-website/nginx_config.sh @@ -0,0 +1,18 @@ +cat << eof +# +# D-INFK SANS MANAGED FILE +# ======================== +# +# Do not change this file. Changes will be overwritten by puppet. +# + +server { + # Only bind on the reserved IP address + listen $nginx_website; + server_name $server_name; + + location / { + root /home/services/www/$username/$server_name/www; + } +} +eof