AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/cloudinit/config/__pycache__/cc_mcollective.cpython-310.pyc
o

x[ho�
@s�UdZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZddl
mZddlmZd	Zd
ZdZdd
gedgd�Zeed<e�e�Zeeefdd�Zdedede
deddf
dd�ZdS)z5Mcollective: Install, configure and start mcollective�N)�	ConfigObj)�subp�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEz&/etc/mcollective/ssl/server-public.pemz'/etc/mcollective/ssl/server-private.pemz/etc/mcollective/server.cfg�cc_mcollective�all�mcollective)�id�distros�	frequency�activate_by_schema_keys�metac
Cs�ztj|dd�}tt�|��}Wn"ty2}z|jtjkr�t�	d|�t�}WYd}~nd}~ww|�
�D]\\}}|dkrPtj||dd�||d<d|d	<q7|d
kretj||dd�||d<d|d	<q7t|t
�ro|||<q7t|t�r�||jvr}i||<|�
�D]
\}	}
|
|||	<q�q7t
|�||<q7z
t�|d
|�Wnty�}z|jtjkr�n�WYd}~nd}~wwt��}|�|�tj||��dd�dS)NF)�quietz4Did not find file %s (starting with an empty config)zpublic-certi�)�modezplugin.ssl_server_public�ssl�securityproviderzprivate-certi�zplugin.ssl_server_privatez%s.old)r�load_binary_filer�io�BytesIO�IOError�errno�ENOENT�LOG�debug�items�
write_file�
isinstance�str�dict�sections�copy�write�getvalue)�config�
server_cfg�pubcert_file�pricert_file�old_contents�mcollective_config�e�cfg_name�cfg�o�v�contents�r2�A/usr/lib/python3/dist-packages/cloudinit/config/cc_mcollective.py�	configure(sV���	





����
r4�namer.�cloud�args�returncCsZd|vrt�d|�dS|d}|j�dg�d|vr"t|dd�tjgd�dd�dS)Nrz?Skipping module named %s, no 'mcollective' key in configuration�conf)r&)�servicer�restartF)�capture)rr�distro�install_packagesr4r)r5r.r6r7�mcollective_cfgr2r2r3�handlees�r@)�__doc__rr�logging�	configobjr�	cloudinitrr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr�PUBCERT_FILE�PRICERT_FILE�
SERVER_CFGr�__annotations__�	getLogger�__name__rr4r �listr@r2r2r2r3�<module>s0	�

�"=

Anon7 - 2022
AnonSec Team