vagrant-openstack-cloud-provider 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTIzYzQ2NDRjZjA0NDQ0OTU0ZWNkYzAxY2QzNjVjOWIxYmU5MzY5YQ==
4
+ YjQwMjhkOTY1MjA4MjcwMmY3ZTc2MDcxNDMxYzY5NmNhYTQ5ZmMyNA==
5
5
  data.tar.gz: !binary |-
6
- Mzc3NTljZmI3ZDBhNDFlZGY0NTlmZmE4NTdjMTQ0YzMwNTRiMTEwOA==
6
+ YWY1YmQ1OWEyMjE4Yzg1OTZiZDI0ZjQ3NWQxNzc0NGEzY2U4M2M2ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWZiOTljNWQyNDNkYzA0ZDEwMjZkNzdkMmRmZTA4OGI0ZTllMDI4MjRiMGQ1
10
- MzAzNjI4NDZlNWIwY2U1MWMwNzlmODU4ZDJhMTNiOWIyNjE1MGEyZTZlZWIz
11
- NGQzYWJlNzkwYzM0MDc5ODhlZDczNDYxN2Q0MWM0MDEzMjRmNjU=
9
+ OThjNTk2YzNlMDNhMDdmMDM0NTk3OTJhMDUzMzRhNGQyMGI4MzcwYjUxNzRi
10
+ NGQ5MWQ2ZTkyYTc1MTZjYWY1ODgzMjBiMzJmOWJkNGExYTg3YWFkNGU1YWM1
11
+ Y2E3YTliOTk4ZjM1OWZlMmQxMTMyMmU1ZDVjY2M0ZDAzODU5ZjQ=
12
12
  data.tar.gz: !binary |-
13
- Mjk3M2NlNjk3OTY5Yjc3ZTY3NDUxMGFiZGRkNDQxNTkzYmE3ZmRhNjZhODk0
14
- YTFhOTczMDYyZmQ2MTJmYmJiYWUyNDgyNmU2MjRkM2M4NmFiYmY1M2MwZDA2
15
- ZmQzMDg0MmI1MDdjNGM0MzcxNWZlMDg0NWVmODg2YTU3MGNhNDg=
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
- $ git clone https://github.com/mat128/vagrant-openstack-cloud-provider.git
25
- $ cd vagrant-openstack-cloud-provider
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
- config.vm.provider :openstack do |os| # e.g.
58
- os.username = "YOUR USERNAME" # "#{ENV['OS_USERNAME']}"
59
- os.api_key = "YOUR API KEY" # "#{ENV['OS_PASSWORD']}"
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 = "KEYSTONE AUTH URL" # "#{ENV['OS_AUTH_URL']}/tokens"
63
- os.keypair_name = "YOUR KEYPAIR NAME"
64
- os.ssh_username = "SSH USERNAME"
65
- os.public_network_name = "NAME OF THE PUBLIC NETWORK"
66
- os.networks = %w(net1 net2 net3)
67
- os.tenant = "NAME OF THE TENANT"
68
- os.region = "REGION_NAME"
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 repository out, and use
150
- [Bundler](http://gembundler.com) to get the dependencies:
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
@@ -143,7 +143,7 @@ module VagrantPlugins
143
143
  end
144
144
  protected
145
145
 
146
- def ssh_responding?(env)
146
+ def ssh_is_responding?(env)
147
147
  begin
148
148
  # Wait for SSH to become available
149
149
  env[:ui].info(I18n.t("vagrant_openstack.waiting_for_ssh"))
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OpenStack
3
- VERSION = "1.1.5"
3
+ VERSION = "1.1.6"
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ describe VagrantPlugins::OpenStack::Action::CreateServer do
21
21
  end
22
22
  end
23
23
 
24
- describe '#ssh_responding?' do
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('ssh_responding?', env)
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('ssh_responding?', env) }.to raise_error(VagrantPlugins::OpenStack::Errors::SshUnavailable)
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.5
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-08 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog