Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Fixes #171
Browse files Browse the repository at this point in the history
Supports extending bootstrap timeout and additional no-proxy settings
for juju.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
  • Loading branch information
Adam Stokes committed Jun 28, 2016
1 parent 65b2779 commit a4f112b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conjure/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ def parse_options(argv):
help='Specify HTTP proxy')
parser.add_argument('--https-proxy', dest='https_proxy',
help='Specify HTTPS proxy')
parser.add_argument('--proxy-proxy', dest='no_proxy',
help='Comma separated list of IPs to not '
'filter through a proxy')
parser.add_argument('--bootstrap-timeout', dest='bootstrap_timeout',
help='Amount of time to wait for initial environment '
'creation. Useful for slower network connections.')
parser.add_argument(
'--version', action='version', version='%(prog)s {}'.format(VERSION))

Expand Down
5 changes: 5 additions & 0 deletions conjure/juju.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ def bootstrap(controller, cloud, series="xenial", credential=None):
cmd += "--config apt-http-proxy={} ".format(app.argv.apt_http_proxy)
if app.argv.apt_https_proxy:
cmd += "--config apt-https-proxy={} ".format(app.argv.apt_https_proxy)
if app.argv.no_proxy:
cmd += "--config no-proxy={} ".format(app.argv.no_proxy)
if app.argv.bootstrap_timeout:
cmd += "--config bootstrap-timeout={} ".format(
app.argv.bootstrap_timeout)

cmd += "--bootstrap-series={} ".format(series)
if cloud != "localhost":
Expand Down

0 comments on commit a4f112b

Please sign in to comment.