diff --git a/dnsmasq/files/home.conf b/dnsmasq/files/home.conf new file mode 100644 index 0000000..5f283b3 --- /dev/null +++ b/dnsmasq/files/home.conf @@ -0,0 +1 @@ +address=/rancher.rre.home/10.2.0.101 diff --git a/dnsmasq/files/hosts b/dnsmasq/files/hosts index 06dc708..560533a 100644 --- a/dnsmasq/files/hosts +++ b/dnsmasq/files/hosts @@ -32,6 +32,13 @@ ff02::3 ipv6-allhosts 10.2.0.21 jalapeno 10.2.0.101 salt 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 # 10.2.0.60-70 10.2.0.60 public @@ -48,5 +55,3 @@ ff02::3 ipv6-allhosts 10.0.10.7 ap4 10.0.10.20 woody 10.0.10.30 laserjet - - diff --git a/dnsmasq/files/rre.conf b/dnsmasq/files/rre.conf index 9b1bb74..c92dc0f 100644 --- a/dnsmasq/files/rre.conf +++ b/dnsmasq/files/rre.conf @@ -14,3 +14,6 @@ cname=s3.rre.nu,public.rre.nu cname=rre.nu,public.rre.nu cname=mat.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 diff --git a/dnsmasq/init.sls b/dnsmasq/init.sls index 4284104..1b54811 100644 --- a/dnsmasq/init.sls +++ b/dnsmasq/init.sls @@ -10,6 +10,14 @@ rre.nu configuration file: - group: root - 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: file.managed: - name: /etc/hosts @@ -25,4 +33,5 @@ start dnsmasq: - enable: True - watch: - file: rre.nu configuration file + - file: rre.home configuration file - file: configure host file