nix/os/devices/steveej-t480s-work: refacor openshift dnsmasq snippet
This commit is contained in:
parent
24449ab8a6
commit
4797c89e12
1 changed files with 8 additions and 2 deletions
|
@ -11,8 +11,14 @@ in {
|
|||
networking.hostName = "steveej-t480s-work"; # Define your hostname.
|
||||
|
||||
# Used for testing local Openshift clusters
|
||||
environment.etc."NetworkManager/dnsmasq.d/tectonic.conf".text = ''
|
||||
server=/openshift.testing/192.168.126.1
|
||||
environment.etc."NetworkManager/dnsmasq.d/openshift.conf".text =
|
||||
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.checkReversePath = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue