SetupNamedChroot - file /usr/libexec/setup-named-chroot.sh

This module provides class SetupNamedChroot for parsing the output of file /usr/libexec/setup-named-chroot.sh.

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

Bases: Parser, dict

Class for parsing the /usr/libexec/setup-named-chroot.sh file.

Typical content of the filtered file is:

#!/bin/bash
# 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
raw

A list of all the active lines present

Type:

list

Raises:

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

Examples

>>> len(snc)
2
>>> 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']
parse_content(content)[source]

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