Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
6d8a415b
Commit
6d8a415b
authored
7 years ago
by
Kevin Jing Qiu
Browse files
Options
Downloads
Patches
Plain Diff
Update doc on Vagrant local override file
parent
dad268a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/vagrant.md
+23
-3
23 additions, 3 deletions
docs/vagrant.md
with
23 additions
and
3 deletions
docs/vagrant.md
+
23
−
3
View file @
6d8a415b
...
...
@@ -40,10 +40,30 @@ k8s-02 Ready 45s
k8s-03 Ready 45s
```
Customize Vagrant
=================
You can override the default settings in the
`Vagrantfile`
either by directly modifying the
`Vagrantfile`
or through an override file.
In the same directory as the
`Vagrantfile`
, create a folder called
`vagrant`
and create
`config.rb`
file in it.
You're able to override the variables defined in
`Vagrantfile`
by providing the value in the
`vagrant/config.rb`
file,
e.g.:
echo '$forwarded_ports = {8001 => 8001}' >> vagrant/config.rb
and after
`vagrant up`
or
`vagrant reload`
, your host will have port forwarding setup with the guest on port 8001.
Use alternative OS for Vagrant
==============================
By default, Vagrant uses Ubuntu 16.04 box to provision a local cluster. You may use an alternative supported
operating system for your local cluster. Change
`$os`
variable in
`Vagrantfile`
to another operating system to change
the vagrant base box. The supported operating systems for vagrant are defined in the
`SUPPORTED_OS`
constant in
the
`Vagrantfile`
.
operating system for your local cluster.
Customize
`$os`
variable in
`Vagrantfile`
or as override, e.g.,:
echo '$os = "coreos-stable"' >> vagrant/config.rb
The supported operating systems for vagrant are defined in the
`SUPPORTED_OS`
constant in the
`Vagrantfile`
.
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