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
094f4d02
Commit
094f4d02
authored
9 years ago
by
Smaine Kahlouch
Browse files
Options
Downloads
Plain Diff
Merge pull request #253 from paulczar/fix_vagrantfile
set vm box to be hashicorp hosted trusty
parents
ef6a59bb
ba615ff9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Vagrantfile
+7
-18
7 additions, 18 deletions
Vagrantfile
roles/download/defaults/main.yml
+3
-0
3 additions, 0 deletions
roles/download/defaults/main.yml
roles/download/tasks/main.yml
+4
-0
4 additions, 0 deletions
roles/download/tasks/main.yml
with
15 additions
and
18 deletions
.gitignore
+
1
−
0
View file @
094f4d02
.vagrant
*.retry
inventory/vagrant_ansible_inventory
temp
This diff is collapsed.
Click to expand it.
Vagrantfile
+
7
−
18
View file @
094f4d02
...
...
@@ -11,11 +11,12 @@ CONFIG = File.join(File.dirname(__FILE__), "vagrant/config.rb")
$num_instances
=
3
$instance_name_prefix
=
"k8s"
$vm_gui
=
false
$vm_memory
=
1
024
$vm_memory
=
1
536
$vm_cpus
=
1
$shared_folders
=
{}
$forwarded_ports
=
{}
$subnet
=
"172.17.8"
$box
=
"bento/ubuntu-14.04"
host_vars
=
{}
...
...
@@ -40,22 +41,7 @@ end
Vagrant
.
configure
(
"2"
)
do
|
config
|
# always use Vagrants insecure key
config
.
ssh
.
insert_key
=
false
config
.
vm
.
box
=
"ubuntu-14.04"
config
.
vm
.
box_url
=
"https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/%s/coreos_production_vagrant.json"
%
[
$update_channel
,
$image_version
]
[
"vmware_fusion"
,
"vmware_workstation"
].
each
do
|
vmware
|
config
.
vm
.
provider
vmware
do
|
v
,
override
|
override
.
vm
.
box_url
=
"https://storage.googleapis.com/%s.release.core-os.net/amd64-usr/%s/coreos_production_vagrant_vmware_fusion.json"
%
[
$update_channel
,
$image_version
]
end
end
config
.
vm
.
provider
:virtualbox
do
|
v
|
# On VirtualBox, we don't have guest additions or a functional vboxsf
# in CoreOS, so tell Vagrant that so it can be smarter.
v
.
check_guest_additions
=
false
v
.
functional_vboxsf
=
false
end
config
.
vm
.
box
=
$box
# plugin conflict
if
Vagrant
.
has_plugin?
(
"vagrant-vbguest"
)
then
...
...
@@ -92,7 +78,9 @@ Vagrant.configure("2") do |config|
"ip"
=>
ip
,
"access_ip"
=>
ip
,
"flannel_interface"
=>
ip
,
"flannel_backend_type"
=>
"host-gw"
"flannel_backend_type"
=>
"host-gw"
,
"local_release_dir"
=>
"/vagrant/temp"
,
"download_run_once"
=>
"True"
}
config
.
vm
.
network
:private_network
,
ip:
ip
...
...
@@ -109,6 +97,7 @@ Vagrant.configure("2") do |config|
ansible
.
host_key_checking
=
false
ansible
.
raw_arguments
=
[
"--forks=
#{
$num_instances
}
"
]
ansible
.
host_vars
=
host_vars
#ansible.tags = ['download']
ansible
.
groups
=
{
# The first three nodes should be etcd servers
"etcd"
=>
[
"k8s-0[1:3]"
],
...
...
This diff is collapsed.
Click to expand it.
roles/download/defaults/main.yml
+
3
−
0
View file @
094f4d02
---
local_release_dir
:
/tmp
# if this is set to true will only download files once
download_run_once
:
False
# Versions
kube_version
:
"
v1.2.4"
etcd_version
:
v2.2.5
...
...
This diff is collapsed.
Click to expand it.
roles/download/tasks/main.yml
+
4
−
0
View file @
094f4d02
...
...
@@ -2,6 +2,7 @@
-
name
:
Create dest directories
file
:
path={{local_release_dir}}/{{item.dest|dirname}} state=directory recurse=yes
with_items
:
"
{{
downloads
}}"
run_once
:
"
{{
download_run_once|bool
}}"
-
name
:
Download items
get_url
:
...
...
@@ -11,6 +12,7 @@
owner
:
"
{{
item.owner|default(omit)
}}"
mode
:
"
{{
item.mode|default(omit)
}}"
with_items
:
"
{{
downloads
}}"
run_once
:
"
{{
download_run_once|bool
}}"
-
name
:
Extract archives
unarchive
:
...
...
@@ -21,6 +23,7 @@
copy
:
no
when
:
"
{{item.unarchive
is
defined
and
item.unarchive
==
True}}"
with_items
:
"
{{
downloads
}}"
run_once
:
"
{{
download_run_once|bool
}}"
-
name
:
Fix permissions
file
:
...
...
@@ -30,3 +33,4 @@
mode
:
"
{{
item.mode|default(omit)
}}"
when
:
"
{{item.unarchive
is
not
defined
or
item.unarchive
==
False}}"
with_items
:
"
{{
downloads
}}"
run_once
:
"
{{
download_run_once|bool
}}"
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