Skip to content
Snippets Groups Projects
Commit 5414b6d2 authored by ale's avatar ale
Browse files

Add a configuration for a Vagrant test deployment

parent 0e3fe0d3
Branches vagrant
Tags
1 merge request!11Add a configuration for a Vagrant test deployment
Vagrant.configure(2) do |config|
config.vm.box = "debian/buster64"
# Use the old insecure Vagrant SSH key for access.
config.ssh.insert_key = false
# Disable synchronization of the /vagrant folder for faster startup.
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :libvirt do |libvirt|
libvirt.cpus = 1
libvirt.memory = 3072
end
config.vm.define "host1" do |m|
m.vm.hostname = "host1"
m.vm.network "private_network", ip: "10.121.20.10", libvirt__dhcp_enabled: false
end
config.vm.define "host2" do |m|
m.vm.hostname = "host2"
m.vm.network "private_network", ip: "10.121.20.11", libvirt__dhcp_enabled: false
end
end
---
plugin: float
services_file: config/services.common.yml
hosts_file: hosts-vagrant.yml
passwords_file: config/passwords.common.yml
credentials_dir: credentials
vars_dir: group_vars/all
enable_ssh: false
testing: true
hosts:
floatapp1:
groups: [backend, vagrant]
ansible_host: 10.121.20.10
ip: 10.121.20.10
ip_vpn0: 172.16.1.1
floatrp1:
groups: [frontend, vagrant]
ansible_host: 10.121.20.11
ip: 10.121.20.11
ip_vpn0: 172.16.1.2
location: Seattle
group_vars:
vagrant:
ansible_user: vagrant
ansible_become: true
ansible_ssh_private_key_file: "~/.vagrant.d/insecure_private_key"
enable_ssh: false
testing: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment