]> xn--ix-yja.es Git - alex.git/commitdiff
Manage dnsmasq on dixie
authoralex <alex@pdp7.net>
Sat, 21 Jan 2023 22:44:11 +0000 (23:44 +0100)
committeralex <alex@pdp7.net>
Sat, 21 Jan 2023 22:44:11 +0000 (23:44 +0100)
personal_infra/puppet/site/dixie.bcn.int.pdp7.net.pp

index 182dc12b6375e4903ee4d18b102defe899fde7be..caf0d92ef6f36678175ef5930df0624c8f8535f2 100644 (file)
@@ -1,2 +1,12 @@
 node 'dixie.bcn.int.pdp7.net' {
+  class {'dns_dhcp':}
+  file {'/etc/dnsmasq.d/static.conf':
+    content => "host-record=router,router.bcn.int.pdp7.net,192.168.76.1
+host-record=archerc7,archerc7.bcn.int.pdp7.net,192.168.76.6
+host-record=dixie.bcn.int.pdp7.net,dixie,192.168.76.2
+dhcp-option=121,10.0.0.0/8,192.168.76.2
+",
+    notify => Service["dnsmasq"],
+  }
+  class {'freeipa::dnsmasq':}
 }