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
7996f394
Commit
7996f394
authored
Jun 22, 2015
by
Eric Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vagrant? Did we mean to include this?
parent
7b8ed5a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
0 deletions
+59
-0
Vagrantfile
contrib/ansible/vagrant/Vagrantfile
+51
-0
vinventory
contrib/ansible/vagrant/vinventory
+8
-0
No files found.
contrib/ansible/vagrant/Vagrantfile
0 → 100644
View file @
7996f394
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant
.
configure
(
2
)
do
|
config
|
config
.
vm
.
box
=
"chef/centos-7.0"
# config.vm.network "public_network"
config
.
vm
.
define
"master"
,
primary:
true
do
|
master
|
master
.
vm
.
hostname
=
"master.vms.local"
master
.
vm
.
network
"private_network"
,
ip:
"192.168.1.100"
end
(
1
..
1
).
each
do
|
i
|
config
.
vm
.
define
"node-
#{
i
}
"
do
|
node
|
node
.
vm
.
hostname
=
"node-
#{
i
}
.vms.local"
node
.
vm
.
network
"private_network"
,
ip:
"192.168.1.1
#{
i
}
"
node
.
vm
.
provision
:ansible
do
|
ansible
|
ansible
.
groups
=
{
"masters"
=>
[
"master"
],
"nodes"
=>
[
"node-1"
,
"node-2"
],
"etcd"
=>
[
"master"
]
}
ansible
.
host_key_checking
=
false
ansible
.
extra_vars
=
{
ansible_ssh_user:
'vagrant'
,
ansible_ssh_pass:
'vagrant'
,
user:
'vagrant'
}
#ansible.verbose = 'vvv'
ansible
.
playbook
=
"../cluster.yml"
ansible
.
inventory_path
=
"vinventory"
ansible
.
limit
=
'all'
end
end
end
config
.
vm
.
provider
"virtualbox"
do
|
vb
|
# Display the VirtualBox GUI when booting the machine
vb
.
gui
=
false
# Customize the amount of memory on the VM:
vb
.
memory
=
"2048"
# vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
contrib/ansible/vagrant/vinventory
0 → 100644
View file @
7996f394
[masters]
192.168.1.100
[etcd]
192.168.1.100
[nodes]
192.168.1.11
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