Fix vars handling

This commit is contained in:
Luke Murphy 2020-04-15 13:32:56 +02:00
parent 6505de02b2
commit 60515fb5ec
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 7 additions and 7 deletions

View File

@ -2,6 +2,7 @@
vars: vars:
port: "3020" port: "3020"
domain: "git.autonomic.zone" domain: "git.autonomic.zone"
ssh_listen_post: "2222"
volumes: volumes:
- type: directory - type: directory
@ -42,11 +43,11 @@ env:
DESCRIPTION: "Git hosting for conrads" DESCRIPTION: "Git hosting for conrads"
DISABLE_REGISTRATION: "false" DISABLE_REGISTRATION: "false"
DOKKU_LETSENCRYPT_EMAIL: "helo@autonomic.zone" DOKKU_LETSENCRYPT_EMAIL: "helo@autonomic.zone"
DOMAIN: "{{ vars.domain }}" DOMAIN: "{{ config.vars.domain }}"
ENABLE_OPENID_SIGNIN: "true" ENABLE_OPENID_SIGNIN: "true"
ENABLE_OPENID_SIGNUP: "true" ENABLE_OPENID_SIGNUP: "true"
GITEA_THEME: "arc-green" GITEA_THEME: "arc-green"
HTTP_PORT: "{{ vars.port }}" HTTP_PORT: "{{ config.vars.port }}"
INSTALL_LOCK: "true" INSTALL_LOCK: "true"
JWT_SECRET: "{{ vault.jwt_secret }}" JWT_SECRET: "{{ vault.jwt_secret }}"
MAILER_ENABLED: "true" MAILER_ENABLED: "true"
@ -58,8 +59,8 @@ env:
SMTP_PASSWD: "{{ vault.smtp_passwd }}" SMTP_PASSWD: "{{ vault.smtp_passwd }}"
SMTP_TLS_ENABLED: "true" SMTP_TLS_ENABLED: "true"
SMTP_USER: "gitea-autonomic@decentral1.se" SMTP_USER: "gitea-autonomic@decentral1.se"
SSH_DOMAIN: "{{ vars.domain }}" SSH_DOMAIN: "{{ config.vars.domain }}"
SSH_LISTEN_PORT: "2222" SSH_LISTEN_PORT: "{{ config.vars.ssh_listen_post }}"
SSH_PORT: "222" SSH_PORT: "222"
STARTUP_TIMEOUT: "0" STARTUP_TIMEOUT: "0"
WHITELIST_URIS: "https://{{ vars.domain }}" WHITELIST_URIS: "https://{{ config.vars.domain }}"

View File

@ -20,7 +20,6 @@
- name: Setup the SSH system -> container passthrough script - name: Setup the SSH system -> container passthrough script
become: true become: true
vars: vars:
ssh_listen_port: "{{ config.vars.ssh_listen_port }}"
dokku_container_ip: "{{ dokku_ps_inspect.stdout }}" dokku_container_ip: "{{ dokku_ps_inspect.stdout }}"
template: template:
src: "{{ app_config_root }}/templates/gitea.j2" src: "{{ app_config_root }}/templates/gitea.j2"

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
ssh \ ssh \
-p {{ ssh_listen_port }} \ -p {{ config.vars.ssh_listen_port }} \
-o StrictHostKeyChecking=no \ -o StrictHostKeyChecking=no \
git@{{ dokku_container_ip }} \ git@{{ dokku_container_ip }} \
"SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@" "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"