From c319a2ca897c67b5891698726297433e8b449d02 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 5 Apr 2018 14:50:32 +0200 Subject: [PATCH] Basic role that installs the smaph catalina context. --- smaph/defaults/main.yml | 3 +++ smaph/tasks/main.yml | 6 ++++++ smaph/templates/catalina-smaph.xml.j2 | 9 +++++++++ 3 files changed, 18 insertions(+) create mode 100644 smaph/defaults/main.yml create mode 100644 smaph/tasks/main.yml create mode 100644 smaph/templates/catalina-smaph.xml.j2 diff --git a/smaph/defaults/main.yml b/smaph/defaults/main.yml new file mode 100644 index 00000000..f29a89f5 --- /dev/null +++ b/smaph/defaults/main.yml @@ -0,0 +1,3 @@ +--- +# smaph_service_token: Use a vault file +smaph_db_base_dir: /var/lib/smaph_data diff --git a/smaph/tasks/main.yml b/smaph/tasks/main.yml new file mode 100644 index 00000000..87b963df --- /dev/null +++ b/smaph/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- block: + - name: Install the catalina configuration needed by smaph + template: src=catalina-smaph.xml.j2 dest={{ smartgears_instance_path }}/conf/Catalina/localhost/smaph.xml + + tags: [ 'smaph', 'tomcat' ] \ No newline at end of file diff --git a/smaph/templates/catalina-smaph.xml.j2 b/smaph/templates/catalina-smaph.xml.j2 new file mode 100644 index 00000000..dbec3ad8 --- /dev/null +++ b/smaph/templates/catalina-smaph.xml.j2 @@ -0,0 +1,9 @@ + + + + WEB-INF/web.xml + + + + +