Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-influxdb
Commits
5e5d7346
Commit
5e5d7346
authored
Jan 19, 2016
by
Ross McDonald
Browse files
Added switch for clustering playbook to Vagrantfile.
parent
4094e232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Vagrantfile
View file @
5e5d7346
...
@@ -3,21 +3,24 @@
...
@@ -3,21 +3,24 @@
Vagrant
.
configure
(
2
)
do
|
config
|
Vagrant
.
configure
(
2
)
do
|
config
|
config
.
vm
.
box
=
"ubuntu/trusty64"
config
.
vm
.
box
=
"ubuntu/trusty64"
# config.vm.box = "ubuntu/wily64"
# config.vm.box = "sgallen/wily64"
# config.vm.box = "ubuntu/vivid64"
# config.vm.box = "ubuntu/vivid64"
# config.vm.box = "relativkreativ/centos-7-minimal"
# config.vm.box = "relativkreativ/centos-7-minimal"
# config.vm.box = "box-cutter/fedora22"
# config.vm.box = "box-cutter/fedora22"
# config.vm.box = "puppetlabs/centos-6.6-64-nocm"
# config.vm.box = "puppetlabs/centos-6.6-64-nocm"
# config.vm.box = "debian/jessie64"
BOX_COUNT
=
1
BOX_COUNT
=
1
(
1
..
BOX_COUNT
).
each
do
|
machine_id
|
(
1
..
BOX_COUNT
).
each
do
|
machine_id
|
config
.
vm
.
define
"influx
#{
machine_id
}
"
do
|
machine
|
config
.
vm
.
define
"influx
#{
machine_id
}
"
do
|
machine
|
machine
.
vm
.
hostname
=
"influx
#{
machine_id
}
"
machine
.
vm
.
hostname
=
"influx
#{
machine_id
}
"
#
machine.vm.network "private_network",
ip: "10.0.3.#{1+machine_id}", virtualbox__intnet: true
machine
.
vm
.
network
"private_network"
,
type:
"dhcp"
# machine.vm.network "public_network"
# machine.vm.network "public_network"
machine
.
vm
.
network
"public_network"
,
:bridge
=>
'en0: Wi-Fi (AirPort)'
#
machine.vm.network "public_network", :bridge => 'en0: Wi-Fi (AirPort)'
machine
.
vm
.
provider
"virtualbox"
do
|
v
|
machine
.
vm
.
provider
"virtualbox"
do
|
v
|
v
.
memory
=
512
v
.
memory
=
1024
v
.
cpus
=
1
v
.
cpus
=
1
end
end
...
@@ -25,11 +28,11 @@ Vagrant.configure(2) do |config|
...
@@ -25,11 +28,11 @@ Vagrant.configure(2) do |config|
machine
.
vm
.
provision
"ansible"
do
|
ansible
|
machine
.
vm
.
provision
"ansible"
do
|
ansible
|
# ansible.verbose = 'vvvv'
# ansible.verbose = 'vvvv'
ansible
.
limit
=
'all'
ansible
.
limit
=
'all'
ansible
.
playbook
=
"test.yml"
if
BOX_COUNT
>
1
#
ansible.playbook = "
playbooks/0.9.4.2_to_0.9.5.1_upgrade_path
.yml"
ansible
.
playbook
=
"
test
.yml"
# ansible.playbook = "playbooks/0.9.5.1_to_0.9.6_upgrade_path.yml"
else
#
ansible.playbook = "
playbooks/0.9.4.2_to_0.9.6_upgrade_path
.yml"
ansible
.
playbook
=
"
cluster-test
.yml"
# ansible.playbook = "playbooks/0.9.4.2_to_0.9.5.1_to_0.9.6_upgrade_path.yml"
end
ansible
.
sudo
=
true
ansible
.
sudo
=
true
ansible
.
host_key_checking
=
false
ansible
.
host_key_checking
=
false
ansible
.
extra_vars
=
{
ansible
.
extra_vars
=
{
...
...
Write
Preview
Supports
Markdown
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