Advance the state of the art config imagination

This commit is contained in:
Luke Murphy 2020-04-14 12:42:45 +02:00
parent d56aee909c
commit a1e060c93e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 15 additions and 15 deletions

View File

@ -7,7 +7,7 @@ vars:
domain: "punkbase.autonomic.zone"
http_mirror: "true"
port: "8085"
webapi_password: "{{ webapi_password }}"
webapi_password: "{{ vault.webapi_password }}"
webapi_username: "{{ webapi_username }}"
dats:
# https://sunbeam.city/@kawaiipunk/103883932490360099

View File

@ -1,18 +1,18 @@
---
- name: Open up the Dat port
dokku_ports:
app: "{{ app }}"
app: "{{ dokku.app_name }}"
mappings:
- "http:{{ dat_port }}:{{ dat_port }}"
- "http:{{ vars.dat_port }}:{{ vars.dat_port }}"
state: present
- name: "Allow access to {{ dat_port }} on the firewall"
- name: "Allow access to {{ vars.dat_port }} on the firewall"
become: true
ufw:
rule: allow
port: "{{ dat_port }}"
port: "{{ vars.dat_port }}"
- name: "Reload the firewall to enable {{ dat_port }}"
- name: "Reload the firewall to enable {{ vars.dat_port }}"
become: true
service:
name: ufw

View File

@ -1,18 +1,18 @@
---
directory: {{ dat_root }}
httpMirror: {{ http_mirror }}
letsencrypt: {{ auto_letsencrypt }}
dashboard: {{ dashboard }}
directory: {{ vars.dat_root }}
httpMirror: {{ vars.http_mirror }}
letsencrypt: {{ vars.auto_letsencrypt }}
dashboard: {{ vars.dashboard }}
webapi:
domain: {{ domain }}
username: {{ webapi_username }}
password: {{ webapi_password }}
domain: {{ vars.domain }}
username: {{ vault.webapi_username }}
password: {{ vault.webapi_password }}
ports:
http: {{ port }}
http: {{ vars.port }}
dats:
{% for dat in dats %}
{% for dat in vars.dats %}
- url: "{{ dat }}"
{% endfor %}