salthiera 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/salt_hiera/plugins/efiles.rb +5 -1
- data/lib/salt_hiera/plugins/eyaml.rb +1 -4
- data/lib/salt_hiera/salt_hiera.rb +1 -1
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6dfddae797ff8c73327dba2cf3543db5d1116946
|
4
|
+
data.tar.gz: aa6f68d66557c3c847f5a3130c88e6bab576214d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 151bc46d1423aac6f895e18fd1f75f9185ba9812ec29ebe845089d6548d298c2c01894ad4b5c4ae181398581fd5f3f50485b7838dc2894f154a5aeca59355bfa
|
7
|
+
data.tar.gz: 5f3ffcd2e68456cf4777a069e3103bb3f2a489d963b63444d5115f878fca542e9fa5c92472e0331cf672b273065f56898f8c94276cc5645cbb2af2f9ecd76fc2
|
@@ -1,3 +1,7 @@
|
|
1
|
+
require 'openssl'
|
2
|
+
require 'base64'
|
3
|
+
require 'salt_hiera/configuration'
|
4
|
+
|
1
5
|
module SaltHiera
|
2
6
|
module Plugins
|
3
7
|
class Efiles
|
@@ -44,7 +48,7 @@ module SaltHiera
|
|
44
48
|
|
45
49
|
public_key_x509 = OpenSSL::X509::Certificate.new( public_key_pem )
|
46
50
|
|
47
|
-
ciphertext = Base64.decode64(cipherbinary)
|
51
|
+
ciphertext = Base64.decode64(cipherbinary)
|
48
52
|
pkcs7 = OpenSSL::PKCS7.new( ciphertext )
|
49
53
|
|
50
54
|
pkcs7.decrypt(private_key_rsa, public_key_x509)
|
@@ -48,12 +48,9 @@ module SaltHiera
|
|
48
48
|
|
49
49
|
public_key_x509 = OpenSSL::X509::Certificate.new( public_key_pem )
|
50
50
|
|
51
|
-
ciphertext = Base64.decode64(cipherbinary)
|
51
|
+
ciphertext = Base64.decode64(cipherbinary)
|
52
52
|
pkcs7 = OpenSSL::PKCS7.new( ciphertext )
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
54
|
pkcs7.decrypt(private_key_rsa, public_key_x509)
|
58
55
|
|
59
56
|
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salthiera
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Geoff Meakin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Hiera like tool for use as an external pillar with SaltStack
|
15
14
|
email:
|
@@ -45,26 +44,25 @@ files:
|
|
45
44
|
homepage: http://github.com/gtmtechltd/salthiera
|
46
45
|
licenses:
|
47
46
|
- MIT
|
47
|
+
metadata: {}
|
48
48
|
post_install_message:
|
49
49
|
rdoc_options: []
|
50
50
|
require_paths:
|
51
51
|
- lib
|
52
52
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
53
|
requirements:
|
55
|
-
- -
|
54
|
+
- - '>='
|
56
55
|
- !ruby/object:Gem::Version
|
57
56
|
version: '0'
|
58
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
58
|
requirements:
|
61
|
-
- -
|
59
|
+
- - '>='
|
62
60
|
- !ruby/object:Gem::Version
|
63
61
|
version: '0'
|
64
62
|
requirements: []
|
65
63
|
rubyforge_project:
|
66
|
-
rubygems_version:
|
64
|
+
rubygems_version: 2.0.14
|
67
65
|
signing_key:
|
68
|
-
specification_version:
|
66
|
+
specification_version: 4
|
69
67
|
summary: Hiera like tool for use as an external pillar with SaltStack
|
70
68
|
test_files: []
|