-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
During development it's not always possible or convenient to have access to an OpenStack cloud to host the virtual machines for the infrastructure. This change adds a Vagrantfile which utilizes libvirt as the provisioning backend for deploying the base infrastructure as managed via Vagrant. These changes have been tested against both a Vagrant deployment with libvirt, and against the existing OpenStack deployment system.
- Loading branch information
1 parent
6270ac7
commit b6e9d01
Showing
12 changed files
with
203 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ hosts/ | |
!hosts/localhost | ||
roles/ | ||
inventory | ||
files/jobs/ | ||
files/nfv_jobs_config/ | ||
files/ | ||
!files/filebeat.yml | ||
.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.define :jenkins_master do |jenkins_master| | ||
jenkins_master.vm.box = "centos/7" | ||
jenkins_master.vm.provider :libvirt do |domain| | ||
domain.machine_arch = 'x86_64' | ||
domain.cpu_mode = 'host-passthrough' | ||
domain.memory = "2048" | ||
end | ||
end | ||
|
||
config.vm.define :elasticsearch do |elasticsearch| | ||
elasticsearch.vm.box = "centos/7" | ||
elasticsearch.vm.provider :libvirt do |domain| | ||
domain.machine_arch = 'x86_64' | ||
domain.cpu_mode = 'host-passthrough' | ||
domain.memory = "1024" | ||
end | ||
end | ||
|
||
config.vm.define :logstash do |logstash| | ||
logstash.vm.box = "centos/7" | ||
logstash.vm.provider :libvirt do |domain| | ||
domain.machine_arch = 'x86_64' | ||
domain.cpu_mode = 'host-passthrough' | ||
domain.memory = "1024" | ||
end | ||
end | ||
|
||
config.vm.define :kibana do |kibana| | ||
kibana.vm.box = "centos/7" | ||
kibana.vm.provider :libvirt do |domain| | ||
domain.machine_arch = 'x86_64' | ||
domain.cpu_mode = 'host-passthrough' | ||
domain.memory = "2048" | ||
end | ||
end | ||
|
||
config.vm.provision :ansible do |ansible| | ||
ansible.extra_vars = { | ||
use_openstack_deploy: false, | ||
vars_files_relative: "../../../.." # this sets the relative path from | ||
# from the inventory file to the | ||
# vars/ directory. | ||
} | ||
ansible.limit = "all" | ||
ansible.skip_tags = "jenkins_slave" | ||
ansible.playbook = 'site.yml' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
[defaults] | ||
roles_path = ./roles | ||
gathering = smart | ||
fact_caching = jsonfile | ||
fact_caching_connection = ~/.ansible/cachedir | ||
fact_caching_timeout = 86400 | ||
host_key_checking = False | ||
inventory = ./hosts/ | ||
host_key_checking = False | ||
|
||
# NOTE: You can enable this to speed up deployments, but note with a teardown / | ||
# spin-up that you may run into outdated facts. | ||
#gathering = smart | ||
#fact_caching = jsonfile | ||
#fact_caching_connection = ~/.ansible/cachedir | ||
#fact_caching_timeout = 86400 | ||
|
||
[ssh_connection] | ||
ssh_args = -o ControlMaster=auto -o ControlPersist=300s -o ForwardAgent=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# set the relative path from the inventory file to the vars/ directory. | ||
vars_files_relative: ".." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.