ó uÈÔec@s?ddlmZmZddlZdeefd„ƒYZdS(iÿÿÿÿ(tPlugint RedHatPluginNt OpenshiftcBs´eZdZdZdZdddefdddefgZdZd Zd eefZ d Z e j j e d ƒZe j j e d ƒZdZd„Zd„Zd„Zd„ZRS(sOpenshift 2.x node and brokert openshifttvirttbrokersGathers broker specific filestslowtnodesGathers node specific filestruby193trhs/opt/%s/%s/root/etc/mcollectives/var/lib/openshifts .settingss.httpd.ds/etc/httpd/conf.dcCstjjdƒS(Ns/etc/openshift/broker.conf(tostpathtexists(tself((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pyt is_broker(scCstjjdƒS(Ns/etc/openshift/node.conf(R R R (R ((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pytis_node+scCs |jddddgƒ|jdƒ|jƒr|jddtjj|jdƒd d d d gƒ|jd ddgƒn|jƒr|jddddtjj|jdƒtjj|jdƒtjj|jdƒtjj|jdƒtjj|jdƒtjj|j dƒtjj|j dƒtjj|j dƒtjj|j dƒtjj|j dƒtjj|j dƒtjj|j dƒtjj|j d ƒtjj|j d!ƒd"d#d$d%d&d'gƒ|jd(d)d*|j d+|j gƒndS(,Ns!/etc/openshift-enterprise-releases/var/log/openshifts/etc/openshift/*.confs/etc/openshift/upgradesoo-diagnostics -vs/etc/openshift/quickstarts.jsons/etc/openshift/plugins.d/*.confs client.cfgs*/var/www/openshift/broker/httpd/httpd.confs-/var/www/openshift/broker/httpd/conf.d/*.confs+/var/www/openshift/console/httpd/httpd.confs./var/www/openshift/console/httpd/conf.d/*.confsoo-accept-broker -vsoo-admin-chk -vs oo-mco pings$/etc/openshift/node-plugins.d/*.confs/etc/openshift/cart.conf.ds/etc/openshift/iptables.*.ruless/etc/openshift/envsopenshift-vhost-logconf.includesopenshift-http-vhost.includesopenshift_restorer.includes server.cfgs facts.yamls district.infos*.confs aliases.txts nodes.txts idler.txtssts.txts routes.jsons geardb.jsons sniproxy.jsons/var/log/httpd/openshift_logs/var/log/mcollective.logs"/var/log/node-web-proxy/access.logs!/var/log/node-web-proxy/error.logs&/var/log/node-web-proxy/websockets.logs&/var/log/node-web-proxy/supervisor.logsoo-accept-node -vsoo-admin-ctl-gears lists ls -laZ %ss ls -la %s( t add_copy_spectadd_cmd_outputRR R tjointmco_config_dirRthttpd_config_dirtnode_settings_dirtnode_proxy_dirt gear_base_dir(R ((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pytsetup.sj        cCsë|jdddƒ|jdddƒ|jdddƒ|jtjj|jdƒddƒ|jtjj|jd ƒddƒd }|j|d d dƒ|j|d ddƒ|j|dddƒd}|j|ddƒdS(Ns/etc/openshift/broker.confs(MONGO_PASSWORD\s*=\s*)(.*)s \1*******s(SESSION_SECRET\s*=\s*)(.*)s/etc/openshift/console.confs server.cfgs(.*password\s*=\s*)\S+s \1********s client.cfgs/etc/openshift/plugins.d/s openshift-origin-dns-dynect.confs(DYNECT_PASSWORD\s*=\s*)(.*)sopenshift-origin-dns-fog.confs"(FOG_RACKSPACE_API_KEY\s*=\s*)(.*)s"openshift-origin-dns-nsupdate.confs(BIND_KEYVALUE\s*=\s*)(.*)s3/var/www/openshift/(broker|console)/httpd/conf.d/.*s(AuthLDAPBindPassword)\s*(.*)(t do_file_subR R RRtdo_path_regex_sub(R t plugin_dirt ldap_paths((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pytpostprocos:       (RR(t__name__t __module__t__doc__t plugin_nametprofilestFalset option_listtrubytvendorRRR R RRRRRRRR(((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pyRs    A(t sos.pluginsRRtos.pathR R(((s9/usr/lib/python2.7/site-packages/sos/plugins/openshift.pyt s