Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P10034
etcd client auth test
Active
Public
Actions
Authored by
jbond
on Jan 3 2020, 12:53 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31499364: raw.txt
Jan 3 2020, 12:53 PM
2020-01-03 12:53:44 (UTC+0)
Subscribers
None
#!/usr/bin/env python3
import
etcd
cert
=
(
'/var/lib/puppet/ssl/certs/cumin1001.eqiad.wmnet.pem'
,
'/var/lib/puppet/ssl/private_keys/cumin1001.eqiad.wmnet.pem'
)
ca
=
'/var/lib/puppet/ssl/certs/ca.pem'
c
=
etcd
.
Client
(
srv_domain
=
'conftool.eqiad.wmnet'
,
protocol
=
'https'
,
allow_reconnect
=
True
,
ca_cert
=
ca_cert
,
cert
=
cert
)
print
(
c
.
read
(
'/conftool/v1/discovery/maps'
))
Event Timeline
jbond
created this paste.
Jan 3 2020, 12:53 PM
2020-01-03 12:53:44 (UTC+0)
Log In to Comment