knife-maas 1.1.3.pre → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 098cec2c19b768d4af4e30431c2c7c97dbcbd70f
4
- data.tar.gz: 259d8b7646d570680352bb60cfca067c7634a68d
3
+ metadata.gz: fb6991e39923bff3d624a37ee31c917eea2f850f
4
+ data.tar.gz: 31e0526c31401c12c5d0a60a61ea081c6564e37e
5
5
  SHA512:
6
- metadata.gz: 737b60942323354f6a4a47a85d50c9f4b883bd2dd7042ad5c52baebca979f1fcedac6b47ec11b0ca9ff80c9c6f17769d25af49ebe3d8f5cb56379e74aa55485f
7
- data.tar.gz: 42e5885b0f06d662f37f94446c702a3c20d26cc07733f75c5dc4e6fe11be9d432f0965867359b27d121b0fd937fecbe26b4d6e0a83c708a55769e55e672d576e
6
+ metadata.gz: 0adc4dc1a6dba84643b097e5808de87735c08d68804135b8a1f3de251ddd8dc70793d8bf737a3ec1ee6793ba0a0812754eaf22a013254a03adfdf18d4c1f7fc0
7
+ data.tar.gz: f6662e9dbad65642d1fb6bf3e53ed9a3be125b9e886eb6bd8f8c324d9aefab3f7258916a9f01cfd252c82e1bc1767abfb1f9b66fd7bf88d98b89ebe82137a7e1
@@ -1,2 +1,11 @@
1
+ ## v1.1.0
2
+ * Removed the ability to specify the specific host you'd like to acquire
3
+ * Added a check for releasing to verify both the hostname and system uuid to release it
4
+ * Removed the ability to specify the bootstrap command on a node, you now bootstrap what MAAS gives you
5
+ * Updated LICENSE.txt
6
+ * Fixed travis.yml etc
7
+ * Tightend up the gem dependencies
8
+
9
+
1
10
  ## v1.0.0
2
11
  * initial public release
data/README.md CHANGED
@@ -36,16 +36,15 @@ gem install knife-maas
36
36
 
37
37
  `knife maas server <subcommand> --help` - is available and there are other options that aren't listed here. These are the most commonly used ones.
38
38
 
39
- `knife maas server acquire -h HOSTNAME` - Acquires the node under your account
39
+ `knife maas server acquire` - Acquires a node under your account
40
40
 
41
- `knife maas server bootstrap -h HOSTNAME -s NODE-(UUID)` - Acquires and starts the node under your account, and bootstraps chef on it with your default settings
41
+ `knife maas server bootstrap` - Acquires and starts a node under your account, and bootstraps chef on it with your default settings
42
42
 
43
43
  `knife maas server start -s NODE-(UUID)` - Starts up the node
44
44
 
45
45
  `knife maas server stop -s NODE-(UUID)` - Stops the node
46
46
 
47
- `knife maas server release -s NODE-(UUID) -h HOSTNAME`- Releases the node and puts it back in the available resources. This also has a `-P` command to purge it from
48
- your chef server.
47
+ `knife maas server release -s NODE-(UUID) -h HOSTNAME`- Releases the node and puts it back in the available resources. This also has a `-P` command to purge it from your chef server.
49
48
 
50
49
  `knife maas server delete -s NODE-(UUID) -h HOSTNAME` - Removes the node completely from MAAS. This also has a `-P` command to purge it from your chef server.
51
50
 
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  class Knife
3
3
  module Maas
4
- VERSION = "1.1.3.pre"
4
+ VERSION = "1.1.5"
5
5
  end
6
6
  end
7
7
  end
@@ -54,7 +54,7 @@ class Chef
54
54
  errors = []
55
55
 
56
56
  keys.each do |k|
57
- if Chef::Config[:knife][k].nil?
57
+ if locate_config_value(k).nil?
58
58
  errors << "You did not provide a valid '#{k}' value."
59
59
  end
60
60
  end
@@ -36,11 +36,11 @@ class Chef
36
36
 
37
37
  # hack to ensure the node have had time to spin up
38
38
  print(".")
39
- sleep 60
39
+ sleep 30
40
40
  print(".")
41
41
 
42
42
  response = access_token.request(:post, "/nodes/#{system_id}/?op=start")
43
- puts "Starting up #{system_id} now...."
43
+ puts "\nStarting up #{hostname} now...."
44
44
 
45
45
  # hack to ensure the nodes have had time to spin up
46
46
  print(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-maas
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3.pre
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - JJ Asghar
@@ -123,9 +123,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ">"
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: 1.3.1
128
+ version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 2.2.2