added dev portal
diff --git a/tasks/main.yml b/tasks/main.yml index 315ff6a..8069053 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -18,6 +18,11 @@ path: "{{ opdk_installation_config_file | dirname }}" state: directory +- name: Construct name of dev portal response file + cache: + key: 'opdk_installation_config_file' + value: '{{ opdk_installer_path }}/edge-response-{{ opdk_version }}-{{ region }}.conf' + - name: Construct the silent-install file template: src: 'silent-install.conf.j2'
diff --git a/templates/silent-install.conf.j2 b/templates/silent-install.conf.j2 index 470a440..06e140f 100644 --- a/templates/silent-install.conf.j2 +++ b/templates/silent-install.conf.j2
@@ -21,14 +21,7 @@ ENABLE_AX={{ opdk_enable_ax }} MP_POD={{ opdk_mp_pod | default(default_mp_pod) }} -{# TODO: Build a module that discover the region of the inventory_hostname and update the REGION dynamically #} -{% if groups['dc-1'] is defined and inventory_hostname in groups['dc-1'] %} -REGION=dc-1 -{% elif groups['dc-2'] is defined and inventory_hostname in groups['dc-2'] %} -REGION=dc-2 -{% elif groups['dc-3'] is defined and inventory_hostname in groups['dc-3'] %} -REGION=dc-3 -{% endif %} +REGION={{ region }} USE_ZK_CLUSTER={{ opdk_use_zk_cluster }} {# TODO: Build a module to construct the ZK_HOSTS value#}