Skip to content

Commit

Permalink
fix(contrib/azure/azure-coreos-cluster): Make a --nohttps option to d…
Browse files Browse the repository at this point in the history
…isable https endpoint

As per discussion with @timfpark, we should allow the user to disable
the creation of an https endpoint.
  • Loading branch information
sedouard committed Apr 10, 2015
1 parent 34a2289 commit 0955541
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/azure/azure-coreos-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ parser.add_argument('--deis', action='store_true',
help='optional, automatically opens http and controller endpoints')
parser.add_argument('--data-disk', action='store_true',
help='optional, attaches a data disk to each VM')
parser.add_argument('--nohttps', action='store_true',
help='optional, disables the creation of the https load balanced endpoint')

cloud_init_template = """#cloud-config
Expand Down Expand Up @@ -159,7 +161,8 @@ def network_config(subnet_name=None, port='59913', public_ip_name=None):
if args.deis:
# create web endpoint with probe checking /health-check
network.input_endpoints.input_endpoints.append(endpoint_config('web', '80', load_balancer_probe('/health-check', '80', 'http')))
network.input_endpoints.input_endpoints.append(endpoint_config('https', '443', load_balancer_probe(None, '443', 'tcp')))
if not args.nohttps:
network.input_endpoints.input_endpoints.append(endpoint_config('https', '443', load_balancer_probe(None, '443', 'tcp')))
# create builder endpoint TCP probe check
network.input_endpoints.input_endpoints.append(endpoint_config('builder', '2222', load_balancer_probe(None, '2222', 'tcp')))
return network
Expand Down

0 comments on commit 0955541

Please sign in to comment.