AnsibleTowerSettings - file /etc/tower/conf.d/*.py and /etc/tower/settings.py

The AnsibleTowerSettings class parses the file /etc/tower/conf.d/*.py and /etc/tower/settings.py.

class insights.parsers.ansible_tower_settings.AnsibleTowerSettings(context)[source]

Bases: insights.core.Parser, dict

Class for content of ansible tower config file /etc/tower/conf.d/*.py and /etc/tower/settings.py.

Sample /etc/tower/conf.d/*.py file:

AWX_CLEANUP_PATHS = False
Raises

SkipException -- the file is empty or there is no valid content

Examples:: >>> type(conf) <class ‘insights.parsers.ansible_tower_settings.AnsibleTowerSettings’> >>> conf[‘AWX_CLEANUP_PATHS’] ‘False’

parse_content(content)[source]

Parse content of of ansible tower config file /etc/tower/conf.d/*.py and /etc/tower/settings.py