Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
297 stars 116 forks source link

hostnames vs IP addresses in AWS #238

Closed chriswoodside closed 4 years ago

chriswoodside commented 4 years ago

The default value is set to https://#{node['ipaddress']}:7443/arcgis if “node['fqdn'].nil? || node['cloud'] || ENV['arcgis_cloud_platform'] == 'aws'” and to https://#{node['fqdn']}:7443/arcgis otherwise.

In our case Chef probably uses https://:7443/arcgis/protaladmin URL because node['cloud'] is true.

We would like to use the hostname of the machine and not the IP address. Because this is an automated deployment, we don't know the machine name before we launch the machine so we can't specify the node['arcgis']['portal']['url'] attribute

Nickolaitc commented 4 years ago

Hey @chriswoodside,

Are we utilizing an Esri AMI for our chef deployment via AWS?

chriswoodside commented 4 years ago

@Nickolaitc - in this example, no we are not using the Esri AMI. We are using an ubuntu image due to requirements

cameronkroeker commented 4 years ago

@chriswoodside

In the latest release, v3.5.0 We have added the following parameters that will allow the use of hostnames in AWS:

node['arcgis']['configure_cloud_settings'] = If set to true, makes the cookbook use cloud provider specific ArcGIS Enterprise configuration. The default value is true if node['cloud'] is defined or arcgis_cloud_platform environment varible is set to aws.