knife-openstack 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -35,7 +35,7 @@ If your knife.rb file will be checked into a SCM system (ie readable by others)
35
35
  You also have the option of passing your OpenStack API Key/Secret into the individual knife subcommands using the <tt>-A</tt> (or <tt>--openstack-access-key-id</tt>) <tt>-K</tt> (or <tt>--openstack-secret-access-key</tt>) command options
36
36
 
37
37
  # provision a new m1.small Ubuntu 10.04 webserver
38
- knife openstack server create 'role[webserver]' -i ami-7000f019 -f m1.small -A 'Your OpenStack Access Key ID' -K 'Your OpenStack Secret Access Key' --openstack-api-endpoint 'https://cloud.mycompany.com/v1.0'
38
+ knife openstack server create 'role[webserver]' -I ami-7000f019 -f m1.small -A 'Your OpenStack Access Key ID' -K 'Your OpenStack Secret Access Key' --openstack-api-endpoint 'https://cloud.mycompany.com/v1.0'
39
39
 
40
40
  Additionally the following options may be set in your `knife.rb`:
41
41
 
@@ -68,14 +68,22 @@ class Chef
68
68
  ui.color('Name', :bold),
69
69
  ui.color('Location', :bold)
70
70
  ]
71
- connection.images.sort_by(&:name).each do |image|
72
- image_list << image.id.to_s
73
- image_list << image.kernel_id.to_s
74
- image_list << image.architecture.to_s
71
+
72
+ connection.images.sort_by do |image|
73
+ [image.name, image.id].compact
74
+ end.each do |image|
75
+ image_list << image.id
76
+ image_list << image.kernel_id
77
+ image_list << image.architecture
75
78
  image_list << image.root_device_type
76
79
  image_list << image.name
77
80
  image_list << image.location
78
81
  end
82
+
83
+ image_list = image_list.map do |item|
84
+ item.to_s
85
+ end
86
+
79
87
  puts ui.list(image_list, :columns_across, 6)
80
88
  end
81
89
  end
@@ -109,6 +109,11 @@ class Chef
109
109
  :long => "--prerelease",
110
110
  :description => "Install the pre-release chef gems"
111
111
 
112
+ option :bootstrap_version,
113
+ :long => "--bootstrap-version VERSION",
114
+ :description => "The version of Chef to install",
115
+ :proc => Proc.new { |v| Chef::Config[:knife][:bootstrap_version] = v }
116
+
112
117
  option :region,
113
118
  :long => "--region REGION",
114
119
  :description => "Your OpenStack region",
@@ -222,6 +227,7 @@ class Chef
222
227
  puts "#{ui.color("Private DNS Name", :cyan)}: #{server.private_dns_name}"
223
228
  puts "#{ui.color("SSH Key", :cyan)}: #{server.key_name}"
224
229
  puts "#{ui.color("Private IP Address", :cyan)}: #{server.private_ip_address}"
230
+ puts "#{ui.color("Environment", :cyan)}: #{config[:environment] || '_default'}"
225
231
  puts "#{ui.color("Run List", :cyan)}: #{config[:run_list].join(', ')}"
226
232
  end
227
233
 
@@ -233,6 +239,7 @@ class Chef
233
239
  bootstrap.config[:identity_file] = config[:identity_file]
234
240
  bootstrap.config[:chef_node_name] = config[:chef_node_name] || server.id
235
241
  bootstrap.config[:prerelease] = config[:prerelease]
242
+ bootstrap.config[:bootstrap_version] = locate_config_value(:bootstrap_version)
236
243
  bootstrap.config[:distro] = locate_config_value(:distro)
237
244
  bootstrap.config[:use_sudo] = true
238
245
  bootstrap.config[:template_file] = locate_config_value(:template_file)
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module OpenStack
3
- VERSION = "0.5.3"
3
+ VERSION = "0.5.4"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: knife-openstack
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.3
5
+ version: 0.5.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Seth Chisamore
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-06 00:00:00 -04:00
13
+ date: 2011-05-02 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency