modifs de base
This commit is contained in:
parent
a74a0f89d2
commit
0ab0c2d74c
50
kea-dhcp-ha/Vagrantfile
vendored
50
kea-dhcp-ha/Vagrantfile
vendored
@ -16,49 +16,27 @@ Vagrant.configure("2") do |config|
|
||||
v.customize ["modifyvm", :id, "--ioapic", "on"]
|
||||
end
|
||||
|
||||
# lb HAproxy.
|
||||
config.vm.define "lb" do |lb|
|
||||
lb.vm.hostname = "lb.test"
|
||||
lb.vm.network :private_network, ip: "192.168.56.2"
|
||||
lb.vm.provision "shell",
|
||||
inline: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||
lb.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "provision/setup-lb.yml"
|
||||
end
|
||||
end
|
||||
|
||||
# NFS.
|
||||
config.vm.define "nfs" do |nfs|
|
||||
nfs.vm.hostname = "nfs.test"
|
||||
nfs.vm.network :private_network, ip: "192.168.56.6"
|
||||
nfs.vm.provision "shell",
|
||||
inline: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||
nfs.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "provision/setup-nfs.yml"
|
||||
end
|
||||
end
|
||||
|
||||
# MySQL.
|
||||
config.vm.define "db" do |db|
|
||||
db.vm.hostname = "db.test"
|
||||
db.vm.network :private_network, ip: "192.168.56.5"
|
||||
db.vm.provision "shell",
|
||||
inline: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||
db.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "provision/setup-db.yml"
|
||||
end
|
||||
# db.vm.provision "ansible" do |ansible|
|
||||
# ansible.playbook = "provision/setup-db.yml"
|
||||
# end
|
||||
end
|
||||
|
||||
# Kea DHCP server 1.
|
||||
config.vm.define "kea1" do |kea1|
|
||||
web1.vm.hostname = "kea1"
|
||||
web1.vm.network :private_network, ip: "192.168.56.2"
|
||||
web1.vm.provider :virtualbox do |v|
|
||||
kea1.vm.hostname = "kea1"
|
||||
kea1.vm.network :private_network, ip: "192.168.56.2"
|
||||
kea1.vm.provider :virtualbox do |v|
|
||||
v.customize ["modifyvm", :id, "--memory", 512]
|
||||
end
|
||||
web1.vm.provision "shell",
|
||||
kea1.vm.provision "shell",
|
||||
inline: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||
web1.vm.provision "ansible" do |ansible|
|
||||
kea1.vm.provision "ansible" do |ansible|
|
||||
ansible.extra_vars = {
|
||||
srv_ip: "192.168.56.2",
|
||||
}
|
||||
@ -67,15 +45,15 @@ Vagrant.configure("2") do |config|
|
||||
end
|
||||
|
||||
# Kea DHCP server 2.
|
||||
config.vm.define "web2" do |kea2|
|
||||
web2.vm.hostname = "kea2"
|
||||
web2.vm.network :private_network, ip: "192.168.56.3"
|
||||
web2.vm.provider :virtualbox do |v|
|
||||
config.vm.define "kea2" do |kea2|
|
||||
kea2.vm.hostname = "kea2"
|
||||
kea2.vm.network :private_network, ip: "192.168.56.3"
|
||||
kea2.vm.provider :virtualbox do |v|
|
||||
v.customize ["modifyvm", :id, "--memory", 512]
|
||||
end
|
||||
web2.vm.provision "shell",
|
||||
kea2.vm.provision "shell",
|
||||
inline: "sudo apt-get update ; sudo apt-get install -y vim curl wget"
|
||||
web2.vm.provision "ansible" do |ansible|
|
||||
kea2.vm.provision "ansible" do |ansible|
|
||||
ansible.playbook = "provision/setup-kea.yml"
|
||||
end
|
||||
end
|
||||
|
@ -11,7 +11,11 @@
|
||||
state: present
|
||||
|
||||
- name: genere ca.cnf dasn /etc/kea-ctrl-agent
|
||||
template:
|
||||
src: ca.j2
|
||||
dest: present
|
||||
fetch:
|
||||
src: /etc/kea/kea-ctrl-agent.conf
|
||||
dest: .
|
||||
|
||||
- name: genere ca.cnf dasn /etc/kea-ctrl-agent
|
||||
fetch:
|
||||
src: /etc/kea/kea-dhcp4-server.conf
|
||||
dest: ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user