File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
from fabric .api import run , task
2
2
from fabric .utils import error
3
3
import fabric .contrib .files
4
- import util
5
4
6
- etcd_cluster = 'http://etcd-1.management:4001 '
5
+ etcd_cluster = 'http://etcd.cluster:2379 '
7
6
locksmithctl = '/usr/bin/locksmithctl'
8
7
9
8
@@ -15,14 +14,12 @@ def check_locksmithctl():
15
14
@task
16
15
def status ():
17
16
"""Get the status of locksmith"""
18
- util .use_random_host ('class-etcd' )
19
17
check_locksmithctl ()
20
18
run ("{0} -endpoint='{1}' status" .format (locksmithctl , etcd_cluster ))
21
19
22
20
23
21
@task
24
22
def unlock (machine_name ):
25
23
"""Unlock a machine with locksmith"""
26
- util .use_random_host ('class-etcd' )
27
24
check_locksmithctl ()
28
25
run ("{0} -endpoint='{1}' unlock '{2}'" .format (locksmithctl , etcd_cluster , machine_name ))
You can’t perform that action at this time.
0 commit comments