knife-cloudstack-fog 0.3.2 → 0.3.3
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.
data/README.rdoc
CHANGED
@@ -121,7 +121,7 @@ Creates networks to be used by the knife cloudstack server create command in zon
|
|
121
121
|
|
122
122
|
= LICENSE:
|
123
123
|
|
124
|
-
Author:: Chirag Jog (<chirag@clogeny.com>), Jeff Moody (<jmoody@datapipe.com>),
|
124
|
+
Author:: Chirag Jog (<chirag@clogeny.com>), Jeff Moody (<jmoody@datapipe.com>), Damien Fuentes, Takashi Kanai (<anikundesu@gmail.com>)
|
125
125
|
Copyright:: Copyright (c) 2011 Clogeny, 2012 Datapipe, 2012 IDC Frontier Inc.
|
126
126
|
License:: Apache License, Version 2.0
|
127
127
|
|
@@ -69,7 +69,7 @@ class Chef
|
|
69
69
|
option :distro,
|
70
70
|
:short => "-d DISTRO",
|
71
71
|
:long => "--distro DISTRO",
|
72
|
-
:description => "Bootstrap a distro using a template; default is '
|
72
|
+
:description => "Bootstrap a distro using a template; default is 'chef-full'",
|
73
73
|
:proc => Proc.new { |d| Chef::Config[:knife][:distro] = d },
|
74
74
|
:default => "chef-full"
|
75
75
|
|
@@ -104,13 +104,13 @@ class Chef
|
|
104
104
|
|
105
105
|
option :server_name,
|
106
106
|
:short => "-N NAME",
|
107
|
-
:long => "--
|
108
|
-
:description => "The
|
107
|
+
:long => "--display-name NAME",
|
108
|
+
:description => "The instance display name"
|
109
109
|
|
110
110
|
option :host_name,
|
111
111
|
:short => "-H NAME",
|
112
112
|
:long => "--hostname NAME",
|
113
|
-
:description => "The
|
113
|
+
:description => "The instance host name"
|
114
114
|
|
115
115
|
option :keypair,
|
116
116
|
:short => "-k KEYPAIR",
|
@@ -121,6 +121,11 @@ class Chef
|
|
121
121
|
:short => "-D DISKOFFERINGID",
|
122
122
|
:long => "--diskoffering DISKOFFERINGID",
|
123
123
|
:description => "Specifies either the Disk Offering ID for the ROOT disk for an ISO template, or a DATA disk."
|
124
|
+
|
125
|
+
option :size,
|
126
|
+
:short => "-Z SIZE",
|
127
|
+
:long => "--size SIZE",
|
128
|
+
:description => "Specifies the arbitrary Disk Size for DATADISK volume in GB. Must be passed with custom size Disk Offering ID."
|
124
129
|
|
125
130
|
def bootstrap_for_node(host, user, password)
|
126
131
|
Chef::Log.debug("Bootstrap host: #{host}")
|
@@ -225,6 +230,10 @@ class Chef
|
|
225
230
|
options['diskofferingid'] = locate_config_value(:diskoffering)
|
226
231
|
end
|
227
232
|
|
233
|
+
if locate_config_value(:size) != nil
|
234
|
+
options['size'] = locate_config_value(:size)
|
235
|
+
end
|
236
|
+
|
228
237
|
Chef::Log.debug("Options: #{options} \n")
|
229
238
|
|
230
239
|
server = connection.deploy_virtual_machine(options)
|
@@ -45,8 +45,9 @@ class Chef
|
|
45
45
|
|
46
46
|
def print_servers(server_list,servers,options={})
|
47
47
|
server = servers
|
48
|
+
Chef::Log.debug("Servers: #{server}")
|
48
49
|
if zoneid = options[:zoneid]
|
49
|
-
server.reject!{|t| t['zoneid'] != zoneid
|
50
|
+
server.reject!{|t| t['zoneid'] != zoneid}
|
50
51
|
end
|
51
52
|
if state = options[:state]
|
52
53
|
state.downcase!
|
@@ -120,6 +121,7 @@ class Chef
|
|
120
121
|
# vmsort = locate_config_value(:sort)
|
121
122
|
|
122
123
|
response = connection.list_virtual_machines['listvirtualmachinesresponse']
|
124
|
+
Chef::Log.debug("API request: #{response}")
|
123
125
|
if virtual_machines = response['virtualmachine']
|
124
126
|
filters = {}
|
125
127
|
filters[:zoneid] = zoneid unless zoneid == 'all'
|
metadata
CHANGED
@@ -1,35 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-cloudstack-fog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Chirag Jog
|
9
|
-
- Jeff Moody
|
10
|
-
- dfuentes77
|
11
|
-
- Takashi Kanai
|
8
|
+
- Chirag Jog (chiragjog)
|
9
|
+
- Jeff Moody (fifthecho)
|
10
|
+
- Damien Fuentes (dfuentes77)
|
11
|
+
- Takashi Kanai (anikundesu)
|
12
|
+
- Kazuhiro Suzuki (ksauzz)
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
|
-
date: 2013-
|
16
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: fog
|
19
20
|
requirement: !ruby/object:Gem::Requirement
|
20
21
|
none: false
|
21
22
|
requirements:
|
22
|
-
- -
|
23
|
+
- - ! '>='
|
23
24
|
- !ruby/object:Gem::Version
|
24
|
-
version: 1.
|
25
|
+
version: 1.10.0
|
25
26
|
type: :runtime
|
26
27
|
prerelease: false
|
27
28
|
version_requirements: !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
33
|
+
version: 1.10.0
|
33
34
|
- !ruby/object:Gem::Dependency
|
34
35
|
name: chef
|
35
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,7 +38,7 @@ dependencies:
|
|
37
38
|
requirements:
|
38
39
|
- - ! '>='
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
+
version: 11.2.0
|
41
42
|
type: :runtime
|
42
43
|
prerelease: false
|
43
44
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,7 +46,23 @@ dependencies:
|
|
45
46
|
requirements:
|
46
47
|
- - ! '>='
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
+
version: 11.2.0
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rake
|
52
|
+
requirement: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ! '>='
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
type: :runtime
|
59
|
+
prerelease: false
|
60
|
+
version_requirements: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
49
66
|
description: Support for the Chef Knife command, leveraging FOG, for the Apache CloudStack
|
50
67
|
/ Citrix CloudPlatform API
|
51
68
|
email:
|
@@ -53,6 +70,7 @@ email:
|
|
53
70
|
- jmoody@datapipe.com
|
54
71
|
- ''
|
55
72
|
- anikundesu@gmail.com
|
73
|
+
- ksauzzmsg@gmail.com
|
56
74
|
executables: []
|
57
75
|
extensions: []
|
58
76
|
extra_rdoc_files:
|
@@ -64,10 +82,10 @@ files:
|
|
64
82
|
- lib/chef/knife/cloudstack_keypair_create.rb
|
65
83
|
- lib/chef/knife/cloudstack_keypair_delete.rb
|
66
84
|
- lib/chef/knife/cloudstack_keypair_list.rb
|
85
|
+
- lib/chef/knife/cloudstack_networkoffering_list.rb
|
67
86
|
- lib/chef/knife/cloudstack_network_create.rb
|
68
87
|
- lib/chef/knife/cloudstack_network_delete.rb
|
69
88
|
- lib/chef/knife/cloudstack_network_list.rb
|
70
|
-
- lib/chef/knife/cloudstack_networkoffering_list.rb
|
71
89
|
- lib/chef/knife/cloudstack_portforwardingrule_list.rb
|
72
90
|
- lib/chef/knife/cloudstack_publicip_create.rb
|
73
91
|
- lib/chef/knife/cloudstack_publicip_list.rb
|