added pga_repo var
changed the pga repo url to live in group_vars/all, since
this may need to be changed on a per-gateway basis - I'd
assume that individual gateway owners will change things like
the appearance, etc.
MODIFY
dev-tools/ansible/group_vars/all.yml
dev-tools/ansible/group_vars/all.yml
@@ -90,3 +90,5 @@ gfac_dir: "{{ deployment_dir }}/gfac-instance"
monitor_email_address: "test.airavata@gmail.com"
monitor_email_password: "airavata"
+# PGA variables
+pga_repo: "https://github.com/apache/airavata-php-gateway.git"

MODIFY
dev-tools/ansible/roles/pga/tasks/main.yml
dev-tools/ansible/roles/pga/tasks/main.yml
file: path="{{ doc_root_dir }}" state=directory
become: yes
-- debug:
- var: ansible_distribution_version
-
- include: install_deps_{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.yml
# - name: Check previous deployments
# stat: path="{{ doc_root_dir }}" get_md5=no get_checksum=no
# register: check
-- name: delete previous deployments
- file: path="{{ doc_root_dir }}" state=absent
+# Why? if it's new, we just created this dir above...
+# if not, can just pull from the git repo in the next task...
+#- name: delete previous deployments
+# file: path="{{ doc_root_dir }}" state=absent
- name: Git clone php gateway
- git: repo=https://github.com/apache/airavata-php-gateway.git
- dest="{{ doc_root_dir }}" version="{{ git_branch }}"
+ git:
+ repo: "{{ pga_repo }}"
+ dest: "{{ doc_root_dir }}"
+ version: "{{ git_branch }}"
+ update: yes
+ force: yes
become: yes
- name: Create user data dir {{ user_data_dir }}

added pga_repo var

changed the pga repo url to live in group_vars/all, since
this may need to be changed on a per-gateway basis - I'd
assume that individual gateway owners will change things like
the appearance, etc.