Fix variable references
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
7c2ff54019
commit
1746af9b9d
@ -16,23 +16,24 @@
|
|||||||
- name: Configure Traefik dashboard ingress
|
- name: Configure Traefik dashboard ingress
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ingressroute.j2
|
src: ingressroute.j2
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml
|
dest: /var/lib/rancher/k3s/server/manifests/{{ _template.name }}-manifest.yaml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
vars:
|
vars:
|
||||||
name: traefik-dashboard
|
_template:
|
||||||
namespace: kube-system
|
name: traefik-dashboard
|
||||||
config: |2
|
namespace: kube-system
|
||||||
entryPoints:
|
config: |2
|
||||||
- web
|
entryPoints:
|
||||||
- websecure
|
- web
|
||||||
routes:
|
- websecure
|
||||||
- kind: Rule
|
routes:
|
||||||
match: Host(`ingress.{{ vapp['metacluster.fqdn'] }}`)
|
- kind: Rule
|
||||||
services:
|
match: Host(`ingress.{{ vapp['metacluster.fqdn'] }}`)
|
||||||
- kind: TraefikService
|
services:
|
||||||
name: api@internal
|
- kind: TraefikService
|
||||||
|
name: api@internal
|
||||||
|
|
||||||
- name: Ensure API availability
|
- name: Ensure API availability
|
||||||
ansible.utils.cli_parse:
|
ansible.utils.cli_parse:
|
||||||
@ -157,21 +158,22 @@
|
|||||||
- name: Configure additional SSH ingress
|
- name: Configure additional SSH ingress
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ingressroutetcp.j2
|
src: ingressroutetcp.j2
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/{{ item.name }}-manifest.yaml
|
dest: /var/lib/rancher/k3s/server/manifests/{{ _template.name }}-manifest.yaml
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
vars:
|
vars:
|
||||||
name: gitea-ssh
|
_template:
|
||||||
namespace: gitea
|
name: gitea-ssh
|
||||||
config: |2
|
namespace: gitea
|
||||||
entryPoints:
|
config: |2
|
||||||
- ssh
|
entryPoints:
|
||||||
routes:
|
- ssh
|
||||||
- match: HostSNI(`*`)
|
routes:
|
||||||
services:
|
- match: HostSNI(`*`)
|
||||||
- name: gitea-ssh
|
services:
|
||||||
port: 22
|
- name: gitea-ssh
|
||||||
|
port: 22
|
||||||
|
|
||||||
- name: Ensure gitea API availability
|
- name: Ensure gitea API availability
|
||||||
ansible.utils.cli_parse:
|
ansible.utils.cli_parse:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ item.name }}
|
name: {{ _template.name }}
|
||||||
namespace: {{ item.namespace }}
|
namespace: {{ _template.namespace }}
|
||||||
spec:
|
spec:
|
||||||
{{ item.config }}
|
{{ _template.config }}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.containo.us/v1alpha1
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
kind: IngressRouteTCP
|
kind: IngressRouteTCP
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ item.name }}
|
name: {{ _template.name }}
|
||||||
namespace: {{ item.namespace }}
|
namespace: {{ _template.namespace }}
|
||||||
spec:
|
spec:
|
||||||
{{ item.config }}
|
{{ _template.config }}
|
||||||
|
Loading…
Reference in New Issue
Block a user