commit a2ee38465ec1ce00bc5fecbd812b8b0433f2ceae parent e94124436c123815f7ff2ce8117fd7f7392b8df7 Author: Solene Rapenne <solene@perso.pw> Date: Tue, 17 Jul 2018 14:36:36 +0200 add examples Diffstat:
10 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/examples/new-machine_openbsd/files/home/solene/config b/examples/new-machine_openbsd/files/home/solene/config @@ -0,0 +1,2 @@ +Host grifon.fr +user public_user diff --git a/examples/new-machine_openbsd/script b/examples/new-machine_openbsd/script @@ -0,0 +1,11 @@ +#!/bin/sh + +doas pkg_add rlwrap git taskwarrior tig tor ecl +doas useradd -m solene +doas chown solene /home/solene +install -d -o solene -m 700 /home/solene/.ssh +install -d -o solene -m 700 /home/solene/dev/ + +cd /home/solene/dev +doas su solene -c 'git clone bitreich.org/clic' + diff --git a/examples/nginx_freebsd/files-grifon.fr/usr/local/www/index.html b/examples/nginx_freebsd/files-grifon.fr/usr/local/www/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, welcome on Grifon.fr homepage! + </body> +</html> diff --git a/examples/nginx_freebsd/files/usr/local/www/index.html b/examples/nginx_freebsd/files/usr/local/www/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, this has been installed with drist! + </body> +</html> diff --git a/examples/nginx_freebsd/script b/examples/nginx_freebsd/script @@ -0,0 +1,5 @@ +#!/bin/sh + +sudo pkg install -y nginx +echo "nginx_enable=yes" | sudo tee /etc/rc.conf.d/nginx +sudo service nginx start diff --git a/examples/nginx_freebsd/script-grifon.fr b/examples/nginx_freebsd/script-grifon.fr @@ -0,0 +1,3 @@ +#!/bin/sh + +doas chown public_user /var/www/htdocs/index.html diff --git a/examples/nginx_openbsd/files-grifon.fr/var/www/htdocs/index.html b/examples/nginx_openbsd/files-grifon.fr/var/www/htdocs/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, welcome on Grifon.fr homepage! + </body> +</html> diff --git a/examples/nginx_openbsd/files/var/www/htdocs/index.html b/examples/nginx_openbsd/files/var/www/htdocs/index.html @@ -0,0 +1,5 @@ +<html> + <body> + Hello, this has been installed with drist! + </body> +</html> diff --git a/examples/nginx_openbsd/script b/examples/nginx_openbsd/script @@ -0,0 +1,5 @@ +#!/bin/sh + +doas pkg_add nginx +doas rcctl enable nginx +doas rcctl start nginx diff --git a/examples/nginx_openbsd/script-grifon.fr b/examples/nginx_openbsd/script-grifon.fr @@ -0,0 +1,3 @@ +#!/bin/sh + +doas chown public_user /var/www/htdocs/index.html