From ce24a1ed4181b5e195cdecdc16fe9ad4548db17b Mon Sep 17 00:00:00 2001 From: W Date: Wed, 24 Apr 2024 11:46:23 +0100 Subject: [PATCH] .. --- ansible/group_vars/server_type_oasys_web.yml | 1 + ansible/roles/oasys-ords/defaults/main.yml | 10 ++++++--- ansible/roles/oasys-ords/tasks/files.yml | 2 +- .../oasys-ords/templates/doc_root/favicon.ico | Bin 0 -> 15406 bytes .../templates/doc_root/index_message.html.j2 | 19 ++++++++++++++---- .../doc_root/index_no_message.html.j2 | 19 ++++++++++++++---- .../doc_root/preproduction-index.html.j2 | 19 ++++++++++++++---- .../doc_root/production-index.html.j2 | 19 ++++++++++++++---- .../templates/doc_root/t1-index.html.j2 | 19 ++++++++++++++---- .../templates/doc_root/t2-index.html.j2 | 19 ++++++++++++++---- 10 files changed, 99 insertions(+), 28 deletions(-) create mode 100644 ansible/roles/oasys-ords/templates/doc_root/favicon.ico diff --git a/ansible/group_vars/server_type_oasys_web.yml b/ansible/group_vars/server_type_oasys_web.yml index 36f6bcb0d..e15728d39 100644 --- a/ansible/group_vars/server_type_oasys_web.yml +++ b/ansible/group_vars/server_type_oasys_web.yml @@ -34,6 +34,7 @@ packages_yum_install: - zip - git - net-tools + - jq packages_yum_update: [] diff --git a/ansible/roles/oasys-ords/defaults/main.yml b/ansible/roles/oasys-ords/defaults/main.yml index 3520481c1..c08fe3fc8 100644 --- a/ansible/roles/oasys-ords/defaults/main.yml +++ b/ansible/roles/oasys-ords/defaults/main.yml @@ -7,9 +7,10 @@ oasys_links_default_path: "/eor/f?p=100:101" oasys_index_page: "{{ ec2.tags['oasys-environment'] }}-index.html" oasys_ords_docroot_dir: "{{ oasys_ords_root_dir }}/webapps/ROOT" oasys_ords_extra_files: - - "redirect.html" - - "index_message.html" - - "index_no_message.html" + - "redirect.html.j2" + - "index_message.html.j2" + - "index_no_message.html.j2" + - "favicon.ico" oasys_ords_s3_bucket: "hmpps/oasys-ords" oasys_maintenance_msg: "" ords_db_port: 1521 @@ -32,3 +33,6 @@ secret_db_prefix: /oracle/database oasys_ords_maintenance_msg_secret: "/ec2/{{ ec2.tags.Name }}/maintenance_message" oasys_ords_get_maintenance_msg_command: "aws secretsmanager get-secret-value --secret-id {{ oasys_ords_maintenance_msg_secret }} --query SecretString --output text" oasys_ords_maintenance_message_file: "{{ oasys_ords_docroot_dir }}/maintenance_message.html" + + +aws secretsmanager get-secret-value --secret-id /ec2/t2-oasys-web-b/maintenance_message --query SecretString --output text | jq .message | xargs diff --git a/ansible/roles/oasys-ords/tasks/files.yml b/ansible/roles/oasys-ords/tasks/files.yml index a496037a4..784a23324 100644 --- a/ansible/roles/oasys-ords/tasks/files.yml +++ b/ansible/roles/oasys-ords/tasks/files.yml @@ -40,7 +40,7 @@ - name: Copy any additional docroot files ansible.builtin.template: - src: "doc_root/{{ item }}.j2" + src: "doc_root/{{ item }}" dest: "{{ oasys_ords_docroot_dir }}/{{ item }}" owner: "{{ ords_install_user }}" group: "{{ ords_install_group }}" diff --git a/ansible/roles/oasys-ords/templates/doc_root/favicon.ico b/ansible/roles/oasys-ords/templates/doc_root/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..7b16c60e2cce36ad0cdccf4ec56a88ba018f2d05 GIT binary patch literal 15406 zcmeHNX;2hb5S|>r6Ah50qDe6EEMqj97?Vm>OsaC2v#c^nRbmp8MWaL%70;mVqTHg0 zpeUCJ-UbC!1P@RVQBgq!@jygwIpx~r+D`YZGt4Zz%k1ueP~lY#v&_8i{<`PAey{sA z!#u@2!weX};N6~?{Vc;wWEjTYUibgVfeaIl&&G{={C+sYq}egdNbG|oNTGX>F1)-4(>NxyKfuc4`- z25Kt{A^l_sq@UOZ)fM+a-B=3|KHr+;;W>8*)IWL%c{!)S-SJhv@7g(o;Li0E&`?(i zUi04MpX=K@F47sOZTjc^PJR5BO#skp;c%2or*|Bm3y8O&uEOa1x|&kBlpJC7eb@A5 zCh1M#-?;o;)JzNUCh+U*SB~~e5!sJyc{e+m)y-?(8%FVy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