moved rancher from rre.nu to rre.home

Because of HSTS problems I created a new home tld to host
all internal services that is runned by self signed certs
This commit is contained in:
= 2021-05-25 16:25:47 +02:00
parent 87e6fd6367
commit 1fddef7a97
4 changed files with 20 additions and 2 deletions

1
dnsmasq/files/home.conf Normal file
View File

@ -0,0 +1 @@
address=/rancher.rre.home/10.2.0.101

View File

@ -32,6 +32,13 @@ ff02::3 ipv6-allhosts
10.2.0.21 jalapeno 10.2.0.21 jalapeno
10.2.0.101 salt 10.2.0.101 salt
10.2.0.102 pepper 10.2.0.102 pepper
#lab k3s cluster
10.2.0.250 demo-k3s
10.2.0.251 srv1
10.2.0.252 srv2
10.2.0.253 srv3
# MetalLB # MetalLB
# 10.2.0.60-70 # 10.2.0.60-70
10.2.0.60 public 10.2.0.60 public
@ -48,5 +55,3 @@ ff02::3 ipv6-allhosts
10.0.10.7 ap4 10.0.10.7 ap4
10.0.10.20 woody 10.0.10.20 woody
10.0.10.30 laserjet 10.0.10.30 laserjet

View File

@ -14,3 +14,6 @@ cname=s3.rre.nu,public.rre.nu
cname=rre.nu,public.rre.nu cname=rre.nu,public.rre.nu
cname=mat.rre.nu,public.rre.nu cname=mat.rre.nu,public.rre.nu
cname=zigbee2mqtt.rre.nu,public.rre.nu cname=zigbee2mqtt.rre.nu,public.rre.nu
cname=grafana.rre.nu,public.rre.nu
cname=prometheus.rre.nu,public.rre.nu
cname=repo.rre.nu,salt.rre.nu

View File

@ -10,6 +10,14 @@ rre.nu configuration file:
- group: root - group: root
- mode: "0644" - mode: "0644"
rre.home configuration file:
file.managed:
- name: /etc/dnsmasq.d/home.conf
- source: salt://dnsmasq/files/home.conf
- user: root
- group: root
- mode: "0644"
configure host file: configure host file:
file.managed: file.managed:
- name: /etc/hosts - name: /etc/hosts
@ -25,4 +33,5 @@ start dnsmasq:
- enable: True - enable: True
- watch: - watch:
- file: rre.nu configuration file - file: rre.nu configuration file
- file: rre.home configuration file
- file: configure host file - file: configure host file