You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2022/01/07 20:50:42 UTC

[airavata-data-lake] branch master updated: Minor ansible fixes

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-data-lake.git


The following commit(s) were added to refs/heads/master by this push:
     new d3c0a8b  Minor ansible fixes
d3c0a8b is described below

commit d3c0a8b1faf33344caa66882504acb89dea25ec6
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Fri Jan 7 15:50:14 2022 -0500

    Minor ansible fixes
---
 ansible/inventories/prod-deployment/group_vars/all/vars.yml |  2 +-
 ansible/roles/kafka/templates/server.properties.j2          |  4 ++--
 ansible/roles/workflow-engine/tasks/main.yml                | 12 ++++++++++++
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ansible/inventories/prod-deployment/group_vars/all/vars.yml b/ansible/inventories/prod-deployment/group_vars/all/vars.yml
index c472734..41e37d0 100644
--- a/ansible/inventories/prod-deployment/group_vars/all/vars.yml
+++ b/ansible/inventories/prod-deployment/group_vars/all/vars.yml
@@ -50,7 +50,7 @@ custos_git_branch: develop
 
 mft_default_agent_id: agent0
 mft_default_agent_host: "{{ ansible_default_ipv4.address }}"
-mft_default_agent_advertised_url: https://beta.iubemcenter.scigap.org:8443/downloads
+mft_default_agent_advertised_url: https://scigap12.sciencegateways.iu.edu:8443/downloads
 mft_default_agent_port: 3333
 
 mft_api_service_host: localhost
diff --git a/ansible/roles/kafka/templates/server.properties.j2 b/ansible/roles/kafka/templates/server.properties.j2
index ae27bb4..eb66dbf 100644
--- a/ansible/roles/kafka/templates/server.properties.j2
+++ b/ansible/roles/kafka/templates/server.properties.j2
@@ -28,12 +28,12 @@ broker.id={{ broker_id }}
 #     listeners = listener_name://host_name:port
 #   EXAMPLE:
 #     listeners = PLAINTEXT://your.host.name:9092
-listeners=PLAINTEXT://{{ ansible_default_ipv4.address }}:{{ kafka_listener_port }}
+listeners=PLAINTEXT://0.0.0.0:{{ kafka_listener_port }}
 
 # Hostname and port the broker will advertise to producers and consumers. If not set,
 # it uses the value for "listeners" if configured.  Otherwise, it will use the value
 # returned from java.net.InetAddress.getCanonicalHostName().
-#advertised.listeners=PLAINTEXT://your.host.name:9092
+advertised.listeners=PLAINTEXT://{{ kafka_url }}
 
 # Maps listener names to security protocols, the default is for them to be the same. See the config documentation for more details
 #listener.security.protocol.map=PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
diff --git a/ansible/roles/workflow-engine/tasks/main.yml b/ansible/roles/workflow-engine/tasks/main.yml
index f5f3071..35f6517 100644
--- a/ansible/roles/workflow-engine/tasks/main.yml
+++ b/ansible/roles/workflow-engine/tasks/main.yml
@@ -41,6 +41,18 @@
   become: yes
   become_user: "{{ user }}"
 
+- name: Delete lib directories of the distributions
+  file:
+    state: absent
+    path: "{{ workflow_deployment_dir }}/{{ item }}"
+  with_items:
+    - "WF-Manager-{{datalake_distribution_version}}/lib"
+    - "WF-Controller-{{datalake_distribution_version}}/lib"
+    - "WF-Worker-{{datalake_distribution_version}}/lib"
+  become: yes
+  become_user: "{{ user }}"
+  ignore_errors: yes
+
 - name: Copy Workflow distributions to Workflow deployment directory
   unarchive: "src={{ datalake_source_dir }}/{{ item }}
               dest={{ workflow_deployment_dir }}/ copy=no"