Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc7af84

Browse files
committed
Fix up Carrenza and Preview gateways
Previously, we had a Preview gateway for accessing Carrenza with a separatetask to allow us to run Fabric commands against it. This commit removesthat, switching back to Preview, as DNS records have been updated for thisprior to the commit.
1 parent60997bd commitfc7af84

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-
ifname=='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-
defpreview_carrenza():
219-
"""Select preview environment"""
220-
_set_gateway('preview_carrenza')
221-
222214
@task
223215
defall():
224216
"""Select all machines in current environment"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp