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
f72f2886
Commit
f72f2886
authored
Jul 11, 2016
by
Ivan Shvedunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support custom Fedora repos in vagrant provider
parent
383d45f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
provision-utils.sh
cluster/vagrant/provision-utils.sh
+8
-1
util.sh
cluster/vagrant/util.sh
+1
-0
vagrant.md
docs/devel/developer-guides/vagrant.md
+14
-0
No files found.
cluster/vagrant/provision-utils.sh
View file @
f72f2886
...
...
@@ -28,7 +28,14 @@ function prepare-package-manager() {
echo
"Prepare package manager"
# Useful if a mirror is broken or slow
echo
"fastestmirror=True"
>>
/etc/dnf/dnf.conf
if
[
-z
"
$CUSTOM_FEDORA_REPOSITORY_URL
"
]
;
then
echo
"fastestmirror=True"
>>
/etc/dnf/dnf.conf
else
# remove trailing slash from URL if it's present
CUSTOM_FEDORA_REPOSITORY_URL
=
"
${
CUSTOM_FEDORA_REPOSITORY_URL
%/
}
"
sed
-i
-e
"/^metalink=/d"
/etc/yum.repos.d/
*
.repo
sed
-i
-e
"s@^#baseurl=http://download.fedoraproject.org/pub/fedora@baseurl=
$CUSTOM_FEDORA_REPOSITORY_URL
@"
/etc/yum.repos.d/
*
.repo
fi
}
...
...
cluster/vagrant/util.sh
View file @
f72f2886
...
...
@@ -187,6 +187,7 @@ function echo-kube-env() {
echo
"OPENCONTRAIL_KUBERNETES_TAG='
${
OPENCONTRAIL_KUBERNETES_TAG
:-}
'"
echo
"OPENCONTRAIL_PUBLIC_SUBNET='
${
OPENCONTRAIL_PUBLIC_SUBNET
:-}
'"
echo
"E2E_STORAGE_TEST_ENVIRONMENT='
${
E2E_STORAGE_TEST_ENVIRONMENT
:-}
'"
echo
"CUSTOM_FEDORA_REPOSITORY_URL='
${
CUSTOM_FEDORA_REPOSITORY_URL
:-}
'"
}
function
verify-cluster
{
...
...
docs/devel/developer-guides/vagrant.md
View file @
f72f2886
...
...
@@ -429,6 +429,20 @@ environment variables. For example, if running `make quick-release`, use:
sudo
-E
make quick-release
```
#### I have repository access errors during VM provisioning!
Sometimes VM provisioning may fail with errors that look like this:
```
Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64 [Connection timed out after 120002 milliseconds]
```
You may use a custom Fedora repository URL to fix this:
```
shell
export
CUSTOM_FEDORA_REPOSITORY_URL
=
https://download.fedoraproject.org/pub/fedora/
```
#### I ran vagrant suspend and nothing works!
`vagrant suspend`
seems to mess up the network. It's not supported at this time.
...
...
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