From fa9c07b4fc8009ff30250d29e2089453ee4d67c0 Mon Sep 17 00:00:00 2001 From: GraceRuan Date: Thu, 9 May 2024 08:51:20 -0700 Subject: [PATCH 1/2] add log level in playbook --- generators/pd-ansible-playbook/templates/playbook.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generators/pd-ansible-playbook/templates/playbook.yaml b/generators/pd-ansible-playbook/templates/playbook.yaml index e7eb716..0a26feb 100644 --- a/generators/pd-ansible-playbook/templates/playbook.yaml +++ b/generators/pd-ansible-playbook/templates/playbook.yaml @@ -1,6 +1,6 @@ --- - name: <%= projectName %>/<%= serviceName %> - hosts: tomcat-servers + hosts: "{{ tomcat_server_hosts }}" collections: - polaris.deploy vars_files: @@ -39,6 +39,7 @@ vars: webapp_war: context: "{{ context }}" + webapp_root_log_level: "{{ log_level_root | default('INFO') }}" proxy_env: "{{ env_vars }}" # create a WebADE connection jar for the container From 7c415e5fabcd2325066556f12b957f9d220dfe75 Mon Sep 17 00:00:00 2001 From: GraceRuan Date: Thu, 9 May 2024 08:56:58 -0700 Subject: [PATCH 2/2] add log_level_root for each env --- generators/pd-ansible-playbook/templates/vars/custom/dev.yaml | 2 ++ generators/pd-ansible-playbook/templates/vars/custom/prod.yaml | 1 + generators/pd-ansible-playbook/templates/vars/custom/test.yaml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/generators/pd-ansible-playbook/templates/vars/custom/dev.yaml b/generators/pd-ansible-playbook/templates/vars/custom/dev.yaml index 209a278..a760687 100644 --- a/generators/pd-ansible-playbook/templates/vars/custom/dev.yaml +++ b/generators/pd-ansible-playbook/templates/vars/custom/dev.yaml @@ -1 +1,3 @@ # Use this file for custom variables related to your webapp +# tomcat_server_hosts: tomcat-servers-fusilli +log_level_root: DEBUG \ No newline at end of file diff --git a/generators/pd-ansible-playbook/templates/vars/custom/prod.yaml b/generators/pd-ansible-playbook/templates/vars/custom/prod.yaml index 209a278..a27f47e 100644 --- a/generators/pd-ansible-playbook/templates/vars/custom/prod.yaml +++ b/generators/pd-ansible-playbook/templates/vars/custom/prod.yaml @@ -1 +1,2 @@ # Use this file for custom variables related to your webapp +# tomcat_server_hosts: tomcat-servers-penne \ No newline at end of file diff --git a/generators/pd-ansible-playbook/templates/vars/custom/test.yaml b/generators/pd-ansible-playbook/templates/vars/custom/test.yaml index 209a278..8bc11da 100644 --- a/generators/pd-ansible-playbook/templates/vars/custom/test.yaml +++ b/generators/pd-ansible-playbook/templates/vars/custom/test.yaml @@ -1 +1,3 @@ # Use this file for custom variables related to your webapp +# tomcat_server_hosts: tomcat-servers-ravioli +log_level_root: DEBUG \ No newline at end of file