opennebula-provider 0.2.1 → 0.2.2
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 +4 -4
- data/README.md +5 -1
- data/lib/opennebula-provider/config.rb +4 -4
- data/lib/opennebula-provider/version.rb +1 -1
- metadata +28 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2d32e5dfd846d294e33e81a0bf07a433c7bb6e9
|
|
4
|
+
data.tar.gz: 9111aaa8a2204fad1a1ba888174fb409f83da97b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 23cf4bf7cd13cd3fcabb02802cddff61c132278eb2d0a839b145f2ca89cde6052344f80955cabf9872624cf6181d8796fa8d9cb504618c71ff192b672866c73f
|
|
7
|
+
data.tar.gz: 6da88064dd693fcacbb9e91bfa794b7d4a0ac4f4c67e5e99d0e0fa6a8b2a5c9a77bd5e85907885f5df2c80fdd8786529ee54008018d23aed908d7874d7522dfd
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://rubygems.org/gems/opennebula-provider)
|
|
4
4
|
|
|
5
|
-
This is a Vagrant 1.5 plugin that add an OpenNebula provider to Vagrant.
|
|
5
|
+
This is a Vagrant 1.5+ plugin that add an OpenNebula provider to Vagrant.
|
|
6
6
|
|
|
7
7
|
**NOTE:** This plugin requires occi-api gem and works with [rOCCI-server](https://github.com/gwdg/rOCCI-server/).
|
|
8
8
|
|
|
@@ -51,6 +51,10 @@ end
|
|
|
51
51
|
* `resource_tpl` - OpenNebula resource template, default: small
|
|
52
52
|
* `title` - OpenNebula instance name
|
|
53
53
|
|
|
54
|
+
You can use ONE_USER, ONE_PASSWORD, ONE_ENDPOINT environment variables
|
|
55
|
+
instead of defining it in Vagrantfile.
|
|
56
|
+
However, Vagrantfile's provider config has more priority.
|
|
57
|
+
|
|
54
58
|
## Contributing
|
|
55
59
|
|
|
56
60
|
1. Fork it ( http://github.com/<my-github-username>/opennebula-provider/fork )
|
|
@@ -10,17 +10,17 @@ module VagrantPlugins
|
|
|
10
10
|
attr_accessor :title
|
|
11
11
|
|
|
12
12
|
def initialize
|
|
13
|
-
@endpoint = UNSET_VALUE
|
|
13
|
+
@endpoint = ENV['ONE_ENDPOINT'] || UNSET_VALUE
|
|
14
14
|
@auth = UNSET_VALUE
|
|
15
|
-
@username = UNSET_VALUE
|
|
16
|
-
@password = UNSET_VALUE
|
|
15
|
+
@username = ENV['ONE_USER'] || UNSET_VALUE
|
|
16
|
+
@password = ENV['ONE_PASSWORD'] || UNSET_VALUE
|
|
17
17
|
@os_tpl = UNSET_VALUE
|
|
18
18
|
@resource_tpl = UNSET_VALUE
|
|
19
19
|
@title = UNSET_VALUE
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def finalize!
|
|
23
|
-
@endpoint = nil if @endpoint == UNSET_VALUE
|
|
23
|
+
@endpoint = nil if @endpoint == UNSET_VALUE || @endpoint.empty?
|
|
24
24
|
@auth = 'basic' if @auth == UNSET_VALUE
|
|
25
25
|
@username = nil if @username == UNSET_VALUE
|
|
26
26
|
@password = nil if @password == UNSET_VALUE
|
metadata
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opennebula-provider
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cherdancev Evgeni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: occi-api
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '4.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '4.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - ~>
|
|
31
|
+
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '1.3'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - ~>
|
|
38
|
+
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '1.3'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: '0'
|
|
48
48
|
type: :development
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: rspec
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
description: OpenNebula provider for Vagrant
|
|
@@ -73,33 +73,33 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
+
- ".gitignore"
|
|
77
|
+
- Gemfile
|
|
76
78
|
- LICENSE.txt
|
|
77
|
-
- locales/en.yml
|
|
78
79
|
- README.md
|
|
79
|
-
-
|
|
80
|
+
- Rakefile
|
|
81
|
+
- boxes/dummy/README.md
|
|
80
82
|
- boxes/dummy/dummy.box
|
|
81
83
|
- boxes/dummy/metadata.json
|
|
82
|
-
-
|
|
83
|
-
- lib/opennebula-provider/
|
|
84
|
-
- lib/opennebula-provider/errors.rb
|
|
85
|
-
- lib/opennebula-provider/plugin.rb
|
|
86
|
-
- lib/opennebula-provider/helpers/rocci.rb
|
|
87
|
-
- lib/opennebula-provider/action/stop.rb
|
|
88
|
-
- lib/opennebula-provider/action/destroy.rb
|
|
84
|
+
- lib/opennebula-provider.rb
|
|
85
|
+
- lib/opennebula-provider/action.rb
|
|
89
86
|
- lib/opennebula-provider/action/check_state.rb
|
|
90
|
-
- lib/opennebula-provider/action/read_ssh_info.rb
|
|
91
87
|
- lib/opennebula-provider/action/connect_opennebula.rb
|
|
92
|
-
- lib/opennebula-provider/action/messages.rb
|
|
93
88
|
- lib/opennebula-provider/action/create.rb
|
|
89
|
+
- lib/opennebula-provider/action/destroy.rb
|
|
90
|
+
- lib/opennebula-provider/action/messages.rb
|
|
91
|
+
- lib/opennebula-provider/action/read_ssh_info.rb
|
|
94
92
|
- lib/opennebula-provider/action/start.rb
|
|
93
|
+
- lib/opennebula-provider/action/stop.rb
|
|
95
94
|
- lib/opennebula-provider/action/sync_folders.rb
|
|
96
|
-
- lib/opennebula-provider/action.rb
|
|
97
95
|
- lib/opennebula-provider/config.rb
|
|
96
|
+
- lib/opennebula-provider/errors.rb
|
|
97
|
+
- lib/opennebula-provider/helpers/rocci.rb
|
|
98
|
+
- lib/opennebula-provider/plugin.rb
|
|
98
99
|
- lib/opennebula-provider/provider.rb
|
|
99
|
-
- lib/opennebula-provider.rb
|
|
100
|
+
- lib/opennebula-provider/version.rb
|
|
101
|
+
- locales/en.yml
|
|
100
102
|
- opennebula-provider.gemspec
|
|
101
|
-
- Rakefile
|
|
102
|
-
- .gitignore
|
|
103
103
|
homepage: ''
|
|
104
104
|
licenses:
|
|
105
105
|
- MIT
|
|
@@ -110,17 +110,17 @@ require_paths:
|
|
|
110
110
|
- lib
|
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
112
|
requirements:
|
|
113
|
-
- -
|
|
113
|
+
- - ">="
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
115
|
version: '0'
|
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
requirements:
|
|
118
|
-
- -
|
|
118
|
+
- - ">="
|
|
119
119
|
- !ruby/object:Gem::Version
|
|
120
120
|
version: '0'
|
|
121
121
|
requirements: []
|
|
122
122
|
rubyforge_project:
|
|
123
|
-
rubygems_version: 2.
|
|
123
|
+
rubygems_version: 2.2.2
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: OpenNebula provider for Vagrant
|