chef-provisioning-opennebula 0.3.4 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -35
- data/lib/chef/provider/one_image.rb +69 -48
- data/lib/chef/provider/one_template.rb +113 -35
- data/lib/chef/provider/one_user.rb +1 -1
- data/lib/chef/provider/one_vnet.rb +2 -1
- data/lib/chef/provider/one_vnet_lease.rb +2 -17
- data/lib/chef/provisioning/opennebula_driver/credentials.rb +6 -2
- data/lib/chef/provisioning/opennebula_driver/driver.rb +69 -51
- data/lib/chef/provisioning/opennebula_driver/one_lib.rb +192 -53
- data/lib/chef/provisioning/opennebula_driver/version.rb +1 -1
- data/lib/chef/resource/one_image.rb +3 -2
- data/lib/chef/resource/one_template.rb +7 -5
- data/lib/chef/resource/one_vnet.rb +1 -0
- metadata +6 -4
@@ -42,6 +42,7 @@ class Chef
|
|
42
42
|
attribute :prefix, :kind_of => String, :equal_to => %w(vd xvd sd hd)
|
43
43
|
attribute :persistent, :kind_of => [TrueClass, FalseClass]
|
44
44
|
attribute :public, :kind_of => [TrueClass, FalseClass]
|
45
|
+
attribute :mode, :regex => [/^\d\d\d$/]
|
45
46
|
attribute :disk_type, :kind_of => String
|
46
47
|
attribute :source, :kind_of => String
|
47
48
|
attribute :target, :kind_of => String
|
@@ -49,10 +50,10 @@ class Chef
|
|
49
50
|
attribute :disk_id, :kind_of => [String, Integer]
|
50
51
|
attribute :image_file, :kind_of => String
|
51
52
|
attribute :cache, :kind_of => String
|
52
|
-
attribute :driver
|
53
|
-
|
54
53
|
attribute :download_url, :kind_of => String
|
55
54
|
attribute :image_id, :kind_of => Integer
|
55
|
+
attribute :http_port, :kind_of => Integer, :default => 8066
|
56
|
+
attribute :driver
|
56
57
|
|
57
58
|
def initialize(*args)
|
58
59
|
super
|
@@ -28,17 +28,19 @@ class Chef
|
|
28
28
|
class OneTemplate < Chef::Resource::LWRPBase
|
29
29
|
resource_name :one_template
|
30
30
|
|
31
|
-
attribute :template, :kind_of => Hash
|
32
|
-
attribute :template_file, :kind_of => String
|
31
|
+
attribute :template, :kind_of => Hash, :default => {}
|
32
|
+
attribute :template_file, :kind_of => String, :default => nil
|
33
|
+
attribute :mode, :regex => [/^[0-7]{3}$/], :default => '600'
|
33
34
|
attribute :driver
|
34
35
|
|
35
|
-
actions :create, :delete
|
36
|
+
actions :create, :create_if_missing, :delete
|
36
37
|
default_action :create
|
37
38
|
|
39
|
+
attr_accessor :exists
|
40
|
+
attr_accessor :equal
|
41
|
+
|
38
42
|
def initialize(*args)
|
39
43
|
super
|
40
|
-
@chef_environment = run_context.cheffish.current_environment
|
41
|
-
@chef_server = run_context.cheffish.current_chef_server
|
42
44
|
@driver = run_context.chef_provisioning.current_driver
|
43
45
|
end
|
44
46
|
end
|
metadata
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-provisioning-opennebula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew J. Brown
|
8
8
|
- Bogdan Buczynski
|
9
|
+
- Dongyu 'Gary' Zheng
|
9
10
|
- Evgeny Yurchenko
|
10
11
|
- Phil Oliva
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date:
|
15
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: chef
|
@@ -50,7 +51,7 @@ dependencies:
|
|
50
51
|
version: '4.10'
|
51
52
|
- - "<"
|
52
53
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
54
|
+
version: '5'
|
54
55
|
type: :runtime
|
55
56
|
prerelease: false
|
56
57
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -60,7 +61,7 @@ dependencies:
|
|
60
61
|
version: '4.10'
|
61
62
|
- - "<"
|
62
63
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
64
|
+
version: '5'
|
64
65
|
- !ruby/object:Gem::Dependency
|
65
66
|
name: rspec
|
66
67
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,6 +94,7 @@ description: Driver for creating OpenNebula instances in Chef Provisioning.
|
|
93
94
|
email:
|
94
95
|
- anbrown@blackberry.com
|
95
96
|
- bbuczynski@blackberry.com
|
97
|
+
- garydzheng@gmail.com
|
96
98
|
- eyurchenko@blackberry.com
|
97
99
|
- poliva@blackberry.com
|
98
100
|
executables: []
|