chef-vault 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef-vault/version.rb +2 -2
- data/lib/chef/knife/EncryptPassword.rb +7 -0
- metadata +2 -2
data/lib/chef-vault/version.rb
CHANGED
@@ -52,6 +52,13 @@ class EncryptPassword < Chef::Knife
|
|
52
52
|
data_bag = "passwords"
|
53
53
|
data_bag_path = "./data_bags/#{data_bag}"
|
54
54
|
|
55
|
+
unless ::File.exists?(data_bag_path)
|
56
|
+
require 'fileutils'
|
57
|
+
|
58
|
+
puts("INFO: #{data_bag_path} does not exist, creating...")
|
59
|
+
FileUtils.mkdir_p(data_bag_path)
|
60
|
+
end
|
61
|
+
|
55
62
|
node_search = config[:search]
|
56
63
|
admins = config[:admins]
|
57
64
|
username = config[:username]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|