Skip to content

Commit d18581b

Browse files
fboulianeSimon
authored andcommitted
Add vagrant example box in project
1 parent 3c7b9bc commit d18581b

5 files changed

Lines changed: 49 additions & 25 deletions

File tree

README.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,7 @@ $ vagrant up --provider=openstack
5757

5858
### Using keystone v2 (deprecated)
5959

60-
You can use a Vagrantfile such as :
61-
62-
```ruby
63-
require 'vagrant-openstack-cloud-provider'
64-
65-
Vagrant.configure("2") do |config|
66-
67-
# This is a publicly available dummy box.
68-
config.vm.box = "sharpie/dummy"
69-
70-
config.vm.provider :openstack do |os|
71-
os.username = "${OS_USERNAME}"
72-
os.api_key = "${OS_PASSWORD}"
73-
os.flavor = /m1.tiny/
74-
os.image = /Ubuntu/
75-
os.endpoint = "${OS_AUTH_URL}/tokens"
76-
os.keypair_name = "" # Your keypair name
77-
os.ssh_username = "" # Your image SSH username
78-
os.public_network_name = "public" # Your Neutron network name
79-
os.networks = %w() # Additional neutron networks
80-
os.tenant = "${OS_TENANT_NAME}"
81-
os.region = "${OS_REGION_NAME}"
82-
end
83-
end
84-
```
60+
You can use a Vagrantfile that [looks like this](example_box/legacy_keystonev2/Vagrantfile).
8561

8662
## Configuration
8763

example_box/current/Vagrantfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'vagrant-openstack-cloud-provider'
2+
3+
Vagrant.configure("2") do |config|
4+
5+
# This is a publicly available dummy box.
6+
config.vm.box = "sharpie/dummy"
7+
8+
config.vm.provider :openstack do |os|
9+
os.username = "${OS_USERNAME}"
10+
os.api_key = "${OS_PASSWORD}"
11+
os.flavor = /m1.tiny/
12+
os.image = /Ubuntu/
13+
os.endpoint = "${OS_AUTH_URL}" # such as http://openstack.invalid/ without /v3/auth/tokens
14+
os.keypair_name = "" # Your keypair name
15+
os.ssh_username = "" # Your image SSH username
16+
os.public_network_name = "public" # Your Neutron network name
17+
os.networks = %w() # Additional neutron networks
18+
os.region = "${OS_REGION_NAME}"
19+
os.project_name = "${OS_PROJECT_NAME}"
20+
os.project_domain_id = "${OS_PROJECT_DOMAIN_ID}"
21+
os.user_domain_name = "${OS_USER_DOMAIN_NAME}"
22+
os.identity_api_version = 'v3'
23+
end
24+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
require 'vagrant-openstack-cloud-provider'
2+
3+
Vagrant.configure("2") do |config|
4+
5+
# This is a publicly available dummy box.
6+
config.vm.box = "sharpie/dummy"
7+
8+
config.vm.provider :openstack do |os|
9+
os.username = "${OS_USERNAME}"
10+
os.api_key = "${OS_PASSWORD}"
11+
os.flavor = /m1.tiny/
12+
os.image = /Ubuntu/
13+
os.endpoint = "${OS_AUTH_URL}/tokens"
14+
os.keypair_name = "" # Your keypair name
15+
os.ssh_username = "" # Your image SSH username
16+
os.public_network_name = "public" # Your Neutron network name
17+
os.networks = %w() # Additional neutron networks
18+
os.tenant = "${OS_TENANT_NAME}"
19+
os.region = "${OS_REGION_NAME}"
20+
end
21+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"provider": "openstack"
3+
}

0 commit comments

Comments
 (0)