Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vSalgo Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
Sysadmin
vSalgo Ansible
Commits
06d4da2d
Commit
06d4da2d
authored
Mar 8, 2022
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Switch to Open vSwitch
parent
a0843f2d
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
install.yml
+0
-2
0 additions, 2 deletions
install.yml
tasks/net.yml
+2
-1
2 additions, 1 deletion
tasks/net.yml
templates/interfaces
+34
-36
34 additions, 36 deletions
templates/interfaces
vars/net.yml
+0
-13
0 additions, 13 deletions
vars/net.yml
with
36 additions
and
52 deletions
install.yml
+
0
−
2
View file @
06d4da2d
---
-
hosts
:
all
tags
:
net
vars_files
:
-
vars/net.yml
tasks
:
-
name
:
Set up network
import_tasks
:
tasks/net.yml
...
...
This diff is collapsed.
Click to expand it.
tasks/net.yml
+
2
−
1
View file @
06d4da2d
---
-
name
:
Ensure packages are installed for SDN
-
name
:
Ensure packages are installed for SDN
and Open vSwitch
apt
:
name
:
-
ifupdown2
-
libpve-network-perl
-
openvswitch-switch
-
name
:
Template network config
template
:
...
...
This diff is collapsed.
Click to expand it.
templates/interfaces
+
34
−
36
View file @
06d4da2d
...
...
@@ -35,49 +35,47 @@ iface enp4s0f1 inet manual
#Középső
auto bond0
iface bond0 inet static
address {{ admin_ip }}
bond-slaves enp3s0f0 enp3s0f1 enp4s0f0 enp4s0f1
bond-miimon 100
bond-mode balance-xor
bond-xmit-hash-policy layer2
mtu 9000
iface bond0 inet manual
ovs_bonds enp3s0f0 enp3s0f1 enp4s0f0 enp4s0f1
ovs_type OVSBond
ovs_bridge vmbr0
ovs_mtu 9000
ovs_options bond_mode=balance-slb
#Main bond
auto bond0.151
iface bond0.151 inet manual
mtu 9000
#Internal with :80 and :443 NAT
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan10 vlan151 vlan420
ovs_mtu 9000
#Main vSwitch
auto bond0.420
iface bond0.420 inet static
address {{ cluster_ip }}
mtu 9000
#Cluster network
auto vmbr151
iface vmbr151 inet static
auto vlan10
iface vlan10 inet static
address {{ admin_ip }}
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 9000
#AdminLAN
auto vlan151
iface vlan151 inet static
address {{ internal_ip }}
gateway 10.151.255.254
bridge-ports bond0.151
bridge
-stp off
bridge-fd
0
mtu 9000
ovs_type OVSIntPort
ovs_
bridge
vmbr0
ovs_mtu 900
0
ovs_options tag=151
#Internal with :80 and :443 NAT
{% for vlan in vlans %}
auto bond0.{{ vlan.tag }}
iface bond0.{{ vlan.tag }} inet manual
mtu 9000
#{{ vlan.name }}
auto vmbr{{ vlan.tag }}
iface vmbr{{ vlan.tag }} inet manual
bridge-ports bond0.{{ vlan.tag }}
bridge-stp off
bridge-fd 0
mtu 9000
#{{ vlan.name }}
{% endfor %}
auto vlan420
iface vlan420 inet static
address {{ cluster_ip }}
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_mtu 9000
ovs_options tag=420
#Cluster network
source /etc/network/interfaces.d/*
This diff is collapsed.
Click to expand it.
vars/net.yml
deleted
100644 → 0
+
0
−
13
View file @
a0843f2d
vlans
:
-
tag
:
112
name
:
MosógépSCH
-
tag
:
152
name
:
SCH Internal
-
tag
:
208
name
:
KSZK fontos
-
tag
:
209
name
:
KSZK belső
-
tag
:
211
name
:
Salgó
-
tag
:
2110
name
:
Salgó management
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment