Skip to content

Commit 6e35593

Browse files
committed
ansible-lint
ansible-lint update
1 parent e8e51b3 commit 6e35593

13 files changed

Lines changed: 41 additions & 63 deletions

File tree

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
profile: "production"
3+
offline: false

environments/template/group_vars/template.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ relp_remote:
2828

2929
php_display_errors: 1
3030

31-
attribute_aggregation_gui_version: "3.0.6"
3231
attribute_aggregation_server_version: "3.0.6"
3332
oidc_playground_client_version: "3.0.0"
3433
oidc_playground_server_version: "3.0.0"

provision.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
- { role: teams, tags: ["teams"] }
116116
- { role: pdp, tags: ["pdp"] }
117117
- { role: voot, tags: ["voot"] }
118-
- { role: attribute-aggregation, tags: ["aa", "attribute-aggregation"] }
118+
- { role: attribute_aggregation, tags: ["aa", "attribute-aggregation"] }
119119
- { role: oidc-playground, tags: ["oidc-playground"] }
120120
- { role: myconext, tags: ["myconext"] }
121121
- { role: manage, tags: ["manage"] }

roles/attribute-aggregation/templates/apachelink.conf.j2

Lines changed: 0 additions & 39 deletions
This file was deleted.
File renamed without changes.

roles/attribute-aggregation/handlers/main.yml renamed to roles/attribute_aggregation/handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- name: restart attribute-aggregationserver
1+
- name: "Restart attribute-aggregationserver"
22
community.docker.docker_container:
33
name: aaserver
44
state: started

roles/attribute-aggregation/tasks/main.yml renamed to roles/attribute_aggregation/tasks/main.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@
3737
- name: Add the MariaDB docker network to the list of networks when MariaDB runs in Docker
3838
ansible.builtin.set_fact:
3939
aa_docker_networks:
40-
- name: loadbalancer
41-
- name: openconext_mariadb
42-
when: mariadb_in_docker | default(false) | bool
40+
- name: "loadbalancer"
41+
- name: "openconext_mariadb"
42+
when: "mariadb_in_docker | default(false) | bool"
4343

4444
- name: Create and start the server container
4545
community.docker.docker_container:
46-
name: aaserver
47-
image: ghcr.io/openconext/openconext-attribute-aggregation/aa-server:{{ attribute_aggregation_server_version }}
46+
name: "aaserver"
47+
image: "ghcr.io/openconext/openconext-attribute-aggregation/aa-server:{{ attribute_aggregation_server_version }}"
4848
pull: true
4949
restart_policy: "always"
50-
state: started
50+
state: "started"
5151
networks: "{{ aa_docker_networks }}"
5252
mounts:
5353
- source: "/opt/openconext/attribute-aggregation/serverapplication.yml"
@@ -68,7 +68,7 @@
6868
type: "bind"
6969
command: "-Xmx128m --spring.config.location=./"
7070
etc_hosts:
71-
host.docker.internal: host-gateway
71+
host.docker.internal: "host-gateway"
7272
labels:
7373
traefik.http.routers.aaserver.rule: "Host(`aa.{{ base_domain }}`)"
7474
traefik.http.routers.aaserver.tls: "true"
@@ -83,20 +83,20 @@
8383
"--spider",
8484
"http://localhost:8080/internal/health",
8585
]
86-
interval: 10s
87-
timeout: 10s
86+
interval: "10s"
87+
timeout: "10s"
8888
retries: 3
8989
start_period: "10s"
9090
notify: "Restart attribute-aggregationserver"
9191
register: "aa_servercontainer"
9292

9393
- name: Create the gui link container
9494
community.docker.docker_container:
95-
name: aalink
96-
image: ghcr.io/openconext/openconext-basecontainers/apache2-shibboleth:latest
95+
name: "aalink"
96+
image: "ghcr.io/openconext/openconext-basecontainers/apache2-shibboleth:latest"
9797
pull: true
9898
restart_policy: "always"
99-
state: started
99+
state: "started"
100100
networks: "{{ aa_docker_networks }}"
101101
mounts:
102102
- source: "/opt/openconext/attribute-aggregation/apachelink.conf"
@@ -112,18 +112,18 @@
112112
read_only: true
113113
type: "bind"
114114
etc_hosts:
115-
host.docker.internal: host-gateway
115+
host.docker.internal: "host-gateway"
116116
labels:
117117
traefik.http.routers.aalink.rule: "Host(`link.{{ base_domain }}`)"
118118
traefik.http.routers.aalink.tls: "true"
119119
traefik.enable: "true"
120120
healthcheck:
121121
test: ["CMD", "curl", "--fail", "http://localhost/internal/health"]
122-
interval: 10s
123-
timeout: 10s
122+
interval: "10s"
123+
timeout: "10s"
124124
retries: 3
125-
start_period: 10s
126-
hostname: attribute-link
125+
start_period: "10s"
126+
hostname: "attribute-link"
127127
env:
128128
HTTPD_CSP: "{{ httpd_csp.lenient_with_static_img }}"
129129
HTTPD_SERVERNAME: "link.{{ base_domain }}"

roles/attribute_aggregation/templates/apachelink.conf.j2

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,29 @@ RewriteRule (.*) /index.html [L]
1111
Redirect /orcid https://link.{{ base_domain }}/aa/api/client/information.html
1212
ProxyPass /Shibboleth.sso !
1313

14-
ProxyPass /redirect http://aaserver:8080/redirect
14+
ProxyPass /redirect http://aaserver:8080/aa/api/redirect
1515
ProxyPass /internal/health http://aaserver:8080/internal/health
1616
ProxyPass /internal/info http://aaserver:8080/internal/info
1717

18-
ProxyPass /aa/api http://aaserver:8080
19-
ProxyPassReverse /aa/api http://aaserver:8080
20-
ProxyPassReverse /aa/api/client http://aaserver:8080/client
18+
ProxyPass /aa/api http://aaserver:8080/aa/api
19+
ProxyPassReverse /aa/api http://aaserver:8080/aa/api
20+
ProxyPassReverse /aa/api/client http://aaserver:8080/aa/api/client
2121

2222
Header always set X-Frame-Options "DENY"
2323
Header always set Referrer-Policy "strict-origin-when-cross-origin"
2424
Header always set X-Content-Type-Options "nosniff"
25+
26+
<Location />
27+
AuthType shibboleth
28+
ShibUseHeaders On
29+
ShibRequireSession On
30+
Require valid-user
31+
</Location>
32+
33+
<Location ~ "/internal/(health|info)">
34+
Require all granted
35+
</Location>
36+
37+
<Location ~ "/aa/api/internal/">
38+
Require all denied
39+
</Location>

roles/attribute-aggregation/templates/attributeAuthorities.yml.j2 renamed to roles/attribute_aggregation/templates/attributeAuthorities.yml.j2

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)