-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
51 lines (44 loc) · 1.68 KB
/
Vagrantfile
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
43
44
45
46
47
48
49
50
51
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "debian/stretch64"
config.vm.define "debianstretch64" do |debianstretch64| end
# virtualbox provider only need a base virtualbox installation on
# the local system. This is the default if no provider requested
config.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 1
end
# openstack provider for Vagrant
# need vagrant-openstack-provider, See README.vagrant.md for details
# vagrant up --provider openstack
config.vm.provider :openstack do |os, override|
override.vm.box = "sharpie/dummy"
override.ssh.username = 'debian'
os.openstack_auth_url = ENV['OS_AUTH_URL']
os.username = ENV['OS_USERNAME']
os.password = ENV['OS_PASSWORD']
os.identity_api_version = ENV['OS_IDENTITY_API_VERSION']
# os.tenant_name = ENV['OS_TENANT_NAME']
os.user_domain_name = ENV['OS_USER_DOMAIN_NAME']
os.project_name = ENV['OS_PROJECT_NAME']
os.project_domain_name = ENV['OS_PROJECT_DOMAIN_ID']
os.flavor = 'GP1.XS'
os.image = 'Debian 9.5.5'
os.floating_ip_pool = ENV['OS_FLOATING_IP_POOL']
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "../tests/test.yml"
ansible.verbose = "vvv"
ansible.become = true
# ansible.galaxy_role_file = "../requirements.yml"
ansible.groups = {
"test" => ["debianstretch64"],
}
end
if Vagrant.has_plugin?("vagrant-cachier")
# Configure cached packages to be shared between instances of the same base box.
# More info on http://fgrehm.viewdocs.io/vagrant-cachier/usage
config.cache.scope = :box
end
end