|
11 | 11 | - "/opt/openconext/manage/metadata_templates" |
12 | 12 | - "/opt/openconext/manage/policies" |
13 | 13 |
|
| 14 | +- name: Copy Stepup stepup_config.json from inventory |
| 15 | + ansible.builtin.template: |
| 16 | + src: "stepup_config.json.j2" |
| 17 | + dest: "/opt/openconext/manage/stepup_config.json" |
| 18 | + owner: "root" |
| 19 | + group: "root" |
| 20 | + mode: "0644" |
| 21 | + notify: restart manageserver |
| 22 | + |
14 | 23 | - name: Import the mongo CA file |
15 | 24 | ansible.builtin.copy: |
16 | 25 | src: "{{ inventory_dir }}/secrets/mongo/mongoca.pem" |
|
31 | 40 | - name: Place the serverapplication configfiles |
32 | 41 | ansible.builtin.template: |
33 | 42 | src: "{{ item }}.j2" |
34 | | - dest: /opt/openconext/manage/{{ item }} |
35 | | - owner: root |
36 | | - group: root |
| 43 | + dest: "/opt/openconext/manage/{{ item }}" |
| 44 | + owner: "root" |
| 45 | + group: "root" |
37 | 46 | mode: "0644" |
38 | 47 | with_items: |
39 | | - - application.yml |
40 | | - - logback.xml |
41 | | - - manage-api-users.yml |
| 48 | + - "application.yml" |
| 49 | + - "logback.xml" |
| 50 | + - "manage-api-users.yml" |
42 | 51 | notify: restart manageserver |
43 | 52 |
|
44 | 53 | - name: Place old __cacert_entrypoint.sh script |
|
53 | 62 | ansible.builtin.template: |
54 | 63 | src: "metadata_configuration/{{ item }}.schema.json.j2" |
55 | 64 | dest: "/opt/openconext/manage/metadata_configuration/{{ item }}.schema.json" |
56 | | - owner: root |
57 | | - group: root |
| 65 | + owner: "root" |
| 66 | + group: "root" |
58 | 67 | mode: "0640" |
59 | 68 | with_items: |
60 | 69 | - "{{ manage_tabs_enabled }}" |
|
81 | 90 | group: root |
82 | 91 | mode: "0640" |
83 | 92 | with_items: |
84 | | - - allowed_attributes.json |
85 | | - - extra_saml_attributes.json |
| 93 | + - "allowed_attributes.json" |
| 94 | + - "extra_saml_attributes.json" |
86 | 95 | notify: |
87 | 96 | - "restart manageserver" |
88 | 97 |
|
89 | 98 | - name: Add the mongodb and mariadb docker network to the list of networks when MongoDB runs in Docker |
90 | 99 | ansible.builtin.set_fact: |
91 | 100 | manage_docker_networks: |
92 | | - - name: loadbalancer |
93 | | - - name: openconext_mongodb |
94 | | - - name: openconext_mariadb |
| 101 | + - name: "loadbalancer" |
| 102 | + - name: "openconext_mongodb" |
| 103 | + - name: "openconext_mariadb" |
95 | 104 | when: mongodb_in_docker | default(false) | bool |
96 | 105 |
|
97 | 106 | - name: Create and start the server container |
|
105 | 114 | state: started |
106 | 115 | networks: "{{ manage_docker_networks }}" |
107 | 116 | mounts: |
108 | | - - source: /opt/openconext/manage/ |
109 | | - target: /config/ |
110 | | - type: bind |
111 | | - - source: /opt/openconext/manage/mongoca.pem |
112 | | - target: /certificates/mongoca.crt |
113 | | - type: bind |
114 | | - - source: /opt/openconext/manage/__cacert_entrypoint.sh |
115 | | - target: /__cacert_entrypoint.sh |
116 | | - type: bind |
| 117 | + - source: "/opt/openconext/manage/" |
| 118 | + target: "/config/" |
| 119 | + type: "bind" |
| 120 | + read_only: true |
| 121 | + - source: "/opt/openconext/manage/mongoca.pem" |
| 122 | + target: "/certificates/mongoca.crt" |
| 123 | + type: "bind" |
| 124 | + read_only: true |
| 125 | + - source: "/opt/openconext/manage/__cacert_entrypoint.sh" |
| 126 | + target: "/__cacert_entrypoint.sh" |
| 127 | + type: "bind" |
| 128 | + read_only: true |
| 129 | + - source: "/opt/openconext/manage/stepup_config.json" |
| 130 | + target: "/stepup_config.json" |
| 131 | + type: "bind" |
| 132 | + read_only: true |
117 | 133 | command: "java -jar /app.jar -Xmx512m --spring.config.location=./config/" |
118 | 134 | etc_hosts: |
119 | 135 | host.docker.internal: host-gateway |
|
170 | 186 | - source: /etc/localtime |
171 | 187 | target: /etc/localtime |
172 | 188 | type: bind |
| 189 | + read_only: true |
173 | 190 | - source: /opt/openconext/common/favicon.ico |
174 | 191 | target: /var/www/favicon.ico |
175 | 192 | type: bind |
| 193 | + read_only: true |
0 commit comments