Skip to content

Commit fc7af84

Browse files
committed
Fix up Carrenza and Preview gateways
Previously, we had a Preview gateway for accessing Carrenza with a separate task to allow us to run Fabric commands against it. This commit removes that, switching back to Preview, as DNS records have been updated for this prior to the commit.
1 parent 60997bd commit fc7af84

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

fabfile.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,7 @@ def _set_gateway(name):
182182
setting and makes sure that the correct known_hosts file will be consulted,
183183
then dynamically fetches a list of hosts from the gateway box.
184184
"""
185-
if name == 'preview_carrenza':
186-
env.gateway = 'jumpbox.provider1.preview.govuk.service.gov.uk'
187-
else:
188-
env.gateway = 'jumpbox.{0}.alphagov.co.uk'.format(name)
185+
env.gateway = 'jumpbox.{0}.alphagov.co.uk'.format(name)
189186
env.system_known_hosts = _fetch_known_hosts()
190187
env.roledefs.fetch()
191188

@@ -214,11 +211,6 @@ def preview():
214211
"""Select preview environment"""
215212
_set_gateway('preview')
216213

217-
@task
218-
def preview_carrenza():
219-
"""Select preview environment"""
220-
_set_gateway('preview_carrenza')
221-
222214
@task
223215
def all():
224216
"""Select all machines in current environment"""

0 commit comments

Comments
 (0)