SetupNamedChroot - file /usr/libexec/

This module provides class SetupNamedChroot for parsing the output of file /usr/libexec/

class insights.parsers.setup_named_chroot.SetupNamedChroot(context)[source]

Bases: insights.core.Parser, dict

Class for parsing the /usr/libexec/ file.

Typical content of the filtered file is:

# it MUST be listed last. (/var/named contains /var/named/chroot)
ROOTDIR_MOUNT='/etc/localtime /etc/named /etc/pki/dnssec-keys /etc/named.root.key /etc/named.conf
/etc/named.dnssec.keys /etc/named.rfc1912.zones /etc/rndc.conf /etc/rndc.key /usr/lib64/bind
/usr/lib/bind /etc/named.iscdlv.key /run/named /var/named /etc/protocols /etc/services'
    for all in $ROOTDIR_MOUNT; do
    for all in $ROOTDIR_MOUNT; do,
    # Check if file is mount target. Do not use /proc/mounts because detecting

A list of all the active lines present

Raises:SkipComponent -- When the file is empty or when the input content is not empty but there is no useful parsed data


>>> len(snc)
>>> snc['ROOTDIR_MOUNT']
['/etc/localtime', '/etc/named', '/etc/pki/dnssec-keys', '/etc/named.root.key', '/etc/named.conf', '/etc/named.dnssec.keys', '/etc/named.rfc1912.zones', '/etc/rndc.conf', '/etc/rndc.key', '/etc/named.iscdlv.key', '/etc/protocols', '/etc/services', '/usr/lib64/bind', '/usr/lib/bind', '/run/named', '/var/named']

This method must be implemented by classes based on this class.