nix/os/devices/steveej-t480s-work: refacor openshift dnsmasq snippet

This commit is contained in:
steveej 2019-04-20 14:44:15 +02:00
parent 24449ab8a6
commit 4797c89e12

View file

@ -11,8 +11,14 @@ in {
networking.hostName = "steveej-t480s-work"; # Define your hostname. networking.hostName = "steveej-t480s-work"; # Define your hostname.
# Used for testing local Openshift clusters # Used for testing local Openshift clusters
environment.etc."NetworkManager/dnsmasq.d/tectonic.conf".text = '' environment.etc."NetworkManager/dnsmasq.d/openshift.conf".text =
server=/openshift.testing/192.168.126.1 let
openshiftClusterName = "openshift-steveej";
openshiftDomain = "openshift.testing";
openshiftSubnetBase = "192.168.126";
in ''
server=/${openshiftDomain}/${openshiftSubnetBase}.1
address=/.apps.${openshiftClusterName}.${openshiftDomain}/${openshiftSubnetBase}.51
''; '';
networking.firewall.enable = lib.mkForce false; networking.firewall.enable = lib.mkForce false;
networking.firewall.checkReversePath = false; networking.firewall.checkReversePath = false;