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.
@@ -24,7 +24,7 @@ class Chef
24
24
  # Extending module.
25
25
  #
26
26
  module OpenNebulaDriver
27
- VERSION = '0.3.4'
27
+ VERSION = '0.4.3'
28
28
  end
29
29
  end
30
30
  end
@@ -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
@@ -36,6 +36,7 @@ class Chef
36
36
  attribute :ar_id, :kind_of => Integer
37
37
  attribute :template_file, :kind_of => String
38
38
  attribute :cluster_id, :kind_of => Integer
39
+ attribute :mode, :regex => [/^\d\d\d$/]
39
40
 
40
41
  attribute :driver
41
42
 
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
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: 2015-10-30 00:00:00.000000000 Z
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: '4.14'
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: '4.14'
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: []