888 B
888 B
- Understanding how to generate code and when to use it
- Modify the previously created type __my_nginx_site
- Read about cdist messaging
- What is the difference between gencode-local and gencode-remote?
cdist #5: Generating Code & Exploring
Understanding how to generate code and when to use it
define gencode-remote script: ~/.cdist/type/__nginx_site. After manifest is applied it should restart services so configuration is active. Our gencode-remote looks like echo "service nginx restart"
Modify the previously created type __my_nginx_site
We modify the previously created type so that the gencode-remote script reacts accordingly
- echo "if_configurationfile_changes" >> "$__messages_out"