Use http_port var

This commit is contained in:
Luke Murphy 2020-03-29 11:51:17 +02:00
parent 0f3e3f23e5
commit f263c96fcf
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 13 additions and 6 deletions

View File

@ -12,7 +12,7 @@
dokku_ports:
app: keycloak
mappings:
- "http:80:8080"
- "http:80:{{ http_port }}"
state: present
- name: Setup LE certificates
@ -29,19 +29,19 @@
dokku_storage:
app: keycloak
mounts:
- "/home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key"
- "/home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt"
- /home/dokku/keycloak/letsencrypt/certs/current/key.pem:/etc/x509/https/tls.key
- /home/dokku/keycloak/letsencrypt/certs/current/cert.pem:/etc/x509/https/tls.crt
- name: Remove automatically configured ports
dokku_ports:
app: keycloak
mappings:
- "http:8080:8080"
- "http:{{ http_port }}:{{ http_port }}"
state: absent
- name: Set HTTP 443 port
dokku_ports:
app: keycloak
mappings:
- "https:443:8080"
- "https:443:{{ http_port }}"
state: present

View File

@ -16,7 +16,13 @@
state: present
- name: Create mariadb database
shell: "dokku mariadb:create keycloak --password {{ db_passwd }} --root-password {{ root_db_passwd }}"
shell: "
dokku
mariadb:create
keycloak
--password {{ db_passwd }}
--root-password {{ root_db_passwd }}
"
args:
creates: /var/lib/dokku/services/mariadb/keycloak

View File

@ -1,3 +1,4 @@
---
autonomic_admin_mail: helo@autonomic.zone
autonomic_admin_user: autonomic
http_port: "8080"