knife-brightbox 0.5.0 → 0.6.0

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: 639ccc5142308e24532bb512eecb43c020cfc289
4
- data.tar.gz: 19432c8bcfdc102934e39afe2c255fcf9472a3fe
3
+ metadata.gz: 7bb0e146bc9621a0d3500e6505cb712b70c9d67f
4
+ data.tar.gz: a0364096bfed3175c858d37b2573c6841ed1abc9
5
5
  SHA512:
6
- metadata.gz: dbf9581cf5438153bca8359fb6a26d0cb1ad839aecb706ebe592004b459318d7d7a03ae1fb0756cf5c544c299f9b513c94d096ab2b84946640e0725780aa1562
7
- data.tar.gz: 67e9c80765a1a583549d90b599d799c8e5e3b5ab9b5c3c5f442ddf0588bc4eff4e58ce92edf07c255ae2002acdde8ca08e4744cb02203d57c0abc98fc2630792
6
+ metadata.gz: f9c85607278ed1908f5798ae41475cd07706df2882cf31d3a19fd14760efd6c84731e1a20e5eb427d634d9a0c764cb69d8ba0cb7308121b4c167fcb734e11165
7
+ data.tar.gz: ffeddfc31604a6cb47b17a85ae4840e2d8636a5d781b265a1a9c8d2f0c63393827494976850aa08b5f9368b272c20939eae8672a15fdab2120862dcdab3d9723
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.0
2
+
3
+ * Add support for passing JSON attributes to booting servers
4
+
1
5
  # 0.5.0
2
6
 
3
7
  * Add support for `--secret` and `--secret-file` arguments
@@ -110,6 +110,13 @@ class Chef
110
110
  :description => "The ssh username; default is 'root'",
111
111
  :default => "root"
112
112
 
113
+ option :first_boot_attributes,
114
+ :short => "-j JSON_ATTRIBS",
115
+ :long => "--json-attributes",
116
+ :description => "A JSON string to be added to the first run of chef-client",
117
+ :proc => lambda { |o| JSON.parse(o) },
118
+ :default => {}
119
+
113
120
  option :identity_file,
114
121
  :short => "-i IDENTITY_FILE",
115
122
  :long => "--identity-file IDENTITY_FILE",
@@ -223,6 +230,7 @@ class Chef
223
230
  bootstrap.config[:use_sudo] = true unless config[:ssh_user] == 'root'
224
231
  bootstrap.config[:template_file] = locate_config_value(:template_file)
225
232
  bootstrap.config[:environment] = config[:environment]
233
+ bootstrap.config[:first_boot_attributes] = config[:first_boot_attributes]
226
234
  bootstrap.config[:no_host_key_verify] = config[:no_host_key_verify]
227
235
  bootstrap
228
236
  end
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Brightbox
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-brightbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog