knife-baremetalcloud 0.0.4 → 0.0.5

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.md CHANGED
@@ -1,31 +1,31 @@
1
- Knife baremetalcloud plugin
1
+ baremetalcloud's Knife plugin
2
2
  ===========================
3
3
 
4
- This is the baremetalcloud implementation for Chef's Knife command. The plugin allows Chef users to manage compute nodes on baremetalcloud infrastructure.
4
+ This is baremetalcloud's implementation for Chef's Knife command. The plugin allows Chef users to manage compute nodes on baremetalcloud's infrastructure.
5
5
 
6
6
  Installation
7
7
  ------------
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
- command(gem 'knife-baremetalcloud')
11
+ gem 'knife-baremetalcloud'
12
12
 
13
13
  And then execute:
14
14
 
15
- command($ bundle)
15
+ $ bundle
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- command($ gem install knife-baremetalcloud)
19
+ $ gem install knife-baremetalcloud
20
20
 
21
21
  Usage
22
22
  -----
23
23
 
24
24
  ## Available commands:
25
- command(knife baremetalcloud list configurations (options))
26
- command(knife baremetalcloud list images (options))
27
- command(knife baremetalcloud list servers (options))
28
- command(knife baremetalcloud server create (options))
25
+ knife baremetalcloud list configurations (options)
26
+ knife baremetalcloud list images (options)
27
+ knife baremetalcloud list servers (options)
28
+ knife baremetalcloud server create (options)
29
29
 
30
30
  ### List Configurations
31
31
  #### Description
@@ -37,7 +37,7 @@ This command list all available server's configurations at baremetalcloud.
37
37
  -x, --username USERNAME Customer username
38
38
 
39
39
  #### Usage
40
- command($ knife baremetalcloud list configurations -x USERNAME -P PASSWORD)
40
+ $ knife baremetalcloud list configurations -x USERNAME -P PASSWORD
41
41
 
42
42
  #### Example of Output
43
43
  Column description:
@@ -61,14 +61,14 @@ Column description:
61
61
 
62
62
  ### List Images
63
63
  #### Description
64
- This command list all available images at baremetalcloud.
64
+ This command lists all the available images with baremetalcloud.
65
65
 
66
66
  #### Parameters
67
67
  -P, --password PASSWORD Customer password
68
68
  -x, --username USERNAME Customer username
69
69
 
70
70
  #### Usage
71
- command($ knife baremetalcloud list images -x USERNAME -P PASSWORD)
71
+ $ knife baremetalcloud list images -x USERNAME -P PASSWORD
72
72
 
73
73
  #### Example of Output
74
74
  Column description:
@@ -91,7 +91,7 @@ Column description:
91
91
 
92
92
  ### List Servers
93
93
  #### Description
94
- This command list all servers from a customer account at baremetalcloud.
94
+ This command lists all servers from a customers account with baremetalcloud.
95
95
 
96
96
 
97
97
  #### Parameters
@@ -99,7 +99,7 @@ This command list all servers from a customer account at baremetalcloud.
99
99
  -x, --username USERNAME Customer username
100
100
 
101
101
  #### Usage
102
- command($ knife baremetalcloud list servers -x USERNAME -P PASSWORD)
102
+ $ knife baremetalcloud list servers -x USERNAME -P PASSWORD
103
103
 
104
104
  #### Example of Output
105
105
  Column description:
@@ -115,7 +115,7 @@ Column description:
115
115
 
116
116
  ### Server Create
117
117
  #### Description
118
- This command add and bootstrap a server at baremetalcloud.
118
+ The command below will add a server with baremetalcloud and bootstrap.
119
119
 
120
120
  #### Parameters
121
121
  -P, --password PASSWORD Customer password
@@ -126,7 +126,7 @@ This command add and bootstrap a server at baremetalcloud.
126
126
  -r, --run-list RUN_LIST Comma separated list of roles/recipes to apply
127
127
 
128
128
  #### Usage
129
- command($ knife baremetalcloud list images -x USERNAME -P PASSWORD -C 'santaclara-ca-usa 2.8 GHz Paxville 2GB DDR-400 73.0GB 3.5" SCSI 10000RPM' -i 'CentOS 5.8' -n 'myChefServer' -r 'myrole[cookbook]' )
129
+ $ knife baremetalcloud list images -x USERNAME -P PASSWORD -C 'santaclara-ca-usa 2.8 GHz Paxville 2GB DDR-400 73.0GB 3.5" SCSI 10000RPM' -i 'CentOS 5.8' -n 'myChefServer' -r 'myrole[cookbook]'
130
130
 
131
131
 
132
132
  Contributing
@@ -3,7 +3,7 @@ require File.expand_path('../lib/knife-baremetalcloud/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = ["knife-baremetalcloud"]
6
- gem.version = '0.0.4'
6
+ gem.version = '0.0.5'
7
7
  gem.authors = ["Diego Desani"]
8
8
  gem.email = ["diego@newservers.com"]
9
9
  gem.summary = %q{baremetalcloud Compute Support for Chef's Knife Command}
@@ -55,7 +55,7 @@ class Chef
55
55
  })
56
56
 
57
57
  # Get the API response
58
- response = @bmc.list_available_servers.body
58
+ response = @bmc.list_configurations.body
59
59
 
60
60
  # Error handling
61
61
  errorHandling(response)
@@ -24,7 +24,7 @@ class Chef
24
24
  :short => '-P PASSWORD',
25
25
  :long => '--password PASSWORD',
26
26
  :description => 'Customer password'
27
-
27
+
28
28
  option :config,
29
29
  :short => '-C CONFIG',
30
30
  :long => '--configuration CONFIG',
@@ -47,8 +47,6 @@ class Chef
47
47
  :proc => lambda { |o| o.split(/[\s,]+/) },
48
48
  :default => []
49
49
 
50
-
51
-
52
50
  # Method to check when "system" credentials are available
53
51
  # Node's IP Address is updated
54
52
  def isNodeReady(serverId)
@@ -129,10 +127,10 @@ class Chef
129
127
  bootstrap = Chef::Knife::Bootstrap.new
130
128
  bootstrap.name_args = locateConfigValue(:chef_node_name)
131
129
  bootstrap.config[:run_list] = locateConfigValue(:run_list)
132
- bootstrap.config[:identity_file] = locateConfigValue[:identity_file]
130
+ bootstrap.config[:identity_file] = locateConfigValue(:identity_file)
133
131
  bootstrap.config[:ssh_user] = locateConfigValue(:ssh_user)
134
132
  bootstrap.config[:ssh_password] = locateConfigValue(:ssh_password)
135
- bootstrap.config[:use_sudo] = true unless locateConfigValue[:ssh_user] == 'root'
133
+ bootstrap.config[:use_sudo] = true unless locateConfigValue(:ssh_user) == 'root'
136
134
  bootstrap.config[:environment] = config[:environment]
137
135
  bootstrap
138
136
  end
@@ -1,5 +1,5 @@
1
1
  module Knife
2
2
  module Baremetalcloud
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-baremetalcloud
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Diego Desani
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-23 00:00:00 Z
18
+ date: 2012-08-24 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: fog