Skip to content

Commit 6cf8299

Browse files
authored
Update biocollect and ecodata roles for the LA community (#562)
1 parent 074f4a6 commit 6cf8299

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

ansible/ecodata.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- hosts: all
1+
- hosts: ecodata,ecodata-reporting,primary,secondary
22
vars:
33
tomcat: "tomcat7"
44
tomcat_user: "tomcat7"

ansible/roles/apikey/tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
- { app: "specieslists", apikey: "{{ speciesList_api_key }}" }
116116
- { app: "pipelines", apikey: "{{ pipelines_api_key | default('') }}" }
117117
- { app: "data-quality", apikey: "{{ data_quality_api_key | default('') }}" }
118+
- { app: "ecodata", apikey: "{{ ecodata_api_key | default('') }}" }
118119
loop_control:
119120
loop_var: oitem
120121
when: apikey_def_creator_email is defined and apikey_def_creator_userid is defined and oitem.apikey|length > 0

ansible/roles/biocollect/tasks/main.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
tags:
33
- deploy
44
- biocollect
5+
- properties
56

67
- name: set biocollect_user as default value
78
set_fact:
89
biocollect_user: "{{ (exec_jar) | ternary ('biocollect', 'tomcat')}}"
910
tags:
1011
- biocollect
1112
- deploy
12-
13+
- properties
1314

1415
- name: add jar and service
1516
include_role:
@@ -123,7 +124,7 @@
123124
- path: "{{ biocollect_context_path | default('/') }}"
124125
is_proxy: true
125126
sort_label: "tomcatproxy"
126-
proxy_pass: "http://127.0.0.1:8080"
127+
proxy_pass: "http://127.0.0.1:{{ biocollect_server_port }}"
127128
tags:
128129
- nginx_vhost
129130
- deploy

ansible/roles/biocollect/templates/biocollect-config.properties

+6-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ server.port={{ biocollect_tomcat_server_port | default ('8080', True) }}
1717

1818
enableReporting = true
1919
app.default.hub=ala
20-
biocollect.homepageUrl={{ biocollect_homepage_url }}
20+
biocollect.homepageUrl={{ biocollect_homepage_url | default ('') }}
2121

2222
ecodata.baseURL={{ ecodata_base_url }}
2323
ecodata.baseUrl={{ ecodata_base_url }}
@@ -32,20 +32,21 @@ upload.images.url={{ biocollect_base_url }}/image?id=
3232
# Add no cache headers to pages generated by controllers
3333
app.view.nocache = true
3434

35-
3635
# Spatial portal config
3736
spatial.baseUrl={{ spatial_base_url }}
3837

3938
ala.image.service.url={{ images_base_url | default('http://images-dev.ala.org.au/') }}
39+
images.baseURL={{ image_service_url | default("https://images.ala.org.au") }}
40+
41+
collectory.service.url={{ collectory_url | default('https://collections.ala.org.au') }}
4042

4143
# Mail config
4244
grails.mail.host={{ mail_host | default('act-ironport-int.csiro.au') }}
4345
grails.mail.port={{ mail_port | default('25') }}
4446
emailFilter={{ mail_filter | default('/[A-Z0-9._%-]+@csiro\.au|chris\.godwin\[email protected]|[email protected]/') }}
4547
biocollect.support.email.address = {{ biocollect_support_email }}
46-
biocollect.system.email.replyTo = biocollect-{{ (deployment_env == 'prod') | ternary('', deployment_env) }}<no-reply>@ala.org.au
47-
biocollect.system.email.sender = biocollect-({{ (deployment_env == 'prod') | ternary('', deployment_env) }})@ala.org.au
48-
48+
biocollect.system.email.replyTo = {{ noreply_email | default( 'biocollect-' + (deployment_env == 'prod') | ternary('', deployment_env) + '<no-reply>@ala.org.au' ) }}
49+
biocollect.system.email.sender = {{ email_sender | default( 'biocollect-' + (deployment_env == 'prod') | ternary('', deployment_env) + '@ala.org.au' ) }}
4950

5051
# Sighting Plugin specific properties
5152
spatial.baseURL={{ spatial_base_url }}

ansible/roles/ecodata/tasks/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
tags:
33
- ecodata
44
- deploy
5+
- properties
56

67
- name: set ecodata_user as default value
78
set_fact:
89
ecodata_user: "{{ (exec_jar) | ternary ('ecodata', 'tomcat7')}}"
910
tags:
1011
- ecodata
1112
- deploy
13+
- properties
1214

1315
#
1416
# External configuration directories and files

ansible/roles/ecodata/templates/ecodata-config.properties

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ server.port={{ ecodata_tomcat_server_port | default ('8080', True) }}
44

55
gateway=false
66
security.cas.appServerName={{ecodata_url}}
7+
security.cas.casServerName={{ auth_base_url }}
8+
security.cas.casServerLoginUrl={{ auth_base_url }}/cas/login
9+
security.cas.casServerUrlPrefix={{ auth_base_url }}/cas
10+
security.cas.logoutUrl={{ auth_base_url }}/cas/logout
11+
security.cas.loginUrl={{ auth_base_url }}/cas/login
12+
userDetailsSingleUrl = {{ auth_base_url }}/userdetails/userDetails/getUserDetails
13+
userDetailsUrl = {{ auth_base_url }}/userdetails/userDetails/getUserListFull
14+
userDetails.admin.url = {{ auth_base_url }}/userdetails/ws/admin
15+
716
app.api.whiteList={{ app_api_whiteList | default('') }}
817
imagesService.baseURL={{ imagesService_baseURL }}
918
biocacheService.baseURL={{ biocacheService_baseUrl }}
@@ -25,12 +34,13 @@ grails.mail.host={{ mail_host | default('localhost') }}
2534
grails.mail.port={{ mail_port | default('25') }}
2635
emailFilter={{ mail_filter | default('') }}
2736
ecodata.support.email.address = {{ ecodata_support_email }}
28-
ecodata.system.email.replyTo = ALA-{{ deployment_env == 'prod' | ternary('', deployment_env) }}<no-reply>@ala.org.au>
29-
ecodata.system.email.sender = ALA({{ deployment_env == 'prod' | ternary('', deployment_env) }})@ala.org.au
37+
ecodata.system.email.replyTo = {{ noreply_email | default( 'ALA-' + (deployment_env == 'prod') | ternary('', deployment_env) + '<no-reply>@ala.org.au' ) }}
38+
ecodata.system.email.sender = {{ email_sender | default( 'ALA-' + (deployment_env == 'prod') | ternary('', deployment_env) + '@ala.org.au' ) }}
3039

3140
# URL to use to download asynchronously produced files
3241
async.download.url.prefix={{ biocollect_base_url }}/
3342

43+
biocollect.baseURL = {{ biocollect_base_url }}
3444
# Biocollect Project Url for species alert
3545
biocollect.project.url = {{ biocollect_base_url }}/project/index/
3646
biocollect.activity.url = {{ biocollect_base_url }}/bioActivity/index/
@@ -75,3 +85,5 @@ elasticsearch.primary = {{ elasticsearch_primary_server }}
7585
elasticsearch.username = {{ es_api_basic_auth_username }}
7686
elasticsearch.password = {{ es_api_basic_auth_password }}
7787

88+
ala.baseURL={{ ala_base_url | default('https://www.ala.org.au')}}
89+
headerAndFooter.baseURL={{ header_and_footer_baseurl | default('https://www.ala.org.au/commonui-bs3')}}

0 commit comments

Comments
 (0)