forked from luboszk/devstack-octavia-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
executable file
·42 lines (35 loc) · 1.29 KB
/
Vagrantfile
File metadata and controls
executable file
·42 lines (35 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
require "vagrant-reload"
require "vagrant-openstack-plugin"
Vagrant.configure(2) do |config|
config.vm.provider :openstack do |os|
# User, password and other configuration
os.openstack_auth_url = ENV["OS_AUTH_URL"]
os.username = ENV["OS_USERNAME"]
os.password = ENV["OS_PASSWORD"]
os.tenant_name = ENV["OS_PROJECT_NAME"]
os.openstack_network_url = ENV["OS_NETWORK_URL"]
os.openstack_image_url = ENV["OS_IMAGE_URL"]
# VM configuration
os.flavor = "memory1-32"
os.networks = ["dilu_mgmt"]
os.keypair_name = "dilu"
os.security_groups = ["default-cleared", "ssh", "mosh"]
os.volume_boot = {
image: "ubuntu-16.04-cloud",
size: 50,
delete_on_destroy: true
}
end
config.vm.define "dilu-devstack-octavia-kvm" do |octavia|
octavia.ssh.private_key_path = "~/.ssh/id_rsa"
octavia.ssh.proxy_command = "ssh -W %h:%p -q bastion"
octavia.ssh.forward_agent = true
octavia.ssh.username = "ubuntu"
octavia.vm.provision "shell", inline: "sudo apt-get -y install python-minimal"
octavia.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
end
end
end