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

Commit86d567b

Browse files
author
Sam J Sharpe
committed
Add configuration to connect to carrenza preview
1 parent3831dba commit86d567b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎fabfile.py‎

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

@@ -210,6 +213,11 @@ def preview():
210213
"""Select preview environment"""
211214
_set_gateway('preview')
212215

216+
@task
217+
defpreview_carrenza():
218+
"""Select preview environment"""
219+
_set_gateway('preview_carrenza')
220+
213221
@task
214222
defall():
215223
"""Select all machines in current environment"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp