berkshelf-solo 0.0.5 → 0.0.6

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: 6a4e2aeed57d4b02825ed46d5a04917071f54672
4
- data.tar.gz: 260b9803a8aaae751ded4f979e871d7b90ce0e64
3
+ metadata.gz: 7c8d9554487805830a458f0ea3c2d2d496afbb58
4
+ data.tar.gz: 4dbb6f03f6c27041b225eb5d598fbe33d4514e88
5
5
  SHA512:
6
- metadata.gz: d36d1c1216e4fad48ffc52a6c955ba799db77c0902b978274c3991a1c6f6f75152d3019a81e7877e33af7c66f25c35c561da7b3b0366886fa6ae56a63b57ebad
7
- data.tar.gz: d0482e4be0a5e3dab3f93c1733351a3b0b6ac2062f6a548fa4553dad10e6afa875ef6245ec2ac4c4fbaa2ec09643fd7aac20bf728a415b6615fbf97bf7be5de2
6
+ metadata.gz: 6d48525303e96d6fd4c41ac95b15ef3a6e3cdd5a729a83945235b64e3b0560cbca023b4d677d4d65396cce27698b748182b6f1640cf6b3937b9b26e3d3a454a6
7
+ data.tar.gz: c04bf102e2ea5322fdbfd37ba1101df1c68372777e9440b1b6dd88b574444f4e10c72068c8aa51bef74c76ffbba2c3f27cd970c75b4725425d5f9b4ba7532b94
data/README.md CHANGED
@@ -51,8 +51,17 @@ $ cat chef/solo.json
51
51
  ]
52
52
  }
53
53
  ```
54
+ You can also specify cookbook attributes using the `:attibutes` option
54
55
 
55
- To override attributes just place them inside the `solo.json` at the root level, for example setting the root password for our mysql server
56
+ ```ruby
57
+ cookbook 'mysql', :recipes => ["client", "server"], :attributes => {
58
+ "server_root_password" => "password",
59
+ "server_debian_password" => "password",
60
+ "server_repl_password" => "password"
61
+ }
62
+ ```
63
+ and after the `berks verndor` command was successfully run you should see them
64
+ inside the `solo.json`
56
65
 
57
66
  ```
58
67
  {
@@ -25,6 +25,7 @@ module Berkshelf
25
25
 
26
26
  dependencies.each do |name, opt|
27
27
  solo_config["run_list"] += (opt[:recipes] || ['default']).map {|o| "recipe[#{name}::#{o}]"}
28
+ solo_config[name] = opt[:attributes] if opt[:attributes]
28
29
  end
29
30
  solo_config["run_list"].uniq!
30
31
 
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module Solo
3
- VERSION="0.0.5"
3
+ VERSION="0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkshelf-solo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eran Barak Levi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: berkshelf
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0.beta9
47
+ version: '3.1'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0.beta9
54
+ version: '3.1'
55
55
  description: Makes Berkshelf more friendly to chef-solo by generating chef-solo folder
56
56
  layout
57
57
  email: eran@kontera.com