Skip to content

Commit

Permalink
Make sure host address uses nip.io in cloudman
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Oct 15, 2021
1 parent bd247cd commit 504805c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -432,6 +432,8 @@ def is_ip_address(self, host):

def configure(self, app_config, provider_config):
host = provider_config.get('host_config', {}).get('host_address')
host = f"{host}.nip.io" if self.is_ip_address(host) else host
provider_config.get('host_config', {})['host_address'] = host
# Create a random token for Pulsar if it's set to be used
token_length = 40 # chars
token_contents = (string.ascii_lowercase + string.ascii_uppercase +
Expand All @@ -453,7 +455,7 @@ def configure(self, app_config, provider_config):
provider_config, cloud_config)

cm_playbook_vars = {
'cluster_hostname': f"{host}.nip.io" if self.is_ip_address(host) else host,
'cluster_hostname': host,
'cluster_password': app_config.get('config_cloudman2', {})
.get('clusterPassword', ''),
'kube_cloud_provider': kube_cloud_provider,
Expand Down

0 comments on commit 504805c

Please sign in to comment.