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
d40b073f
Unverified
Commit
d40b073f
authored
1 year ago
by
Max Gautier
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add extra_vars support to vagrant setup (#10932)
parent
5d822ad8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Vagrantfile
+2
-0
2 additions, 0 deletions
Vagrantfile
docs/vagrant.md
+5
-0
5 additions, 0 deletions
docs/vagrant.md
with
7 additions
and
0 deletions
Vagrantfile
+
2
−
0
View file @
d40b073f
...
@@ -80,6 +80,7 @@ $ansible_tags ||= ENV['VAGRANT_ANSIBLE_TAGS'] || ""
...
@@ -80,6 +80,7 @@ $ansible_tags ||= ENV['VAGRANT_ANSIBLE_TAGS'] || ""
$vagrant_dir
||=
File
.
join
(
File
.
dirname
(
__FILE__
),
".vagrant"
)
$vagrant_dir
||=
File
.
join
(
File
.
dirname
(
__FILE__
),
".vagrant"
)
$playbook
||=
"cluster.yml"
$playbook
||=
"cluster.yml"
$extra_vars
||=
{}
host_vars
=
{}
host_vars
=
{}
...
@@ -276,6 +277,7 @@ Vagrant.configure("2") do |config|
...
@@ -276,6 +277,7 @@ Vagrant.configure("2") do |config|
ansible
.
host_key_checking
=
false
ansible
.
host_key_checking
=
false
ansible
.
raw_arguments
=
[
"--forks=
#{
$num_instances
}
"
,
"--flush-cache"
,
"-e ansible_become_pass=vagrant"
]
ansible
.
raw_arguments
=
[
"--forks=
#{
$num_instances
}
"
,
"--flush-cache"
,
"-e ansible_become_pass=vagrant"
]
ansible
.
host_vars
=
host_vars
ansible
.
host_vars
=
host_vars
ansible
.
extra_vars
=
$extra_vars
if
$ansible_tags
!=
""
if
$ansible_tags
!=
""
ansible
.
tags
=
[
$ansible_tags
]
ansible
.
tags
=
[
$ansible_tags
]
end
end
...
...
This diff is collapsed.
Click to expand it.
docs/vagrant.md
+
5
−
0
View file @
d40b073f
...
@@ -85,6 +85,11 @@ cat << EOF > vagrant/config.rb
...
@@ -85,6 +85,11 @@ cat << EOF > vagrant/config.rb
\$network_plugin = "flannel"
\$network_plugin = "flannel"
\$inventory = "$INV"
\$inventory = "$INV"
\$shared_folders = { 'temp/docker_rpms' => "/var/cache/yum/x86_64/7/docker-ce/packages" }
\$shared_folders = { 'temp/docker_rpms' => "/var/cache/yum/x86_64/7/docker-ce/packages" }
\$extra_vars = {
dns_domain: my.custom.domain
}
# or
\$extra_vars = "path/to/extra/vars/file.yml"
EOF
EOF
# make the rpm cache
# make the rpm cache
...
...
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