%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/puppet.cpython-312.pyc |
� i��d� � �8 � d dl mZmZ d dlmZ G d� dee� Zy)� )�Plugin�IndependentPlugin)�globc �( � e Zd ZdZdZdZdZd� Zd� Zy)�PuppetzPuppet service�puppet)�services)r z puppet-commonz puppet-server�puppetserver�puppetmasterz puppet-masterc � � | j d� d }|j � }| j ddddddd d ddd ddddj |� dj |� g� | j dd�� | j g d�� y )N�hostname�outputz/etc/puppet/*.confz/etc/puppet/rack/*z/etc/puppet/manifests/*z /etc/puppet/ssl/ca/inventory.txtz/var/log/puppet/*.log*z/etc/puppetlabs/puppet/*.confz*/etc/puppetlabs/puppetserver/conf.d/*.confz/etc/puppetlabs/puppet/rack/*z"/etc/puppetlabs/puppet/manifests/*z+/etc/puppetlabs/puppet/ssl/ca/inventory.txtz'/var/log/puppetlabs/puppetserver/*.log*z//var/lib/puppetlabs/puppet/ssl/ca/inventory.txtz$/var/lib/puppet/ssl/ca/inventory.txtz /var/lib/puppet/ssl/certs/ca.pemz'/etc/puppetlabs/puppet/ssl/certs/{}.pemz /var/lib/puppet/ssl/certs/{}.pemz'/etc/puppetlabs/puppet/ssl/certs/ca.pem�puppet_ssl_cert_ca_pem)�tags)�facterzpuppet --versionzls -lanR /etc/puppet/modulesz%ls -lanR /etc/puppetlabs/code/modules)�exec_cmd�strip� add_copy_spec�format�add_cmd_output)�self� _hostnames �;/usr/lib/python3/dist-packages/sos/report/plugins/puppet.py�setupzPuppet.setup s� � ��M�M�*�-�h�7� ��O�O�%� ���� � �%�.�$�+�8�+�0�9�5�=�2�.�5�<�<�Y�G�.�5�5�i�@�! � �$ ���D� 8� � :� ��� � � c �P � t d� D ] }| j |dddz � � y )Nz/etc/puppet/device.conf*z(.*url*.ssh://.*:).*(@.*)z\1%s\2z***)r �do_file_sub)r �device_confs r �postproczPuppet.postproc6 s8 � �� :�;� �K�����,��U�#� � � r N) �__name__� __module__�__qualname__� short_desc�plugin_name�profiles�packagesr r � r r r r s$ � �!�J��K��H�A�H��@r r N)�sos.report.pluginsr r r r r'