From 1dc21776ddba8dfe8b4544eaac7fc61513fe7870 Mon Sep 17 00:00:00 2001 From: Carsten Ehbrecht Date: Wed, 9 Sep 2020 23:00:06 +0200 Subject: [PATCH] added cleantempdir option --- etc/sample-emu-debug.yml | 12 ++++++++++++ etc/sample-vagrant.yml | 2 ++ etc/vagrant-cluster-with-rook.yml | 1 + group_vars/all | 1 + roles/pywps/templates/pywps.cfg.j2 | 1 + 5 files changed, 17 insertions(+) create mode 100644 etc/sample-emu-debug.yml diff --git a/etc/sample-emu-debug.yml b/etc/sample-emu-debug.yml new file mode 100644 index 0000000..c557fec --- /dev/null +++ b/etc/sample-emu-debug.yml @@ -0,0 +1,12 @@ +--- +db_install_postgresql: true +db_install_sqlite: false +# Configuration for Emu WPS +wps_services: + - name: emu + # repo: https://github.com/bird-house/emu.git + # version: master + hostname: localhost + port: 5000 + log_level: DEBUG + cleantempdir: false diff --git a/etc/sample-vagrant.yml b/etc/sample-vagrant.yml index e22e963..96593d3 100644 --- a/etc/sample-vagrant.yml +++ b/etc/sample-vagrant.yml @@ -17,3 +17,5 @@ wps_services: hostname: "{{ server_name }}" fs_hostname: "{{ server_name }}" port: 5000 + log_level: DEBUG + cleantempdir: false diff --git a/etc/vagrant-cluster-with-rook.yml b/etc/vagrant-cluster-with-rook.yml index deca7b0..f6b447f 100644 --- a/etc/vagrant-cluster-with-rook.yml +++ b/etc/vagrant-cluster-with-rook.yml @@ -21,3 +21,4 @@ wps_services: maxprocesses: 10000 parallelprocesses: 1000 log_level: DEBUG + cleantempdir: false diff --git a/group_vars/all b/group_vars/all index b2b994f..e76f923 100644 --- a/group_vars/all +++ b/group_vars/all @@ -105,6 +105,7 @@ wps_services: [] # parallelprocesses: 4 # mode: default # log_level: INFO + # cleantempdir: true # database: "{{ wps_database }}" # # outputurl: http://somewhere.earth/outputs # optional # extra_config: | diff --git a/roles/pywps/templates/pywps.cfg.j2 b/roles/pywps/templates/pywps.cfg.j2 index 03e7b0d..3ad5768 100644 --- a/roles/pywps/templates/pywps.cfg.j2 +++ b/roles/pywps/templates/pywps.cfg.j2 @@ -24,6 +24,7 @@ parallelprocesses = {{ item.parallelprocesses | default('4') }} outputpath= {{ wps_basedir }}/outputs/{{ item.name }} workdir={{ wps_basedir }}/tmp/{{ item.name }} sethomedir={{ item.sethomedir | default('false') }} +cleantempdir={{ item.cleantempdir | default('true') }} [processing] mode={{ item.mode | default('default')}}