Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to support "flamingo" bird #140

Merged
merged 14 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
- role: arillso.logrotate
- name: roocs
when: roocs_enabled
- name: flamingo
when: flamingo_enabled

- name: Install a PyWPS worker
hosts: worker
Expand All @@ -60,3 +62,5 @@
wps_webservice_enabled: false
- name: roocs
when: roocs_enabled
- name: flamingo
when: flamingo_enabled
26 changes: 26 additions & 0 deletions roles/flamingo/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
- name: Stat the test data directory
stat:
path: "/badc"
register: stat_test_data

- name: Clone test data.
git:
repo: "https://github.com/cedadev/mini-ceda-archive.git"
version: "main"
dest: "/tmp/mini-ceda-archive"
update: yes
force: yes
run_once: true
when: flamingo_site == "demo" and not stat_test_data.stat.exists

- name: Move test data to archive location
command: "mv -f /tmp/mini-ceda-archive/archive/badc /"
run_once: true
when: flamingo_site == "demo" and not stat_test_data.stat.exists

- name: Copy flamingo (roocs) config
template:
src: "./templates/flamingo.ini.j2"
dest: "/etc/roocs.ini"

21 changes: 21 additions & 0 deletions roles/flamingo/templates/flamingo.ini.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[project:cru_ts]
base_dir = /badc/cru/data/cru_ts
file_name_template = {__derive__var_id}_{frequency}_{__derive__time_range}.{__derive__extension}
fixed_path_mappings =
cru_ts.4.04.cld:cru_ts_4.04/data/cld/*.nc
cru_ts.4.04.dtr:cru_ts_4.04/data/dtr/*.nc
cru_ts.4.04.frs:cru_ts_4.04/data/frs/*.nc
cru_ts.4.04.pet:cru_ts_4.04/data/pet/*.nc
cru_ts.4.04.pre:cru_ts_4.04/data/pre/*.nc
cru_ts.4.04.tmn:cru_ts_4.04/data/tmn/*.nc
cru_ts.4.04.tmp:cru_ts_4.04/data/tmp/*.nc
cru_ts.4.04.tmx:cru_ts_4.04/data/tmx/*.nc
cru_ts.4.04.vap:cru_ts_4.04/data/vap/*.nc
cru_ts.4.04.wet:cru_ts_4.04/data/wet/*.nc
attr_defaults =
frequency:mon
facet_rule = project version_major version_minor variable

[clisops:write]
#output_staging_dir = /gws/smf/j04/cp4cds1/c3s_34e/rook_prod_cache

4 changes: 4 additions & 0 deletions roles/roocs/templates/roocs.ceda.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ base_dir = /badc/cmip6/data/CMIP6

[project:c3s-cordex]
base_dir = /gws/nopw/j04/cp4cds1_vol1/data/c3s-cordex

[clisops:write]
output_staging_dir = /gws/smf/j04/cp4cds1/c3s_34e/rook_prod_cache