refactor(k3s): enhance cluster setup and enable ArgoCD apps
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
become: true
|
||||
|
||||
- name: Build Custom Caddy with netcup
|
||||
ansible.builtin.command: xcaddy build --with github.com/caddy-dns/netcup {{ reverse_proxy_caddy_version}}
|
||||
ansible.builtin.command: xcaddy build --with github.com/caddy-dns/netcup
|
||||
environment:
|
||||
PATH: "{{ ansible_env.PATH }}:/usr/local/go/bin"
|
||||
register: xcaddy_build
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
{
|
||||
email {{ caddy.admin_email | default('admin@example.com') }}
|
||||
acme_ca {{ caddy.acme_ca | default('https://acme-v02.api.letsencrypt.org/directory') }}
|
||||
acme_dns netcup {
|
||||
customer_number {{ netcup_customer_id }}
|
||||
api_key {{ netcup_api_key }}
|
||||
api_password {{ netcup_api_password }}
|
||||
}
|
||||
email {{ caddy.admin_email | default('admin@example.com') }}
|
||||
acme_ca {{ caddy.acme_ca | default('https://acme-v02.api.letsencrypt.org/directory') }}
|
||||
}
|
||||
|
||||
*.{{ domain }} {
|
||||
}
|
||||
|
||||
{% for service in services %}
|
||||
@@ -16,17 +24,6 @@
|
||||
output file /var/log/caddy/{{ service.name }}.log
|
||||
format json
|
||||
}
|
||||
|
||||
tls {
|
||||
dns netcup {
|
||||
customer_number {{ vault_netcup.customer_number }}
|
||||
api_key {{ vault_netcup.api_key }}
|
||||
api_password {{ vault_netcup.api_password }}
|
||||
}
|
||||
propagation_timeout 900s
|
||||
propagation_delay 600s
|
||||
resolvers 1.1.1.1
|
||||
}
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
reverse_proxy_caddy_version: v2.9.1
|
||||
reverse_proxy_caddy_version: v1.0.0
|
||||
|
||||
reverse_proxy_custom_caddy_source_path: "{{ ansible_env.HOME }}/caddy"
|
||||
reverse_proxy_default_caddy_path: "/usr/bin/caddy"
|
||||
|
||||
Reference in New Issue
Block a user