Skip to content

Commit b599f60

Browse files
authored
Merge pull request alphagov#237 from alphagov/locksmith-endpoint
Locksmith endpoint
2 parents c8d2060 + 526ded5 commit b599f60

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

locksmith.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from fabric.api import run, task
22
from fabric.utils import error
33
import fabric.contrib.files
4-
import util
54

6-
etcd_cluster = 'http://etcd-1.management:4001'
5+
etcd_cluster = 'http://etcd.cluster:2379'
76
locksmithctl = '/usr/bin/locksmithctl'
87

98

@@ -15,14 +14,12 @@ def check_locksmithctl():
1514
@task
1615
def status():
1716
"""Get the status of locksmith"""
18-
util.use_random_host('class-etcd')
1917
check_locksmithctl()
2018
run("{0} -endpoint='{1}' status".format(locksmithctl, etcd_cluster))
2119

2220

2321
@task
2422
def unlock(machine_name):
2523
"""Unlock a machine with locksmith"""
26-
util.use_random_host('class-etcd')
2724
check_locksmithctl()
2825
run("{0} -endpoint='{1}' unlock '{2}'".format(locksmithctl, etcd_cluster, machine_name))

0 commit comments

Comments
 (0)