chef-vault 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDMxOTgyNjE2N2UyYWE3YTcxMTUzZTIzZmNlYTY3NjU2ZDBkNzFkYw==
4
+ ZGZkNTFmZjk4NGQxY2UwMjViZDI1MGM0NTczYWMxMDcyMWUxMGEwZQ==
5
5
  data.tar.gz: !binary |-
6
- YjlmNzBhZDFiYzNmODI4MGVlYjljZDk2NGRiY2E4ZDliN2I1ODkzOA==
6
+ MjA3MGY0OWY1N2NkMzA2MTNkOWY4OGUzZGQ2YmZmN2NhZDhlYjIwMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTY0YTFkZWNmOGY0ZTIwZDBmMWIwOGY4YmEwMDI5ZmJhZWRlOWI0MmI4MTYx
10
- MGRjNDg2OTdjZDM2OWNiMWMyODk0ZmE5MWU5OGU3YWIyODBjOWY0NTQ5MTc4
11
- MjdjNmQ5NjI0MGMyMDU5NzUzYTM3OTQ0ODMxYjYzYzEyZGQ4MWY=
9
+ Y2Q2MTI4NGZhN2Y3ZDM0Y2JlNWFkZGQxMzEyMGQ2ZmI3NjU2N2I0MDE1NmRj
10
+ NzlhNGY2ODIyNmU4YjI2NDg5YjkxYTgxMzIwMzEzOWI2YWZhYzY5YTg5YWJj
11
+ ZGI4NTA3MGVjNGIyYzU0MzI5ZjE0N2EyZjhiNzgwNGIzY2FlNTE=
12
12
  data.tar.gz: !binary |-
13
- MGY2M2RmODJkNTdhN2FmMzVlMjA5MmNmYzVkZGE3NjMzOTY0MDJlNThlODdj
14
- MGY5MmM4NGE1YzAzMTcyMzk2MjhmNjUxNjlkNGM5MmE3ZjNhYzkxYjljYWQ4
15
- MTRiNjAzMjQ4MWY2OTk2NjdlMDVlZDQ4OGRkZmZmOWUwYjZmNWI=
13
+ YTVmMzRlNTY3NGE5YWY4NzNmMTkyYWRhYjRhNTY5NjQ4YjkwNTc1NzFkYmU2
14
+ MGY2OTM2ZjE1N2E1YzM0ZjkwOTM4MDFmZjIxOWU5ZWMwZGIyNDRkNTI3Mjlm
15
+ N2M4MWEzODIwZmE1YmY4NmQzNjhkNmE4OGIxNjg2NDc1MjEyNTk=
@@ -1,7 +1,10 @@
1
1
  ## Planned (Unreleased)
2
2
 
3
3
  ## Released
4
- ## v2.2.0 / 2013-01-21
4
+ ## v2.2.1 / 2014-02-26
5
+ * Add vault_admins to knife.rb for a default set of vault admins
6
+
7
+ ## v2.2.0 / 2014-01-21
5
8
  * Validate data bag ID before saving
6
9
  * Add search_query to vault metadata
7
10
  * Refactor knife commands to be knife vault verb
data/README.md CHANGED
@@ -26,6 +26,10 @@ See KNIFE_EXAMPLES.md for examples of commands
26
26
  To set 'client' as the default mode, add the following line to the knife.rb file.
27
27
  knife[:vault_mode] = 'client'
28
28
 
29
+ To set the default list of admins for creating and updating vaults, add the following line to the knife.rb file.
30
+ knife[:vault_admins] = ["example-alice", "example-bob", "example-carol"]
31
+ (These values can be overridden on the command line by using -A)
32
+
29
33
  NOTE: chef-vault 1.0 knife commands are not supported! Please use chef-vault 2.0 commands.
30
34
 
31
35
  ### Vault
@@ -14,6 +14,6 @@
14
14
  # limitations under the License.
15
15
 
16
16
  class ChefVault
17
- VERSION = "2.2.0"
17
+ VERSION = "2.2.1"
18
18
  MAJOR, MINOR, TINY = VERSION.split('.')
19
19
  end
@@ -47,7 +47,7 @@ class Chef
47
47
  item = @name_args[1]
48
48
  values = @name_args[2]
49
49
  search = config[:search]
50
- admins = config[:admins]
50
+ admins = config[:admins] || Chef::Config[:knife][:vault_admins].join(',')
51
51
  json_file = config[:json]
52
52
  file = config[:file]
53
53
 
@@ -47,7 +47,7 @@ class Chef
47
47
  item = @name_args[1]
48
48
  values = @name_args[2]
49
49
  search = config[:search]
50
- admins = config[:admins]
50
+ admins = config[:admins] || Chef::Config[:knife][:vault_admins].join(',')
51
51
  json_file = config[:json]
52
52
  file = config[:file]
53
53
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Moser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-21 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef