+
    G%@i!                     :    ^ RI t ^ RIHtHtHt  ! R R]]4      tR# )    N)PluginRedHatPlugin	PluginOptc                   |   a  ] tR t^t o RtRtRtRtRt]	! RR]
RR7      ]	! RR]
R	R7      .tR
 tR tR tR tRtV tR# )AAPContainerizedzLCollects details about AAP Containerized setup
under a user's home directoryzAAP Containerized Setupaap_containerizedusername z>Username that was used to setup AAP containerized installation)defaultval_typedesc	directoryzhAbsolute path to AAP containers volume directory. Defaults to 'aap' under provided user's home directoryc                l   V P                  R 4      pV'       g   V P                  R4       V P                  R4      pVR,          ^ 8X  d   \        4       pVR,          P	                  4        F:  pRV9   g   K  RV9   g   K  VP                  ^R7      w  rVVP                  V4       K<  	  \        V4      ^8X  d'   VP                  4       pV P                  RV R	24       MV P                  R
4       R# V P                  R4      '       g6   \        P                  P                  RV 24      pV P                  VR4      pMV P                  R4      pV P                  V4      '       dD   R+ U	u. uF  p	V P                  W4      NK  	  p
p	V P                  V
4       V P!                  V4       MV P                  RV R24       RV R2R3RV R2R3.pV F  w  rV P#                  WR7       K  	  V P%                  V4      pV F<  pV P#                  RV RV R	2V R2RR7       V P#                  RV RV R	2VRR7       K>  	  RRR.R . R,OR!. R-OR"R#R$.R%R&R'./pVP'                  4        FG  w  ppVV9   g   K  V F2  pV P)                  V4      pV P#                  RV R(V R)V R*2VVR7       K4  	  KI  	  R# u up	i ).r	   zMAAP username is missing, use '-k aap_containerized.username=<user>' to set itzps auxstatusoutputz/usr/bin/podmanz!/.local/share/containers/storage/)maxsplitzAAP username detected as ''z5Unable to determine AAP username, terminating plugin.Nr   ~aapz
Directory z1 does not exist or invalid absolute path providedsu - z -c 'podman info --debug'podman_infoz  -c 'podman ps -a --format json'podman_ps_all_json)suggest_filenamez -c 'podman logs z.logaap_container_logs)r   subdirz -c 'podman inspect podman_inspect_logszautomation-controller-taskawx-manage check_license --dataawx-manage list_instanceszautomation-gatewayzautomation-controller-webzautomation-eda-apizaap-eda-manage --versionzaap-eda-manage showmigrationsreceptorzreceptorctl statuszreceptorclt work listz -c 'podman exec -it  z
 bash -c "z"')
containerstlszcontroller/etc/*.certzcontroller/etc/*.keyzeda/etc/*.certzeda/etc/*.keyzgateway/etc/*.certzgateway/etc/*.keyzhub/etc/*.certzhub/etc/*.keyzhub/etc/keys/*.pemzpostgresql/*.crtzpostgresql/*.keyzreceptor/etc/*.crtzreceptor/etc/*.keyzreceptor/etc/*.pemzredis/*.crtzredis/*.key)z!automation-gateway-service status!aap-gateway-manage print_settingsz!aap-gateway-manage authenticatorsz!aap-gateway-manage showmigrationsz aap-gateway-manage list_servicesz'aap-gateway-manage feature_flags --listzaap-gateway-manage --version)zawx-manage showmigrationsr   z"awx-manage run_dispatcher --statusz)awx-manage run_callback_receiver --statusr   zawx-manage run_wsrelay --status)
get_option	_log_warnexec_cmdset
splitlinessplitaddlenpop
_log_errorospath
expanduser	path_joinpath_existsadd_forbidden_pathadd_copy_specadd_cmd_output_get_aap_container_namesitems_mangle_command)selfr	   pspodman_userslineuser_user_home_directoryaap_directory_namer.   forbidden_pathspodman_commandscommandfilenameaap_containers	containerpod_cmdspodcmdscmdfnames   &                    F/usr/lib/python3/dist-packages/sos/report/plugins/aap_containerized.pysetupAAPContainerized.setup)   s6   ??:.NN J Kx(B(|q "uxL335D)T1;tC"&**a*"8$((.	 6
 |$)+//1HNN%?z#KLOO %: ; {++"$''"4"4q
^"D!%0CU!K!%!= .//D 18  . ##O412OOj);(< =@ @ A
 XJ78-HXJ>?$&
 "1GC "1 66x@ (IH:%6ykC(1{$%7/   
 H:%9)AF%.0    (  )1++ ! # ( * !*/# $'5
> ")ICn$C 005E''%z :--0ESE)F9>/2 ( 4   *us   *J1c                     R V R2pV P                  V4      pVR,          ^ 8X  d'   VR,          P                  4       P                  R4      # . #   \         d    T P	                  R4       . u # i ; i)r   z& -c 'podman ps -a --format {{.Names}}'r   r   
z"Error retrieving Podman containers)r%   stripr(   	Exceptionr,   )r8   r	   rI   cmd_outs   &&  rK   r5   )AAPContainerized._get_aap_container_names   sv    	(#MNCmmC(Gx A%x(..066t<<I 	OO@AI	s   A
A A A0/A0c                ~    . ROpV P                  R4      pVR,          ^ 8X  d   V F  pW2R,          9   g   K   R# 	  R# )dumb-init -- /usr/bin/envoyzps --noheaders -eo argsr   r   TF)rU   z!dumb-init -- /usr/bin/supervisordz'dumb-init -- /usr/bin/launch_awx_web.shz(dumb-init -- /usr/bin/launch_awx_task.shzdumb-init -- aap-eda-managez5pulpcore-content --name pulp-content --bind 127.0.0.1)r%   )r8   aap_processes	ps_outputprocesss   &   rK   check_enabledAAPContainerized.check_enabled   sD     MM";<	X!#(11 )     c                Z    R pV P                  RVR4       RpV P                  RVR4       R# )z8((["\']?PASSWORD["\']?\s*[:=]\s*)[rb]?["\'])(.*?)(["\'])r"   z\1**********\4z-((SECRET_KEY\s*=\s*)([rb]?["\']))(.*?)(["\'])z\1**********\5N)do_cmd_output_sub)r8   jregs   & rK   postprocAAPContainerized.postproc   s=    J/	 @/	r[    N)sysmgmtansible)podman)__name__
__module____qualname____firstlineno____doc__
short_descplugin_nameprofilespackagesr   stroption_listrL   r5   rY   r_   __static_attributes____classdictcell__)__classdict__s   @rK   r   r      ss     % +J%K&HH 	-		
 	E		
K"@4F	$ r[   r   )r-   sos.report.pluginsr   r   r   r   ra   r[   rK   <module>rt      s     
 > >Hv| Hr[   