a >h @s.ddlZddlmZmZGdddeeZdS)N)Plugin UbuntuPluginc@s0eZdZdZdZdZdZdZddZdd Z d S) LandscapezUbuntu Landscape clientZ landscape)Zsysmgmt)/etc/landscape/client.conf/etc/landscape/service.conf)zlandscape-clientzlandscape-servercCsdddD}t|s$|jdn|gd|gd|gd|dsh|d d gn|d d g|gd dS)NcSsg|]}|tjvqS)osenviron).0prr@/usr/lib/python3.9/site-packages/sos/report/plugins/landscape.py z#Landscape.setup..)ZLANDSCAPE_API_KEYZLANDSCAPE_API_SECRETZLANDSCAPE_API_URIzNot all environment variables set. Source the environment file for the user intended to connect to the Landscape environment so that the landscape-api commands can be used.)zlandscape-api get-distributionszlandscape-api get-apt-sourcesz%landscape-api get-repository-profilesz'landscape-api get activites --limit 100)z&landscape-api --json get-distributionsz$landscape-api --json get-apt-sourcesz,landscape-api --json get-repository-profilesz.landscape-api --json get activites --limit 100)z/etc/default/landscape-clientz/etc/default/landscape-serverrrz/etc/landscape/service.conf.oldz*/var/lib/landscape/landscape-oops/*/OOPS-*Zall_logsz/var/log/landscape/*.logz/var/log/landscape-server/*.logz/var/log/landscapez/var/log/landscape-server)z'gpg --verify /etc/landscape/license.txtz$head -n 5 /etc/landscape/license.txtz lsctl status)allZsoslogZwarningZadd_cmd_outputZ add_copy_specZ get_option)selfZvars_allrrr setups  zLandscape.setupcCs6|dddgd}|ddd|dd dS) Nrzregistration_password(.*)zregistration_password[********])passwordZstore_passwordz secret-tokenzoidc-client-secretzoidc-client-idz/etc/landscape/service.conf*(|z) = (.*)z\1 = [********])Z do_file_subZdo_path_regex_subjoin)rkeysrrr postprocLszLandscape.postprocN) __name__ __module__ __qualname__Z short_descZ plugin_nameZprofilesfilesZpackagesrrrrrr r s6r)rZsos.report.pluginsrrrrrrr  s