From 35629ea4df1cd1e0af4b8af73c3eda8b76292b40 Mon Sep 17 00:00:00 2001 From: Tyler Poland Date: Mon, 19 Sep 2022 19:34:43 -0400 Subject: [PATCH] converting azure_availability_set from operations to overlay (#207) --- hooks/blueprint | 2 +- operations/azure_availability_sets.yml | 39 ------------------- overlay/azure_availability_sets.yml | 52 ++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 40 deletions(-) delete mode 100644 operations/azure_availability_sets.yml create mode 100644 overlay/azure_availability_sets.yml diff --git a/hooks/blueprint b/hooks/blueprint index 9b2063e7..8dc7a571 100755 --- a/hooks/blueprint +++ b/hooks/blueprint @@ -570,7 +570,7 @@ if ! want_feature "bare" ; then fi manifest+=( \ "cf-deployment/operations/azure.yml" - "operations/azure_availability_sets.yml" \ + "overlay/azure_availability_sets.yml" \ ) ;; warden) diff --git a/operations/azure_availability_sets.yml b/operations/azure_availability_sets.yml deleted file mode 100644 index 851e1ea9..00000000 --- a/operations/azure_availability_sets.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- -# Use this override to setup the availability sets in Azure -- type: replace - path: /instance_groups/name=nats/instances/vm_extensions?/- - value: nats_as -- type: replace - path: /instance_groups/name=diego-api/instances/vm_extensions?/- - value: diego_api_as -- type: replace - path: /instance_groups/name=uaa/instances/vm_extensions?/- - value: uaa_as -- type: replace - path: /instance_groups/name=scheduler/instances/vm_extensions?/- - value: scheduler_as -- type: replace - path: /instance_groups/name=diego-cell/instances/vm_extensions?/- - value: diego_cell_as -- type: replace - path: /instance_groups/name=router/instances/vm_extensions?/- - value: router_as -- type: replace - path: /instance_groups/name=api/instances/vm_extensions?/- - value: api_as -- type: replace - path: /instance_groups/name=cc-worker/instances/vm_extensions?/- - value: cc_worker_as -- type: replace - path: /instance_groups/name=doppler/instances/vm_extensions?/- - value: doppler_as -- type: replace - path: /instance_groups/name=log-api/instances/vm_extensions?/- - value: log_api_as -- type: replace - path: /instance_groups/name=tcp-router/instances/vm_extensions?/- - value: tcp_router_as -- type: replace - path: /instance_groups/name=credhub/instances/vm_extensions?/- - value: credhub_as - diff --git a/overlay/azure_availability_sets.yml b/overlay/azure_availability_sets.yml new file mode 100644 index 00000000..91b63a1b --- /dev/null +++ b/overlay/azure_availability_sets.yml @@ -0,0 +1,52 @@ +--- +# Use this override to setup the availability sets in Azure +instance_groups: +- name: nats + vm_extensions: + - (( append )) + - nats_as +- name: diego-api + vm_extensions: + - (( append )) + - diego_api_as +- name: uaa + vm_extensions: + - (( append )) + - uaa_as +- name: scheduler + vm_extensions: + - (( append )) + - scheduler_as +- name: diego-cell + vm_extensions: + - (( append )) + - diego_cell_as +- name: router + vm_extensions: + - (( append )) + - router_as +- name: api + vm_extensions: + - (( append )) + - api_as +- name: cc-worker + vm_extensions: + - (( append )) + - cc_worker_as +- name: doppler + vm_extensions: + - (( append )) + - doppler_as +- name: log-api + vm_extensions: + - (( append )) + - log_api_as +- name: tcp-router + vm_extensions: + - (( append )) + - tcp_router_as +- name: credhub + vm_extensions: + - (( append )) + - credhub_as +