Learning Circle : cdist #5 - update 3
This commit is contained in:
parent
bce04d46ce
commit
c966fdacb9
3 changed files with 13 additions and 5 deletions
|
@ -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
|
* singleton / non-singleton
|
||||||
** non-singleton needs process ID.
|
** non-singleton needs process ID.
|
||||||
** singletion should be carried out by itself.
|
** singletion should be carried out by itself.
|
||||||
|
|
|
@ -5,11 +5,11 @@ os=$(cat "$__global/explorer/os")
|
||||||
case "$os" in
|
case "$os" in
|
||||||
devuan)
|
devuan)
|
||||||
:
|
:
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "OS $os currently not supported" >&2
|
echo "OS $os currently not supported" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
nginx_config_dir="/etc/nginx/conf.d"
|
nginx_config_dir="/etc/nginx/conf.d"
|
||||||
|
|
|
@ -4,16 +4,19 @@
|
||||||
***** Objective
|
***** Objective
|
||||||
- Understand how to *generate code* and when to use it
|
- Understand how to *generate code* and when to use it
|
||||||
- Exploring explorers
|
- Exploring explorers
|
||||||
***** Code generation steps
|
***** DONE Code generation steps
|
||||||
|
CLOSED: [2020-05-14 목 00:54]
|
||||||
- Modify the previously created type *__my_nginx_site*
|
- Modify the previously created type *__my_nginx_site*
|
||||||
- Read about cdist messaging
|
- Read about cdist messaging
|
||||||
- If there was a change in the nginx configuration file, reload nginx
|
- 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*
|
- Modify the *__my_nginx_site* type to use the *os explorer*
|
||||||
- Adjust your type to work on Alpine Linux and Debian (or two
|
- Adjust your type to work on Alpine Linux and Debian (or two
|
||||||
other Linux distributions of your choice)
|
other Linux distributions of your choice)
|
||||||
- Set the nginx configuration directory accordingly
|
- Set the nginx configuration directory accordingly
|
||||||
***** Documentation
|
***** DONE Documentation
|
||||||
|
CLOSED: [2020-05-14 목 00:54]
|
||||||
- Explain the following in your cdist.org file
|
- 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-remote and the remote code?
|
||||||
- What is the difference between gencode-local and gencode-remote?
|
- What is the difference between gencode-local and gencode-remote?
|
||||||
|
|
Loading…
Reference in a new issue