Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/303607
Change subject: tools: Use LDAP servers in HA manner for maintain-kubeusers
......................................................................
tools: Use LDAP servers in HA manner for maintain-kubeusers
Bug: T142394
Change-Id: I813efa7903c9a438edc59dfaab88c6beee8df751
---
M modules/toollabs/files/maintain-kubeusers
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/07/303607/1
diff --git a/modules/toollabs/files/maintain-kubeusers
b/modules/toollabs/files/maintain-kubeusers
index af62ebb..98885fe 100755
--- a/modules/toollabs/files/maintain-kubeusers
+++ b/modules/toollabs/files/maintain-kubeusers
@@ -317,8 +317,11 @@
while True:
logging.info('starting a run')
+ servers = ldap3.ServerPool([
+ ldap3.Server(s, connect_timeout=1)
+ for s in ldapconfig['servers']
+ ], ldap3.POOLING_STRATEGY_ROUND_ROBIN, active=True, exhaust=True)
with ldap3.Connection(
- [ldap3.Server(s) for s in ldapconfig['servers']],
read_only=True,
user=ldapconfig['user'],
auto_bind=True,
--
To view, visit https://gerrit.wikimedia.org/r/303607
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I813efa7903c9a438edc59dfaab88c6beee8df751
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits