Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
dd541e85
Unverified
Commit
dd541e85
authored
Mar 25, 2022
by
Michal Rostecki
Committed by
GitHub
Mar 25, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5315 from vadorovsky/vagrant-ipv6
vagrant: Enable IPv6 and IP forwarding, set NFS options
parents
d25ae8fb
ef8d5d70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
Vagrantfile
Vagrantfile
+5
-1
vagrant
scripts/provision/vagrant
+13
-0
No files found.
Vagrantfile
View file @
dd541e85
...
...
@@ -40,7 +40,11 @@ Vagrant.configure("2") do |config|
if
Vagrant
.
has_plugin?
(
"vagrant-timezone"
)
config
.
timezone
.
value
=
:host
end
config
.
vm
.
synced_folder
HOME
,
HOME
,
type:
MOUNT_TYPE
if
"
#{
MOUNT_TYPE
}
"
==
"nfs"
config
.
vm
.
synced_folder
HOME
,
HOME
,
type:
"nfs"
,
mount_options:
[
"vers=3,tcp"
]
else
config
.
vm
.
synced_folder
HOME
,
HOME
,
type:
MOUNT_TYPE
end
if
NUM_NODES
==
0
provision
(
config
.
vm
,
0
)
...
...
scripts/provision/vagrant
View file @
dd541e85
...
...
@@ -68,6 +68,19 @@ cat <<\EOF >/etc/motd
EOF
# --- Enable IPv6 and IP forwarding
sysctl
-w
net.ipv4.ip_forward
=
1
sysctl
-w
net.ipv6.conf.all.disable_ipv6
=
0
sysctl
-w
net.ipv6.conf.all.forwarding
=
1
sed
-i
\
-e
"/^net.ipv6.conf.all.disable_ipv6 = 1/d"
\
/etc/sysctl.conf
cat
<<
EOF
>>/etc/sysctl.conf
net.ipv4.ip_forward = 1
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.all.forwarding = 1
EOF
# --- Utility function to download go
download_go
()
{
goversion
=
$(
grep
"golang:"
Dockerfile.dapper |
sed
-e
's/.*golang:\(.*\)-.*/\1/'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment