Reverted testing the requirement changes, added messaging, and gencode
remote to reload nginx after the configuration gets writte Modified-by: llnu <llnu@protonmail.ch>
This commit is contained in:
parent
42125df313
commit
3141840cf4
3 changed files with 7 additions and 5 deletions
|
@ -6,16 +6,14 @@ case "$__target_host" in
|
|||
# Copy a cool motd from the type's file directory
|
||||
__motd --source "$__files/motd"
|
||||
|
||||
# __package emacs --state present
|
||||
|
||||
__timezone Europe/Zurich
|
||||
|
||||
__my_computer
|
||||
|
||||
# __my_nginx
|
||||
__my_nginx
|
||||
|
||||
__my_nginx_site woo.com
|
||||
__my_nginx_site chee.se
|
||||
require="__my_nginx" __my_nginx_site woo.com
|
||||
require="__my_nginx" __my_nginx_site chee.se
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
3
balazs/dot-cdist/type/__my_nginx_site/gencode-remote
Normal file
3
balazs/dot-cdist/type/__my_nginx_site/gencode-remote
Normal file
|
@ -0,0 +1,3 @@
|
|||
if grep -q "^__your_type/object/id:conf_file_changed" "$__messages_in"; then
|
||||
echo "service nginx reload"
|
||||
fi
|
|
@ -15,3 +15,4 @@ server {
|
|||
}
|
||||
EOF
|
||||
|
||||
echo "conf_file_changed" >> "$__messages_out"
|
Loading…
Reference in a new issue