-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update EXAMPLE files. Update Jenkinsfile_testsuite. Allow omission of…
… GCP rootvol_size
- Loading branch information
Dougal Seeley
committed
Jan 21, 2021
1 parent
24a6078
commit 1a9583f
Showing
15 changed files
with
236 additions
and
208 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
EXAMPLE/cluster_defs/aws/eu-west-1/testid/cluster_vars__clusterid.yml
This file was deleted.
Oops, something went wrong.
86 changes: 0 additions & 86 deletions
86
EXAMPLE/cluster_defs/aws/eu-west-1/testid/sandbox/cluster_vars__buildenv.yml
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
EXAMPLE/cluster_defs/aws/testid/cluster_vars__clusterid.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
|
||
prometheus_node_exporter_install: false | ||
filebeat_install: false | ||
metricbeat_install: false | ||
|
||
beats_config: | ||
filebeat: | ||
# output_logstash_hosts: ["localhost:5044"] # The destination hosts for filebeat-gathered logs | ||
# extra_logs_paths: # The array is optional, if you need to add more paths or files to scrape for logs | ||
# - /var/log/myapp/*.log | ||
metricbeat: | ||
# output_logstash_hosts: ["localhost:5044"] # The destination hosts for metricbeat-gathered metrics | ||
# diskio: # Diskio retrieves metrics for all disks partitions by default. When diskio.include_devices is defined, only look for defined partitions | ||
# include_devices: ["sda", "sdb", "nvme0n1", "nvme1n1", "nvme2n1"] | ||
|
||
|
||
cluster_vars: | ||
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) | ||
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) | ||
dns_server: "" # Specify DNS server. nsupdate, route53 or clouddns. If empty string is specified, no DNS will be added. | ||
instance_profile_name: "" | ||
custom_tagslabels: | ||
inv_resident_id: "myresident" | ||
inv_proposition_id: "myproposition" | ||
inv_cost_centre: "0000000000" | ||
_dns_nameserver_zone: *dns_nameserver_zone |
5 changes: 5 additions & 0 deletions
5
EXAMPLE/cluster_defs/aws/testid/eu-west-1/cluster_vars__region.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
|
||
cluster_vars: | ||
image: "ami-04ffbabc7935ec0e9" # eu-west-1, ubuntu, 20.04, amd64, hvm-ssd, 20210108. Ubuntu images can be located at https://cloud-images.ubuntu.com/locator/ | ||
# image: "ami-0b850cf02cc00fdc8" # eu-west-1, CentOS7 |
93 changes: 93 additions & 0 deletions
93
EXAMPLE/cluster_defs/aws/testid/eu-west-1/sandbox/cluster_vars__buildenv.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
|
||
## Bind configuration and credentials, per environment | ||
bind9: | ||
sandbox: {server: "", key_name: "", key_secret: ""} | ||
|
||
cluster_vars: | ||
sandbox: | ||
aws_access_key: !vault | | ||
$ANSIBLE_VAULT;1.2;AES256;sandbox | ||
7669080460651349243347331538721104778691266429457726036813912140404310 | ||
aws_secret_key: !vault | | ||
$ANSIBLE_VAULT;1.2;AES256;sandbox | ||
7669080460651349243347331538721104778691266429457726036813912140404310 | ||
ssh_connection_cfg: | ||
host: &host_ssh_connection_cfg | ||
ansible_user: "ansible" | ||
ansible_ssh_private_key_file: !vault | | ||
$ANSIBLE_VAULT;1.2;AES256;sandbox | ||
7669080460651349243347331538721104778691266429457726036813912140404310 | ||
bastion: | ||
ssh_args: '-o ProxyCommand="ssh -i ./id_rsa_bastion -W %h:%p -q [email protected]"' | ||
ssh_priv_key: !vault | | ||
$ANSIBLE_VAULT;1.2;AES256;sandbox | ||
7669080460651349243347331538721104778691266429457726036813912140404310 | ||
vpc_name: "test{{buildenv}}" | ||
vpc_subnet_name_prefix: "{{buildenv}}-test-{{region}}" | ||
key_name: "test__id_rsa" | ||
termination_protection: "no" | ||
|
||
hosttype_vars: | ||
sys: | ||
auto_volumes: [ ] | ||
flavor: t3a.nano | ||
version: "{{sys_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
sysdisks2: | ||
auto_volumes: | ||
- { device_name: "/dev/sda1", mountpoint: "/", fstype: "ext4", "volume_type": "gp2", "volume_size": 9, encrypted: True, "delete_on_termination": true } | ||
- { device_name: "/dev/sdf", mountpoint: "/media/mysvc", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true, perms: { owner: "root", group: "root", mode: "775" } } | ||
- { device_name: "/dev/sdg", mountpoint: "/media/mysvc2", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true } | ||
flavor: t3a.nano | ||
version: "{{sysdisks_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
sysdisks3: | ||
auto_volumes: | ||
- { device_name: "/dev/sdf", mountpoint: "/media/mysvc", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true } | ||
- { device_name: "/dev/sdg", mountpoint: "/media/mysvc2", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true } | ||
- { device_name: "/dev/sdh", mountpoint: "/media/mysvc3", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true } | ||
flavor: t3a.nano | ||
version: "{{sysdisks_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
hostnvme-multi: | ||
auto_volumes: | ||
- { device_name: "/dev/sdb", mountpoint: "/media/mysvc", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral0 } | ||
- { device_name: "/dev/sdc", mountpoint: "/media/mysvc2", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral1 } | ||
- { device_name: "/dev/sdf", mountpoint: "/media/mysvc8", fstype: "ext4", "volume_type": "gp2", "volume_size": 1, encrypted: True, "delete_on_termination": true } | ||
flavor: i3en.2xlarge | ||
version: "{{sys_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
hostnvme-lvm: | ||
auto_volumes: | ||
- { device_name: "/dev/sdb", mountpoint: "/media/data", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral0 } | ||
- { device_name: "/dev/sdc", mountpoint: "/media/data", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral1 } | ||
lvmparams: { vg_name: "vg0", lv_name: "lv0", lv_size: "+100%FREE" } | ||
flavor: i3en.2xlarge | ||
version: "{{sys_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
hosthdd-multi: | ||
auto_volumes: | ||
- { device_name: "/dev/sdb", mountpoint: "/media/mysvc", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral0 } | ||
- { device_name: "/dev/sdc", mountpoint: "/media/mysvc2", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral1 } | ||
- { device_name: "/dev/sdd", mountpoint: "/media/mysvc3", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral2 } | ||
flavor: d2.xlarge | ||
version: "{{sys_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
hosthdd-lvm: | ||
auto_volumes: | ||
- { device_name: "/dev/sdb", mountpoint: "/media/data", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral0 } | ||
- { device_name: "/dev/sdc", mountpoint: "/media/data", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral1 } | ||
- { device_name: "/dev/sdd", mountpoint: "/media/data", fstype: "ext4", "volume_type": "ephemeral", ephemeral: ephemeral2 } | ||
lvmparams: { vg_name: "vg0", lv_name: "lv0", lv_size: "+100%FREE" } | ||
flavor: d2.xlarge | ||
version: "{{sys_version | default('')}}" | ||
vms_by_az: { a: 1, b: 1, c: 0 } | ||
|
||
_host_ssh_connection_cfg: { <<: *host_ssh_connection_cfg } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 18 additions & 6 deletions
24
EXAMPLE/cluster_defs/gcp/europe-west1/testid/cluster_vars__clusterid.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
--- | ||
|
||
prometheus_node_exporter_install: false | ||
filebeat_install: false | ||
metricbeat_install: false | ||
|
||
beats_config: | ||
filebeat: | ||
# output_logstash_hosts: ["localhost:5044"] # The destination hosts for filebeat-gathered logs | ||
# extra_logs_paths: # The array is optional, if you need to add more paths or files to scrape for logs | ||
# - /var/log/myapp/*.log | ||
metricbeat: | ||
# output_logstash_hosts: ["localhost:5044"] # The destination hosts for metricbeat-gathered metrics | ||
# diskio: # Diskio retrieves metrics for all disks partitions by default. When diskio.include_devices is defined, only look for defined partitions | ||
# include_devices: ["sda", "sdb", "nvme0n1", "nvme1n1", "nvme2n1"] | ||
|
||
|
||
cluster_vars: | ||
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) | ||
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) | ||
custom_tagslabels: | ||
territory: "uk" | ||
cost_centre: &cost_centre "0000000000" | ||
billing_team: "" | ||
service: &service "" | ||
inv_resident_id: *service | ||
inv_cost_centre: *cost_centre | ||
inv_resident_id: "myresident" | ||
inv_proposition_id: "myproposition" | ||
inv_cost_centre: "0000000000" | ||
_dns_nameserver_zone: *dns_nameserver_zone |
Oops, something went wrong.