From d869b8c9386df7e54b8bf5d6e862e1651af15da1 Mon Sep 17 00:00:00 2001 From: Youngjin Han Date: Thu, 14 May 2020 00:55:29 +0900 Subject: [PATCH] Learning Circle : cdist #5 - update 3 --- youngjin.han/cdist.org | 5 +++++ youngjin.han/dot-cdist/type/__my_nginx_site/manifest | 4 ++-- youngjin.han/learning-node02-2020.org | 9 ++++++--- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/youngjin.han/cdist.org b/youngjin.han/cdist.org index 4609010..4e9c0bc 100644 --- a/youngjin.han/cdist.org +++ b/youngjin.han/cdist.org @@ -1,3 +1,8 @@ +* cidst #5 + - gencode-remote : is executed on the target + - remote code : behave as if it where ssh (e.g. ssh -o User=root) + - gencode-local : is executed locally + - __file has gencode-local that is need to excute and debug commands * singleton / non-singleton ** non-singleton needs process ID. ** singletion should be carried out by itself. diff --git a/youngjin.han/dot-cdist/type/__my_nginx_site/manifest b/youngjin.han/dot-cdist/type/__my_nginx_site/manifest index 0b17ddf..1e08e8b 100755 --- a/youngjin.han/dot-cdist/type/__my_nginx_site/manifest +++ b/youngjin.han/dot-cdist/type/__my_nginx_site/manifest @@ -5,11 +5,11 @@ os=$(cat "$__global/explorer/os") case "$os" in devuan) : - ;; + ;; *) echo "OS $os currently not supported" >&2 exit 1 - ;; + ;; esac nginx_config_dir="/etc/nginx/conf.d" diff --git a/youngjin.han/learning-node02-2020.org b/youngjin.han/learning-node02-2020.org index 05d6388..10f0f3d 100644 --- a/youngjin.han/learning-node02-2020.org +++ b/youngjin.han/learning-node02-2020.org @@ -4,16 +4,19 @@ ***** Objective - Understand how to *generate code* and when to use it - Exploring explorers -***** Code generation steps +***** DONE Code generation steps + CLOSED: [2020-05-14 목 00:54] - Modify the previously created type *__my_nginx_site* - Read about cdist messaging - If there was a change in the nginx configuration file, reload nginx -***** Explorer steps +***** DONE Explorer steps + CLOSED: [2020-05-14 목 00:54] - Modify the *__my_nginx_site* type to use the *os explorer* - Adjust your type to work on Alpine Linux and Debian (or two other Linux distributions of your choice) - Set the nginx configuration directory accordingly -***** Documentation +***** DONE Documentation + CLOSED: [2020-05-14 목 00:54] - Explain the following in your cdist.org file - What is the difference between gencode-remote and the remote code? - What is the difference between gencode-local and gencode-remote?