Added cdist.org for the excercise
This commit is contained in:
parent
58991466c4
commit
ea0f044aee
1 changed files with 67 additions and 0 deletions
67
balazs/orgfiles/cdist.org
Normal file
67
balazs/orgfiles/cdist.org
Normal file
|
@ -0,0 +1,67 @@
|
|||
|
||||
* Explain the difference between a singleton and non-singleton type:
|
||||
|
||||
A single type can only be used once per host.
|
||||
|
||||
(I don't see yet why this is important.)
|
||||
|
||||
** Reference
|
||||
If a type is flagged as a singleton, it may be used only once per host. This is useful for types which can be used only once on a system. Singleton types do not take an object name as argument.
|
||||
(https://www.cdi.st/manual/latest/cdist-type.html?highlight=singleton)
|
||||
|
||||
|
||||
|
||||
* Explain the difference between the different verbosity levels
|
||||
|
||||
Verbosity levels are used to change the amount of information that is output on stdout about the configuration run.
|
||||
I can be used for debugging, monitoring and scripting.
|
||||
|
||||
|
||||
** Reference
|
||||
|
||||
# verbosity
|
||||
# Set verbosity level. Valid values are:
|
||||
# ERROR, WARNING, INFO, VERBOSE, DEBUG, TRACE and OFF.
|
||||
|
||||
(https://www.cdi.st/manual/latest/cdist-configuration.html?highlight=verbosity)
|
||||
|
||||
|
||||
|
||||
* Logs (config run dumps per verbosity level)
|
||||
|
||||
** No -v
|
||||
|
||||
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . localhost
|
||||
|
||||
No output
|
||||
|
||||
** -v (INFO)
|
||||
|
||||
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . -v localhost
|
||||
INFO: localhost: Starting configuration run
|
||||
INFO: localhost: Finished successful run in 7.95 seconds
|
||||
|
||||
** -vv (VERBOSE)
|
||||
|
||||
1lnu:/mnt/cephfs/infra/code.ungleich.ch/ungleich-learning-circle-balazs/balazs/dot-cdist$ cdist config -c . -vv localhost
|
||||
VERBOSE: cdist: version 6.5.4-32-g250161e4
|
||||
INFO: localhost: Starting configuration run
|
||||
VERBOSE: localhost: Running global explorers
|
||||
VERBOSE: localhost: Running initial manifest /tmp/tmpec8j3nyk/421aa90e079fa326b6494f812ad13e79/data/conf/manifest/init
|
||||
VERBOSE: localhost: Preparing object __my_computer/
|
||||
|
||||
...
|
||||
|
||||
VERBOSE: localhost: Running object __package/zsh
|
||||
VERBOSE: localhost: Running object __package/sipcalc
|
||||
VERBOSE: localhost: Running object __package/emacs
|
||||
VERBOSE: localhost: Running object __package/tzdata
|
||||
VERBOSE: localhost: Running object __package/nmap
|
||||
VERBOSE: localhost: Preparing object __link/etc/localtime
|
||||
VERBOSE: localhost: Running manifest and explorers for __link/etc/localtime
|
||||
VERBOSE: localhost: Running type explorers for <CdistType __link>
|
||||
VERBOSE: localhost: Running object __link/etc/localtime
|
||||
VERBOSE: localhost: Running object __my_computer/
|
||||
VERBOSE: localhost: Running object __timezone/Europe/Zurich
|
||||
INFO: localhost: Finished successful run in 7.58 seconds
|
||||
VERBOSE: config: Total processing time for 1 host(s): 7.591623544692993
|
Loading…
Reference in a new issue