Configs are ready-to-use objects that link together Parsers, Includers and Builders to provide direct conversion between config files and Data tree.
Basic config class. Derivatives normally only need to override the constructor.
Config data is loaded either from path or from content
Parameters: |
|
---|
Loads the config data, parses and builds it. Sets tree attribute to point to Data tree.
Unbuilds, stringifies and saves the config. If the config was loaded from string, returns { origin: data } dict
named.conf
CTDB main config
CTDB node list file
CTDB public address list file
DHCPD
/etc/fstab
/etc/fstab
/etc/group
/etc/hosts
iptables-save and iptables-restore
Netatalk afp.conf
NSD DNS server nsd.conf
/etc/passwd
/etc/resolv.conf
/etc/supervisor/supervisord.conf