You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rename poorly-named DNS variables
The naming of the variables that describe the DNS zone to which we're adding records (dns_tld_external), the name of the domain part of the FQDN (cluster_vars.dns_zone_external), and the name of the domain part of the cloud-internal FQDN (dns_zone_internal) is very poor, and leads to misunderstandings.
dns_tld_external --> cluster_vars.dns_nameserver_zone
dns_zone_internal --> cluster_vars.dns_cloud_internal_domain
dns_zone_external --> cluster_vars.dns_user_domain
* Update fields in line with review comments
+`-e app_name=<nginx>` - Normally defined in `group_vars/<clusterid>/cluster_vars.yml`. The name of the application cluster (e.g. 'couchbase', 'nginx'); becomes part of cluster_name
67
67
+`-e app_class=<proxy>` - Normally defined in `group_vars/<clusterid>/cluster_vars.yml`. The class of application (e.g. 'database', 'webserver'); becomes part of the fqdn
68
68
+`-e release_version=<v1.0.1>` - Identifies the application version that is being deployed.
69
-
+`-e dns_tld_external=<test.example.com>` - Normally defined in `group_vars/<clusterid>/cluster_vars.yml`.
70
69
+`-e clean=[current|retiring|redeployfail|_all_]` - Deletes VMs in `lifecycle_state`, or `_all_`, as well as networking and security groups
71
70
+`-e do_package_upgrade=true` - Upgrade the OS packages (not good for determinism)
72
71
+`-e reboot_on_package_upgrade=true` - After updating packages, performs a reboot on all nodes.
app_name: "test"# The name of the application cluster (e.g. 'couchbase', 'nginx'); becomes part of cluster_name.
8
8
app_class: "test"# The class of application (e.g. 'database', 'webserver'); becomes part of the fqdn
9
9
10
-
dns_tld_external: ""# Top-level domain for external access. gcloud dns needs a trailing '.'. Leave blank if no external DNS (use IPs only)
11
-
12
10
beats_target_hosts: [] # The destination hosts for e.g. filebeat/ metricbeat logs
13
11
14
12
## Vulnerability scanners - Tenable and/ or Qualys cloud agents:
@@ -42,14 +40,15 @@ cluster_name: "{{app_name}}-{{buildenv}}" # Identifies the cluster within
42
40
#cluster_vars:
43
41
# type: &cloud_type "aws"
44
42
# image: "ami-0964eb2dc8b836eb6" # eu-west-1, 18.04, amd64, hvm-ssd, 20200430. Ubuntu images can be located at https://cloud-images.ubuntu.com/locator/
# dns_cloud_internal_domain: "{{_region}}.compute.internal" # The cloud-internal zone as defined by the cloud provider (e.g. GCP, AWS)
45
+
# dns_nameserver_zone: &dns_nameserver_zone "" # The zone that dns_server will operate on. gcloud dns needs a trailing '.'. Leave blank if no external DNS (use IPs only)
46
+
# dns_user_domain: "{%- if _dns_nameserver_zone -%}MY.OTHER.PREFIXES.{{_dns_nameserver_zone}}{%- endif -%}" # A user-defined _domain_ part of the FDQN, (if more prefixes are required before the dns_nameserver_zone)
48
47
# dns_server: "" # Specify DNS server. nsupdate, route53 or clouddns. If empty string is specified, no DNS will be added.
48
+
# route53_private_zone: true # Only used when cluster_vars.type == 'aws'. Defaults to true if not set.
49
49
# assign_public_ip: "yes"
50
50
# inventory_ip: "public" # 'public' or 'private', (private in case we're operating in a private LAN). If public, 'assign_public_ip' must be 'yes'
51
51
# instance_profile_name: ""
52
-
# route53_private_zone: true # Only used when cluster_vars.type == 'aws'. Defaults to true if not set.
# dns_zone_external: "{%- if dns_tld_external -%}{{_cloud_type}}-{{_region}}.{{app_class}}.{{buildenv}}.{{dns_tld_external}} {%- endif -%}"
91
+
# dns_cloud_internal_domain: "c.{{gcp_credentials_json.project_id}}.internal" # The cloud-internal zone as defined by the cloud provider (e.g. GCP, AWS)
92
+
# dns_nameserver_zone: &dns_nameserver_zone "" # The zone that dns_server will operate on. gcloud dns needs a trailing '.'. Leave blank if no external DNS (use IPs only)
93
+
# dns_user_domain: "{%- if _dns_nameserver_zone -%}MY.OTHER.PREFIXES.{{_dns_nameserver_zone}}{%- endif -%}" # A user-defined _domain_ part of the FDQN, (if more prefixes are required before the dns_nameserver_zone)
93
94
# dns_server: "" # Specify DNS server. nsupdate, route53 or clouddns. If empty string is specified, no DNS will be added.
94
95
# assign_public_ip: "yes"
95
96
# inventory_ip: "public" # 'public' or 'private', (private in case we're operating in a private LAN). If public, 'assign_public_ip' must be 'yes'
@@ -122,3 +123,4 @@ cluster_name: "{{app_name}}-{{buildenv}}" # Identifies the cluster within
dns_cloud_internal_domain: "{{_region}}.compute.internal"# The cloud-internal zone as defined by the cloud provider (e.g. GCP, AWS)
44
+
dns_nameserver_zone: &dns_nameserver_zone "" # The zone that dns_server will operate on. gcloud dns needs a trailing '.'. Leave blank if no external DNS (use IPs only)
45
+
dns_user_domain: "{%- if _dns_nameserver_zone -%}{{_cloud_type}}-{{_region}}.{{app_class}}.{{buildenv}}.{{_dns_nameserver_zone}}{%- endif -%}"# A user-defined _domain_ part of the FDQN, (if more prefixes are required before the dns_nameserver_zone)
41
46
dns_server: ""# Specify DNS server. nsupdate, route53 or clouddns. If empty string is specified, no DNS will be added.
47
+
route53_private_zone: true # Only used when cluster_vars.type == 'aws'. Defaults to true if not set.
42
48
assign_public_ip: "yes"
43
49
inventory_ip: "public"# 'public' or 'private', (private in case we're operating in a private LAN). If public, 'assign_public_ip' must be 'yes'
44
50
instance_profile_name: ""
45
-
route53_private_zone: true # Only used when cluster_vars.type == 'aws'. Defaults to true if not set.
dns_zone_external: "{%- if dns_tld_external -%}{{_cloud_type}}-{{_region}}.{{app_class}}.{{buildenv}}.{{dns_tld_external}} {%- endif -%}"
47
+
dns_cloud_internal_domain: "c.{{gcp_credentials_json.project_id}}.internal"# The cloud-internal zone as defined by the cloud provider (e.g. GCP, AWS)
48
+
dns_nameserver_zone: &dns_nameserver_zone "" # The zone that dns_server will operate on. gcloud dns needs a trailing '.'. Leave blank if no external DNS (use IPs only)
49
+
dns_user_domain: "{%- if _dns_nameserver_zone -%}{{_cloud_type}}-{{_region}}.{{app_class}}.{{buildenv}}.{{_dns_nameserver_zone}}{%- endif -%}"# A user-defined _domain_ part of the FDQN, (if more prefixes are required before the dns_nameserver_zone)
45
50
dns_server: ""# Specify DNS server. nsupdate, route53 or clouddns. If empty string is specified, no DNS will be added.
46
51
assign_public_ip: "yes"
47
52
inventory_ip: "public"# 'public' or 'private', (private in case we're operating in a private LAN). If public, 'assign_public_ip' must be 'yes'
0 commit comments