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
473e340a
Unverified
Commit
473e340a
authored
Feb 08, 2021
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add opensuse 15 vagrant provision
parent
ad5e504c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
Vagrantfile
Vagrantfile
+2
-2
vagrant
scripts/provision/generic/opensuse15/vagrant
+23
-0
No files found.
Vagrantfile
View file @
473e340a
...
@@ -8,7 +8,7 @@ NODE_CPUS = (ENV['NODE_CPUS'] || 4).to_i
...
@@ -8,7 +8,7 @@ NODE_CPUS = (ENV['NODE_CPUS'] || 4).to_i
NODE_MEMORY
=
(
ENV
[
'NODE_MEMORY'
]
||
8192
).
to_i
NODE_MEMORY
=
(
ENV
[
'NODE_MEMORY'
]
||
8192
).
to_i
NETWORK_PREFIX
=
ENV
[
'NETWORK_PREFIX'
]
||
"10.135.135"
NETWORK_PREFIX
=
ENV
[
'NETWORK_PREFIX'
]
||
"10.135.135"
VAGRANT_PROVISION
=
ENV
[
'VAGRANT_PROVISION'
]
||
"./scripts/provision/vagrant"
VAGRANT_PROVISION
=
ENV
[
'VAGRANT_PROVISION'
]
||
"./scripts/provision/vagrant"
MOUNT_TYPE
=
ENV
[
'MOUNT_TYPE'
]
||
"
nfs
"
MOUNT_TYPE
=
ENV
[
'MOUNT_TYPE'
]
||
"
virtualbox
"
# --- Rules for /etc/sudoers to avoid password entry configuring NFS:
# --- Rules for /etc/sudoers to avoid password entry configuring NFS:
# %admin ALL = (root) NOPASSWD: /usr/bin/sed -E -e * -ibak /etc/exports
# %admin ALL = (root) NOPASSWD: /usr/bin/sed -E -e * -ibak /etc/exports
...
@@ -19,7 +19,7 @@ MOUNT_TYPE = ENV['MOUNT_TYPE'] || "nfs"
...
@@ -19,7 +19,7 @@ MOUNT_TYPE = ENV['MOUNT_TYPE'] || "nfs"
def
provision
(
vm
,
node_num
)
def
provision
(
vm
,
node_num
)
node_os
=
(
ENV
[
"OS_
#{
node_num
}
"
]
||
OS
)
node_os
=
(
ENV
[
"OS_
#{
node_num
}
"
]
||
OS
)
vm
.
box
=
(
ENV
[
"BOX_
#{
node_num
}
"
]
||
ENV
[
"BOX"
]
||
"
#{
BOX_REPO
}
/
#{
node_os
}
"
)
vm
.
box
=
(
ENV
[
"BOX_
#{
node_num
}
"
]
||
ENV
[
"BOX"
]
||
"
#{
BOX_REPO
}
/
#{
node_os
}
"
)
vm
.
hostname
=
"
#{
PROJECT
}
-
#{
node_num
}
-
#{
node_os
}
"
vm
.
hostname
=
"
#{
PROJECT
}
-
#{
node_num
}
-
#{
vm
.
box
.
gsub
(
/^.*\//
,
""
)
}
"
vm
.
network
"private_network"
,
ip:
"
#{
NETWORK_PREFIX
}
.
#{
100
+
node_num
}
"
vm
.
network
"private_network"
,
ip:
"
#{
NETWORK_PREFIX
}
.
#{
100
+
node_num
}
"
vm
.
provision
"shell"
,
vm
.
provision
"shell"
,
path:
VAGRANT_PROVISION
,
path:
VAGRANT_PROVISION
,
...
...
scripts/provision/generic/opensuse15/vagrant
0 → 100755
View file @
473e340a
#!/bin/bash
set
-ve
download_go
# ---
cat
<<
EOF
>/etc/profile.d/build.sh
export SELINUX=true
# export STATIC_BUILD=true
EOF
.
/etc/profile.d/build.sh
# ---
zypper
-q
install
-y
\
git
\
libseccomp-devel
\
libselinux-devel
\
zstd
\
# ---
sed
-E
's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add .*||g'
-i
/tmp/docker-run
.
/tmp/docker-run
# ---
go get
-u
github.com/go-delve/delve/cmd/dlv
# ---
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