Using WATO with configuration management database (CMDB)
Dieser Artikel wird nicht mehr gepflegt und ist unter Umständen nicht mehr gültig!
Sometimes hosts may not be configured within WATO itself, but imported from a CMDB. In this case it is important that these host are never modified by WATO itself, since any update from the CMDB would discard any changes made in the configuration files.
2. New Locking Mechanism
2.1. Locking hosts (hosts.mk)
The hosts.mk supports the new variable _lock, which can be set to True or a string of your choice. This variable is an indicator for WATO, that all hosts in this hosts.mk are fixed. As a consequence some of the modify options within this folder are disabled
A note is displayed within the folder view in case the attribute _lock is set. If _lock is set to True a generic info is displayed. If no generic info should be shown you can set the variable _lock to a string of you choice, which is displayed instead. Setting this string to "" still enables the lock of this folder but disables any note displayed on the screen. With this feature you can create small comments for each hosts.mk describing its purpose more in detail.
2.2. Locking folders (.wato)
Similar to the lock of the hosts.mk, folders can be locked, too. Adding the variable lock in the .wato file WATO performs the following actions
Additionally, you can set a variable lock_subfolders which prevents any changes in the folder structure
The locking mechanism ensures that the provided hosts.mk and .wato files are by any menas never written again through the WATO. This means in reverse that an update of these files is unavailable, which might be neccessary in case of changes in the inherited host tags. This restriction requires that all host tags within the hosts.mk files are complete and do not rely on inherited values.