routeros #23
7 changed files with 138 additions and 9 deletions
|
@ -9,7 +9,7 @@ files = {
|
||||||
},
|
},
|
||||||
'/etc/apt/apt.conf.d/76pveproxy': {
|
'/etc/apt/apt.conf.d/76pveproxy': {
|
||||||
'content_type': 'any',
|
'content_type': 'any',
|
||||||
'mode': '0444',
|
'mode': '0644',
|
||||||
},
|
},
|
||||||
'/etc/network/interfaces': {
|
'/etc/network/interfaces': {
|
||||||
'content_type': 'any',
|
'content_type': 'any',
|
||||||
|
|
|
@ -67,7 +67,9 @@ for vlan_name, vlan_id in node.metadata.get('routeros/vlans').items():
|
||||||
'untagged': sorted(node.metadata.get(f'routeros/vlan_ports/{vlan_name}/untagged')),
|
'untagged': sorted(node.metadata.get(f'routeros/vlan_ports/{vlan_name}/untagged')),
|
||||||
'tagged': sorted(node.metadata.get(f'routeros/vlan_ports/{vlan_name}/tagged')),
|
'tagged': sorted(node.metadata.get(f'routeros/vlan_ports/{vlan_name}/tagged')),
|
||||||
'_comment': vlan_name,
|
'_comment': vlan_name,
|
||||||
'tags': {'routeros-bridge-vlan'},
|
'tags': {
|
||||||
|
'routeros-vlan-ports',
|
||||||
|
},
|
||||||
'needs': {
|
'needs': {
|
||||||
#'routeros:/interface/bridge?name=bridge',
|
#'routeros:/interface/bridge?name=bridge',
|
||||||
'tag:routeros-vlan',
|
'tag:routeros-vlan',
|
||||||
|
@ -93,6 +95,7 @@ routeros['/interface/bridge?name=bridge'] = {
|
||||||
'protocol-mode': 'rstp',
|
'protocol-mode': 'rstp',
|
||||||
'needs': {
|
'needs': {
|
||||||
'tag:routeros-vlan',
|
'tag:routeros-vlan',
|
||||||
|
'tag:routeros-vlan-ports',
|
||||||
'tag:routeros-ip',
|
'tag:routeros-ip',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,11 +34,6 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'vlan_ports': {},
|
'vlan_ports': {},
|
||||||
'ips': {
|
|
||||||
'10.0.0.62/24': {
|
|
||||||
'interface': 'home',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'os': 'routeros',
|
'os': 'routeros',
|
||||||
|
|
|
@ -38,10 +38,15 @@
|
||||||
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
||||||
'network': {
|
'network': {
|
||||||
'internal': {
|
'internal': {
|
||||||
'interface': 'enp42s0',
|
'interface': 'enp43s0',
|
||||||
'ipv4': '10.0.0.2/24',
|
'ipv4': '10.0.0.2/24',
|
||||||
'gateway4': '10.0.0.1',
|
'gateway4': '10.0.0.1',
|
||||||
},
|
},
|
||||||
|
'old-internal': {
|
||||||
|
'interface': 'enp42s0',
|
||||||
|
'ipv4': '10.0.0.82/24',
|
||||||
|
'gateway4': '10.0.0.1',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
|
|
|
@ -6,5 +6,41 @@
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': '26eca3f1-975e-426f-bd7d-e2a1ef36519e',
|
'id': '26eca3f1-975e-426f-bd7d-e2a1ef36519e',
|
||||||
|
'routeros': {
|
||||||
|
'ips': {
|
||||||
|
'10.0.0.63/24': {
|
||||||
|
'interface': 'home',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
'ports': {
|
||||||
|
'sfp-sfpplus1': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus2': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus3': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus4': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus5': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus6': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus7': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus8': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether1': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,10 +7,96 @@
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': 'e6a24df7-eed1-404e-af78-15ebcbcc02a2',
|
'id': 'e6a24df7-eed1-404e-af78-15ebcbcc02a2',
|
||||||
'routeros': {
|
'routeros': {
|
||||||
|
'ips': {
|
||||||
|
'10.0.0.60/24': {
|
||||||
|
'interface': 'home',
|
||||||
|
},
|
||||||
|
},
|
||||||
'ports': {
|
'ports': {
|
||||||
|
'sfp-sfpplus1': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus2': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus3': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'sfp-sfpplus4': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
'ether1': {
|
'ether1': {
|
||||||
'vlan_group': 'infra',
|
'vlan_group': 'infra',
|
||||||
},
|
},
|
||||||
|
'ether2': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether3': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether4': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether5': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether6': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether7': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether8': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether9': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether10': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether11': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether12': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether13': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether14': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether15': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether16': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether17': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether18': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether19': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether20': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether21': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether22': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether23': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
|
'ether24': {
|
||||||
|
'vlan_group': 'infra',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
#'hostname': '192.168.88.1',
|
|
||||||
'hostname': '10.0.0.62',
|
'hostname': '10.0.0.62',
|
||||||
'password': '!decrypt:encrypt$gAAAAABoYFSyt2JAsdePXiHim1RdQwbarJedhAOE3XpS2rGMBx-F5eCWRCIyLU2g2ocUDUIDfgH3nBipUCkdcd0Bv4vbK-yqKmGSeSH7YXLYwq3ZWuCDsLM=',
|
'password': '!decrypt:encrypt$gAAAAABoYFSyt2JAsdePXiHim1RdQwbarJedhAOE3XpS2rGMBx-F5eCWRCIyLU2g2ocUDUIDfgH3nBipUCkdcd0Bv4vbK-yqKmGSeSH7YXLYwq3ZWuCDsLM=',
|
||||||
'groups': [
|
'groups': [
|
||||||
|
@ -8,6 +7,11 @@
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': 'e6a24df7-eed1-404e-af78-15ebcbcc02a2',
|
'id': 'e6a24df7-eed1-404e-af78-15ebcbcc02a2',
|
||||||
'routeros': {
|
'routeros': {
|
||||||
|
'ips': {
|
||||||
|
'10.0.0.62/24': {
|
||||||
|
'interface': 'home',
|
||||||
|
},
|
||||||
|
},
|
||||||
'ports': {
|
'ports': {
|
||||||
'ether1': {
|
'ether1': {
|
||||||
'vlan_group': 'infra',
|
'vlan_group': 'infra',
|
||||||
|
|
Loading…
Reference in a new issue