1,008 B
1,008 B
cdist #5: Generating Code & Exploring
Lecture content
Objective
- Understand how to generate code and when to use it
- Exploring explorers
Code generation steps
- 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
- 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
- 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?
- Locate a type that comes with upstream cdist that uses gencode-local - which one is it? Why does it need gencode-local?