vagrant-openstack-cloud-provider 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjQwMjhkOTY1MjA4MjcwMmY3ZTc2MDcxNDMxYzY5NmNhYTQ5ZmMyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWY1YmQ1OWEyMjE4Yzg1OTZiZDI0ZjQ3NWQxNzc0NGEzY2U4M2M2ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OThjNTk2YzNlMDNhMDdmMDM0NTk3OTJhMDUzMzRhNGQyMGI4MzcwYjUxNzRi
|
10
|
+
NGQ5MWQ2ZTkyYTc1MTZjYWY1ODgzMjBiMzJmOWJkNGExYTg3YWFkNGU1YWM1
|
11
|
+
Y2E3YTliOTk4ZjM1OWZlMmQxMTMyMmU1ZDVjY2M0ZDAzODU5ZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGU4ZWU1ODU4YjY5N2NmODlhYmFmNzYzY2NjYWFhMGEyODc1OGRjNmE4MjMz
|
14
|
+
YzM3ZDZkYjZmZDdiODkyMzU1YzJmNTViOTMwOGIyZDliOTFmNzgyNzA0YWJm
|
15
|
+
NjEwZjIyMzA0YmExNmU5YTdmZTU3ODI0NWYzMzVlMzc0YTk2MTQ=
|
data/README.md
CHANGED
@@ -21,76 +21,34 @@ This plugin started as a fork of the Vagrant Rackspace provider.
|
|
21
21
|
## Usage
|
22
22
|
|
23
23
|
```
|
24
|
-
$
|
25
|
-
$
|
26
|
-
$ gem build vagrant-openstack-cloud-provider.gemspec
|
27
|
-
$ vagrant plugin install vagrant-openstack-cloud-provider-*.gem
|
28
|
-
...
|
29
|
-
$ vagrant up --provider=openstack
|
30
|
-
...
|
31
|
-
```
|
32
|
-
|
33
|
-
Of course prior to doing this, you'll need to obtain an OpenStack-compatible
|
34
|
-
box file for Vagrant.
|
35
|
-
|
36
|
-
## Quick Start
|
37
|
-
|
38
|
-
After installing the plugin (instructions above), the quickest way to get
|
39
|
-
started is to actually use a dummy OpenStack box and specify all the details
|
40
|
-
manually within a `config.vm.provider` block. So first, add the dummy
|
41
|
-
box using any name you want:
|
42
|
-
|
43
|
-
```
|
44
|
-
$ vagrant box add dummy https://github.com/mat128/vagrant-openstack-cloud-provider/raw/master/dummy.box
|
45
|
-
...
|
46
|
-
```
|
47
|
-
|
48
|
-
And then make a Vagrantfile that looks like the following, filling in
|
49
|
-
your information where necessary.
|
50
|
-
|
51
|
-
```
|
24
|
+
$ vagrant plugin install vagrant-openstack-cloud-provider
|
25
|
+
$ cat <<EOF > Vagrantfile
|
52
26
|
require 'vagrant-openstack-cloud-provider'
|
53
27
|
|
54
28
|
Vagrant.configure("2") do |config|
|
55
|
-
config.vm.box = "dummy"
|
56
29
|
|
57
|
-
|
58
|
-
|
59
|
-
|
30
|
+
# This is a publicly available dummy box.
|
31
|
+
config.vm.box = "sharpie/dummy"
|
32
|
+
|
33
|
+
config.vm.provider :openstack do |os|
|
34
|
+
os.username = "${OS_USERNAME}"
|
35
|
+
os.api_key = "${OS_PASSWORD}"
|
60
36
|
os.flavor = /m1.tiny/
|
61
37
|
os.image = /Ubuntu/
|
62
|
-
os.endpoint = "
|
63
|
-
os.keypair_name = "
|
64
|
-
os.ssh_username = "SSH
|
65
|
-
os.public_network_name = "
|
66
|
-
os.networks = %w(
|
67
|
-
os.tenant = "
|
68
|
-
os.region = "
|
38
|
+
os.endpoint = "${OS_AUTH_URL}/tokens"
|
39
|
+
os.keypair_name = "" # Your keypair name
|
40
|
+
os.ssh_username = "" # Your image SSH username
|
41
|
+
os.public_network_name = "public" # Your Neutron network name
|
42
|
+
os.networks = %w() # Additional neutron networks
|
43
|
+
os.tenant = "${OS_TENANT_NAME}"
|
44
|
+
os.region = "${OS_REGION_NAME}"
|
69
45
|
end
|
70
46
|
end
|
47
|
+
EOF
|
48
|
+
$ vagrant up --provider=openstack
|
49
|
+
...
|
71
50
|
```
|
72
51
|
|
73
|
-
And then run `vagrant up --provider=openstack`.
|
74
|
-
|
75
|
-
This will start a tiny Ubuntu instance in your OpenStack installation within
|
76
|
-
your tenant. And assuming your SSH information was filled in properly
|
77
|
-
within your Vagrantfile, SSH and provisioning will work as well.
|
78
|
-
|
79
|
-
Note that normally a lot of this boilerplate is encoded within the box
|
80
|
-
file, but the box file used for the quick start, the "dummy" box, has
|
81
|
-
no preconfigured defaults.
|
82
|
-
|
83
|
-
## Box Format
|
84
|
-
|
85
|
-
Every provider in Vagrant must introduce a custom box format. This
|
86
|
-
provider introduces `openstack` boxes. You can view an example box in
|
87
|
-
the [example_box/ directory](https://github.com/mat128/vagrant-openstack-cloud-provider/tree/master/example_box).
|
88
|
-
That directory also contains instructions on how to build a box.
|
89
|
-
|
90
|
-
The box format is basically just the required `metadata.json` file
|
91
|
-
along with a `Vagrantfile` that does default settings for the
|
92
|
-
provider-specific configuration for this provider.
|
93
|
-
|
94
52
|
## Configuration
|
95
53
|
|
96
54
|
This provider exposes quite a few provider-specific configuration options:
|
@@ -146,8 +104,9 @@ chef, and puppet) to work!
|
|
146
104
|
|
147
105
|
## Development
|
148
106
|
|
149
|
-
To work on the `vagrant-openstack` plugin, clone this
|
150
|
-
[Bundler](http://gembundler.com) to get the
|
107
|
+
To work on the `vagrant-openstack-cloud-provider` plugin, clone this
|
108
|
+
repository out, and use [Bundler](http://gembundler.com) to get the
|
109
|
+
dependencies:
|
151
110
|
|
152
111
|
```
|
153
112
|
$ bundle
|
@@ -21,7 +21,7 @@ describe VagrantPlugins::OpenStack::Action::CreateServer do
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
describe '#
|
24
|
+
describe '#ssh_is_responding?' do
|
25
25
|
subject {
|
26
26
|
described_class.new(nil, nil)
|
27
27
|
}
|
@@ -35,7 +35,7 @@ describe VagrantPlugins::OpenStack::Action::CreateServer do
|
|
35
35
|
communicate.stub(:ready?).and_return(true)
|
36
36
|
machine.stub(:communicate).and_return(communicate)
|
37
37
|
env = { :ui => ui, :interrupted => false, :machine => machine }
|
38
|
-
subject.send('
|
38
|
+
subject.send('ssh_is_responding?', env)
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should raise if ssh isn't available" do
|
@@ -43,7 +43,7 @@ describe VagrantPlugins::OpenStack::Action::CreateServer do
|
|
43
43
|
communicate.stub(:ready?).and_return(false)
|
44
44
|
machine.stub(:communicate).and_return(communicate)
|
45
45
|
env = { :ui => ui, :interrupted => false, :machine => machine }
|
46
|
-
expect { subject.send('
|
46
|
+
expect { subject.send('ssh_is_responding?', env) }.to raise_error(VagrantPlugins::OpenStack::Errors::SshUnavailable)
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-openstack-cloud-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathieu Mitchell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog
|