Skip to content

Commit 7fdb45f

Browse files
authored
Introduce env.datalake.version as a key to pin the version of CDP Datalake requested during deployment. (#3)
Subsequent code fetches the actually deployed version of the Datalake to ensure compatibility Signed-off-by: Daniel Chaffelson <chaffelson@gmail.com>
1 parent a0ed003 commit 7fdb45f

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

roles/platform/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ plat__cdp_iam_user_group_roles: "{{ env.cdp.user_group.roles | def
8080
plat__cdp_iam_user_group_resource_roles: "{{ env.cdp.user_group.resource_roles | default(plat__cdp_iam_user_group_resource_roles_default) }}"
8181

8282
plat__datalake_name: "{{ common__datalake_name }}"
83+
plat__datalake_version: "{{ env.datalake.version | default(omit) }}"
8384
plat__datalake_user_sync: "{{ env.datalake.user_sync | default(True) }}"
8485

8586
plat__cdp_xaccount_external_id: "{{ env.cdp.cross_account.external_id | default(False) }}"

roles/platform/tasks/setup_aws_datalake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
env: "{{ plat__env_name }}"
2121
instance_profile: "{{ plat__aws_idbroker_instance_profile_arn }}"
2222
storage: "{{ plat__aws_storage_location }}"
23+
runtime: "{{ plat__datalake_version | default(omit) }}"
2324
tags: "{{ plat__tags }}"
2425
state: present
2526

roles/platform/tasks/setup_azure_datalake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
env: "{{ plat__env_name }}"
2121
managed_identity: "{{ __azure_idbroker_identity_uri }}"
2222
storage: "{{ plat__azure_stor_data_uri }}"
23+
runtime: "{{ plat__datalake_version | default(omit) }}"
2324
tags: "{{ plat__tags }}"
2425
state: present

roles/platform/tasks/setup_gcp_datalake.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
env: "{{ plat__env_name }}"
2121
managed_identity: "{{ plat__gcp_idbroker_identity_name }}@{{ plat__gcp_project }}.iam.gserviceaccount.com"
2222
storage: "gs://{{ plat__gcp_storage_location_data }}"
23+
runtime: "{{ plat__datalake_version | default(omit) }}"
2324
tags: "{{ plat__tags }}"
2425
state: present

0 commit comments

Comments
 (0)