Learning Circle : cdist #5 - update 3

This commit is contained in:
youngjin.han 2020-05-14 00:55:29 +09:00
parent 18f5b6abfb
commit d869b8c938
3 changed files with 13 additions and 5 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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?