RearConf - Configuration files of Rear
Parsers included in this module are:
RearLocalConf - file /etc/rear/local.conf
- class insights.parsers.rear_conf.RearDefaultConf(context)[source]
Bases:
TextFileOutputParses content of “/usr/share/rear/conf/default.conf”.
Typical content of “/usr/share/rear/conf/default.conf”:
COPY_AS_IS_EXCLUDE=( $VAR_DIR/output/ dev/.udev dev/shm dev/shm/ dev/oracleasm dev/mapper dev/watchdog )
Examples
>>> type(default_conf) <class 'insights.parsers.rear_conf.RearDefaultConf'> >>> default_conf.lines[0] == 'COPY_AS_IS_EXCLUDE=( $VAR_DIR/output/ dev/.udev dev/shm dev/shm/ dev/oracleasm dev/mapper dev/watchdog )' True
- class insights.parsers.rear_conf.RearLocalConf(context)[source]
Bases:
TextFileOutputParses content of “/etc/rear/local.conf”.
Typical content of “/etc/rear/local.conf”:
BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )
Examples
>>> type(local_conf) <class 'insights.parsers.rear_conf.RearLocalConf'> >>> local_conf.lines[0] == 'BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )' True