hiera-housekeeper 0.12 → 0.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -58,6 +58,9 @@ class Hiera
|
|
58
58
|
housekeeper_keyname = Backend.parse_string(Config[:housekeeper][:keyname], scope) || "housekeeper"
|
59
59
|
housekeeper_branch = Backend.parse_string(Config[:housekeeper][:branch], scope) || "master"
|
60
60
|
housekeeper_identity = "#{housekeeper_keyname}@#{fqdn}"
|
61
|
+
# Unfortunately the way the callback function works means we can only get this into the passphrase
|
62
|
+
# method by using an instance variable or by modifying gpgme. I chose the former.
|
63
|
+
@housekeeper_keypass = Backend.parse_string(Config[:housekeeper][:keypass], scope) || "housekeeper_bgch"
|
61
64
|
|
62
65
|
Backend.datasources(scope, order_override) do |source|
|
63
66
|
gpgfile = HouseKeeperCache.lookup(housekeeper_server, housekeeper_identity, housekeeper_branch, source)
|
@@ -116,13 +119,10 @@ class Hiera
|
|
116
119
|
end
|
117
120
|
|
118
121
|
def passfunc(hook, uid_hint, passphrase_info, prev_was_bad, fd)
|
119
|
-
housekeeper_keypass = "housekeeper_bgch" # Just for a second to test...
|
120
|
-
$stderr.write("Passphrase for #{uid_hint}: ")
|
121
|
-
$stderr.flush
|
122
122
|
begin
|
123
123
|
system('stty -echo')
|
124
124
|
io = IO.for_fd(fd, 'w')
|
125
|
-
io.puts(housekeeper_keypass)
|
125
|
+
io.puts(@housekeeper_keypass)
|
126
126
|
io.flush
|
127
127
|
ensure
|
128
128
|
(0 ... $_.length).each do |i| $_[i] = ?0 end if $_
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiera-housekeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.13'
|
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: 2014-06-
|
12
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hiera
|