mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-07 14:03:01 +07:00
Change variable name and fix gateway
This commit is contained in:
parent
5dd34e8c3c
commit
9f33f464f6
@ -45,11 +45,11 @@ def generate_network_config(node):
|
||||
config = template.substitute({
|
||||
'NETWORK_DEVICE': 'eno1',
|
||||
'IP': node['ip'],
|
||||
'GATEWAY': '192.168.1.0',
|
||||
'GATEWAY': '192.168.1.1',
|
||||
'NETMASK': '255.255.255.0',
|
||||
'HOSTNAME': node['hostname'],
|
||||
'NAMESERVER_1': '8.8.8.8',
|
||||
'NAMESERVER_2': '8.8.4.4'
|
||||
'DNS1': '8.8.8.8',
|
||||
'DNS2': '8.8.8.8'
|
||||
})
|
||||
|
||||
with open(f"./kickstart/config/{node['mac'].replace(':', '-')}.ks", 'w') as config_file:
|
||||
|
Loading…
Reference in New Issue
Block a user