ungleich-learning-circle/sami/my-org-files/cdist.org/cdist#2-type.org

25 lines
1.5 KiB
Org Mode
Raw Normal View History

2020-05-12 10:06:57 +00:00
*** cdist #2: Your first cdist type
**** Lecture content
***** Objective
****** Begin to understand how cdist types function
******* Types are the main component of cdist and define functionality. If you use cdist, you'll write a type for every functionality you would like to use.
***** Steps
****** Create a new type named `__my_computer`
- Mark the type as a singleton type (If a type is flagged as a singleton, it may be used only once per host.)
- Create a `manifest` file in it
- Use this type to install the following packages: zsh, mosh, emacs, nmap, sipcalc
- Edit the *initial manifest* and use **__my_computer** - Here we have to simply add __my_computer in the types file
**localhost**
- Match using the $__target_host variable
****** Modify your type to use a *for loop* to install the packages
****** Deploy / manage your ~/.emacs file in this type
- Ensure that permissions and ownership are correct
****** Use different *verbosity* levels when configuring
****** Ensure that all your changes are committed and pushed in your ungleich-learning-circle repository
- Use magit inside emacs for that
***** Documentation steps to be done in cdist.org
- Create a new org document named `cdist.org` in the safind . -name "~/.emacs"me folder as the learning.org file
- Explain the difference between a singleton and non-singleton type
- Explain the difference between the different verbosity levels
- Document (copy&paste) some of the cdist runs in a "log" section```find . -name "~/.emacs"