Skip to content

Commit

Permalink
exhibitor name is needed for adminrouter
Browse files Browse the repository at this point in the history
  • Loading branch information
jr0d committed Jul 31, 2019
1 parent 4ffa5ac commit 35165f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gen/exhibitor_tls_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def initialize_exhibitor_ca(final_arguments: Dict[str, Any]):
pathlib.Path(
'/artifacts/packages/dcoscertstrap') / package_filename)

ca_alternative_names = ['127.0.0.1', 'localhost', _get_ca_alt_name(final_arguments)]
ca_alternative_names = ['127.0.0.1', 'localhost',
'exhibitor', _get_ca_alt_name(final_arguments)]

_extract_package(package_path)
_init_ca(ca_alternative_names)
Expand Down
4 changes: 2 additions & 2 deletions packages/exhibitor/extra/bootstrap_exhibitor_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def gen_tls_artifacts(ca_url, artifacts_path) -> None:
'--url', ca_url,
'--ca', str(CSR_SERVICE_CERT_PATH),
'--psk', psk,
'--sans', '{},localhost,127.0.0.1'.format(ip),
'--sans', '{},localhost,127.0.0.1,exhibitor'.format(ip),
],
stderr=subprocess.STDOUT,
)
Expand All @@ -118,7 +118,7 @@ def gen_tls_artifacts(ca_url, artifacts_path) -> None:
'--url', ca_url,
'--ca', str(CSR_SERVICE_CERT_PATH),
'--psk', psk,
'--sans', '{},localhost,127.0.0.1'.format(ip),
'--sans', '{},localhost,127.0.0.1,exhibitor'.format(ip),
],
stderr=subprocess.STDOUT,
)
Expand Down

0 comments on commit 35165f6

Please sign in to comment.