hiera-eyaml 1.1.4 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +28 -0
  4. data/PLUGINS.md +4 -0
  5. data/README.md +51 -41
  6. data/bin/eyaml +9 -357
  7. data/features/decrypts.feature +44 -0
  8. data/features/edit.feature +54 -0
  9. data/features/encrypts.feature +26 -0
  10. data/features/keys.feature +13 -0
  11. data/features/outputs.feature +30 -0
  12. data/features/plugin.feature +35 -0
  13. data/features/plugin_api.feature +16 -0
  14. data/features/puppet.feature +15 -0
  15. data/features/sandbox/convert_decrypted_values_to_uppercase.sh +2 -0
  16. data/features/sandbox/keys/private_key.pkcs7.pem +27 -0
  17. data/features/sandbox/keys/public_key.pkcs7.pem +18 -0
  18. data/features/sandbox/pipe_string.sh +5 -0
  19. data/features/sandbox/puppet/environments/local/test.eyaml +3 -0
  20. data/features/sandbox/puppet/hiera.yaml +17 -0
  21. data/features/sandbox/puppet/manifests/init.pp +3 -0
  22. data/features/sandbox/puppet/modules/test/manifests/init.pp +18 -0
  23. data/features/sandbox/puppet/puppet.conf +6 -0
  24. data/features/sandbox/supply_password.sh +7 -0
  25. data/features/sandbox/test_input.bin +0 -0
  26. data/features/sandbox/test_input.encrypted.txt +1 -0
  27. data/features/sandbox/test_input.txt +3 -0
  28. data/features/sandbox/test_input.yaml +114 -0
  29. data/features/step_definitions/environment_overrides.rb +3 -0
  30. data/features/support/env.rb +26 -0
  31. data/features/support/setup_sandbox.rb +21 -0
  32. data/features/valid_encryption.feature +12 -0
  33. data/hiera-eyaml.gemspec +1 -1
  34. data/lib/hiera/backend/eyaml.rb +19 -0
  35. data/lib/hiera/backend/eyaml/CLI.rb +110 -0
  36. data/lib/hiera/backend/eyaml/actions/createkeys_action.rb +24 -0
  37. data/lib/hiera/backend/eyaml/actions/decrypt_action.rb +67 -0
  38. data/lib/hiera/backend/eyaml/actions/edit_action.rb +47 -0
  39. data/lib/hiera/backend/eyaml/actions/encrypt_action.rb +80 -0
  40. data/lib/hiera/backend/eyaml/encryptor.rb +71 -0
  41. data/lib/hiera/backend/eyaml/encryptors/pkcs7.rb +99 -0
  42. data/lib/hiera/backend/eyaml/options.rb +32 -0
  43. data/lib/hiera/backend/eyaml/plugins.rb +65 -0
  44. data/lib/hiera/backend/eyaml/utils.rb +83 -0
  45. data/lib/hiera/backend/eyaml_backend.rb +108 -113
  46. data/sublime_text/README.md +16 -0
  47. data/sublime_text/eyaml.sublime-package +0 -0
  48. data/sublime_text/eyaml.syntax_definition.json +288 -0
  49. data/{bin → tools}/regem.sh +1 -1
  50. metadata +71 -7
  51. data/keys/.keepme +0 -0
  52. data/lib/hiera/backend/version.rb +0 -7
@@ -0,0 +1,16 @@
1
+ Sublime Text Syntax Highlighting Package
2
+ ========================================
3
+
4
+ The contents of this directory give syntax highlighting to .eyaml files in Sublime Text 2+
5
+
6
+ Install
7
+ =======
8
+
9
+ To install, simply copy eyaml.sublime-package into your "Installed Packages" directory in the data directory of your Sublime Text 2 installation. The data directory is:
10
+
11
+ * Windows: %APPDATA%/Sublime Text 2
12
+ * OS X: ~/Library/Application Support/Sublime Text 2
13
+ * Linux: ~/.Sublime Text 2
14
+
15
+ Then restart sublimetext
16
+
Binary file
@@ -0,0 +1,288 @@
1
+ { "name": "EYAML",
2
+ "scopeName": "source.eyaml",
3
+ "fileTypes": ["eyaml"],
4
+ "foldingStartMarker": "^[^#]\\s*.*:(\\s*\\[?| &.+)?$",
5
+ "foldingStopMarker": "^\\s*$|^\\s*\\}|^\\s*\\]|^\\s*\\)",
6
+ "keyEquivalent": "^~Y",
7
+ "repository": {
8
+ "erb": {
9
+ "end": "%>",
10
+ "begin": "<%+(?!>)=?",
11
+ "patterns": [
12
+ {
13
+ "match": "(#).*?(?=%>)",
14
+ "captures": {
15
+ "1": {
16
+ "name": "punctuation.definition.comment.ruby"
17
+ }
18
+ },
19
+ "name": "comment.line.number-sign.ruby"
20
+ },
21
+ {
22
+ "include": "source.ruby.rails"
23
+ }
24
+ ],
25
+ "captures": {
26
+ "0": {
27
+ "name": "punctuation.section.embedded.ruby"
28
+ }
29
+ },
30
+ "name": "source.ruby.rails.embedded.html"
31
+ },
32
+ "escaped_char": {
33
+ "match": "\\\\.",
34
+ "name": "constant.character.escape.yaml"
35
+ }
36
+ },
37
+ "patterns": [
38
+ {
39
+ "include": "#erb"
40
+ },
41
+ {
42
+ "end": "^(?!^\\1)|^(?=\\1(-|\\w+\\s*:)|#)",
43
+ "begin": "^(\\s*)(?:(-)|(?:(-\\s*)?(\\w+\\s*(:))))\\s*(\\||>)",
44
+ "beginCaptures": {
45
+ "3": {
46
+ "name": "punctuation.definition.entry.yaml"
47
+ },
48
+ "4": {
49
+ "name": "entity.name.tag.yaml"
50
+ },
51
+ "5": {
52
+ "name": "punctuation.separator.key-value.yaml"
53
+ },
54
+ "2": {
55
+ "name": "punctuation.definition.entry.yaml"
56
+ }
57
+ },
58
+ "patterns": [
59
+ {
60
+ "include": "#erb"
61
+ }
62
+ ],
63
+ "name": "string.unquoted.block.yaml"
64
+ },
65
+ {
66
+ "match": "(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\s*$",
67
+ "captures": {
68
+ "3": {
69
+ "name": "punctuation.separator.key-value.yaml"
70
+ },
71
+ "4": {
72
+ "name": "punctuation.definition.entry.yaml"
73
+ },
74
+ "1": {
75
+ "name": "punctuation.definition.entry.yaml"
76
+ },
77
+ "2": {
78
+ "name": "entity.name.tag.yaml"
79
+ }
80
+ },
81
+ "name": "constant.numeric.yaml"
82
+ },
83
+ {
84
+ "match": "(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*(?:((\")[^\"]*(\"))|((')[^']*('))|([^,{}&#\\[\\]]+))\\s*",
85
+ "captures": {
86
+ "7": {
87
+ "name": "punctuation.definition.string.end.yaml"
88
+ },
89
+ "3": {
90
+ "name": "punctuation.separator.key-value.yaml"
91
+ },
92
+ "11": {
93
+ "name": "string.unquoted.yaml"
94
+ },
95
+ "4": {
96
+ "name": "punctuation.definition.entry.yaml"
97
+ },
98
+ "8": {
99
+ "name": "string.quoted.single.yaml"
100
+ },
101
+ "9": {
102
+ "name": "punctuation.definition.string.begin.yaml"
103
+ },
104
+ "5": {
105
+ "name": "string.quoted.double.yaml"
106
+ },
107
+ "1": {
108
+ "name": "punctuation.definition.entry.yaml"
109
+ },
110
+ "6": {
111
+ "name": "punctuation.definition.string.begin.yaml"
112
+ },
113
+ "10": {
114
+ "name": "punctuation.definition.string.end.yaml"
115
+ },
116
+ "2": {
117
+ "name": "entity.name.tag.yaml"
118
+ }
119
+ },
120
+ "name": "string.unquoted.yaml"
121
+ },
122
+ {
123
+ "match": "(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})\\s*$",
124
+ "captures": {
125
+ "3": {
126
+ "name": "punctuation.separator.key-value.yaml"
127
+ },
128
+ "4": {
129
+ "name": "punctuation.definition.entry.yaml"
130
+ },
131
+ "1": {
132
+ "name": "punctuation.definition.entry.yaml"
133
+ },
134
+ "2": {
135
+ "name": "entity.name.tag.yaml"
136
+ }
137
+ },
138
+ "name": "constant.other.date.yaml"
139
+ },
140
+ {
141
+ "match": "(\\w.*?)(:)\\s*((\\!\\!)omap)?",
142
+ "captures": {
143
+ "3": {
144
+ "name": "keyword.other.omap.yaml"
145
+ },
146
+ "4": {
147
+ "name": "punctuation.definition.keyword.yaml"
148
+ },
149
+ "1": {
150
+ "name": "entity.name.tag.yaml"
151
+ },
152
+ "2": {
153
+ "name": "punctuation.separator.key-value.yaml"
154
+ }
155
+ },
156
+ "name": "meta.tag.yaml"
157
+ },
158
+ {
159
+ "match": "(\\&|\\*)\\w.*?$",
160
+ "captures": {
161
+ "1": {
162
+ "name": "punctuation.definition.variable.yaml"
163
+ }
164
+ },
165
+ "name": "variable.other.yaml"
166
+ },
167
+ {
168
+ "end": "\"",
169
+ "begin": "\"",
170
+ "beginCaptures": {
171
+ "0": {
172
+ "name": "punctuation.definition.string.begin.yaml"
173
+ }
174
+ },
175
+ "patterns": [
176
+ {
177
+ "include": "#escaped_char"
178
+ },
179
+ {
180
+ "include": "#erb"
181
+ }
182
+ ],
183
+ "endCaptures": {
184
+ "0": {
185
+ "name": "punctuation.definition.string.end.yaml"
186
+ }
187
+ },
188
+ "name": "string.quoted.double.yaml"
189
+ },
190
+ {
191
+ "end": "'",
192
+ "begin": "'",
193
+ "beginCaptures": {
194
+ "0": {
195
+ "name": "punctuation.definition.string.begin.yaml"
196
+ }
197
+ },
198
+ "patterns": [
199
+ {
200
+ "include": "#escaped_char"
201
+ },
202
+ {
203
+ "include": "#erb"
204
+ }
205
+ ],
206
+ "endCaptures": {
207
+ "0": {
208
+ "name": "punctuation.definition.string.end.yaml"
209
+ }
210
+ },
211
+ "name": "string.quoted.single.yaml"
212
+ },
213
+ {
214
+ "end": "`",
215
+ "begin": "`",
216
+ "beginCaptures": {
217
+ "0": {
218
+ "name": "punctuation.definition.string.begin.yaml"
219
+ }
220
+ },
221
+ "patterns": [
222
+ {
223
+ "include": "#escaped_char"
224
+ },
225
+ {
226
+ "include": "#erb"
227
+ }
228
+ ],
229
+ "endCaptures": {
230
+ "0": {
231
+ "name": "punctuation.definition.string.end.yaml"
232
+ }
233
+ },
234
+ "name": "string.interpolated.yaml"
235
+ },
236
+ {
237
+ "match": "(\\<\\<): ((\\*).*)$",
238
+ "captures": {
239
+ "3": {
240
+ "name": "punctuation.definition.keyword.yaml"
241
+ },
242
+ "1": {
243
+ "name": "entity.name.tag.yaml"
244
+ },
245
+ "2": {
246
+ "name": "keyword.operator.merge-key.yaml"
247
+ }
248
+ },
249
+ "name": "keyword.operator.merge-key.yaml"
250
+ },
251
+ {
252
+ "match": "( |\t)+$",
253
+ "disabled": "1",
254
+ "name": "invalid.deprecated.trailing-whitespace.yaml"
255
+ },
256
+ {
257
+ "match": "(?<!\\$)(#)(?!\\{).*$\\n?",
258
+ "captures": {
259
+ "1": {
260
+ "name": "punctuation.definition.comment.yaml"
261
+ }
262
+ },
263
+ "name": "comment.line.number-sign.yaml"
264
+ },
265
+ {
266
+ "match": "-",
267
+ "name": "keyword.operator.symbol"
268
+ },
269
+ {
270
+ "end": "(?=[^\\t])",
271
+ "begin": "^(?=\\t)",
272
+ "patterns": [
273
+ {
274
+ "match": "(\\t)(\\t)?",
275
+ "captures": {
276
+ "1": {
277
+ "name": "meta.odd-tab"
278
+ },
279
+ "2": {
280
+ "name": "meta.even-tab"
281
+ }
282
+ }
283
+ }
284
+ ],
285
+ "name": "meta.leading-tabs.yaml"
286
+ }
287
+ ], "uuid": "1876aa1d-ff42-4994-b552-663473607454"
288
+ }
@@ -3,4 +3,4 @@
3
3
  gem uninstall hiera-eyaml --executables
4
4
  rake build
5
5
  gem install pkg/hiera-eyaml
6
- eyaml -v
6
+ eyaml -v
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiera-eyaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.3.1
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-07-25 00:00:00.000000000 Z
12
+ date: 2013-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop
@@ -47,7 +47,6 @@ description: Hiera backend for decrypting encrypted yaml properties
47
47
  email:
48
48
  executables:
49
49
  - eyaml
50
- - regem.sh
51
50
  extensions: []
52
51
  extra_rdoc_files: []
53
52
  files:
@@ -55,14 +54,53 @@ files:
55
54
  - Gemfile
56
55
  - Gemfile.lock
57
56
  - LICENSE.txt
57
+ - PLUGINS.md
58
58
  - README.md
59
59
  - Rakefile
60
60
  - bin/eyaml
61
- - bin/regem.sh
61
+ - features/decrypts.feature
62
+ - features/edit.feature
63
+ - features/encrypts.feature
64
+ - features/keys.feature
65
+ - features/outputs.feature
66
+ - features/plugin.feature
67
+ - features/plugin_api.feature
68
+ - features/puppet.feature
69
+ - features/sandbox/convert_decrypted_values_to_uppercase.sh
70
+ - features/sandbox/keys/private_key.pkcs7.pem
71
+ - features/sandbox/keys/public_key.pkcs7.pem
72
+ - features/sandbox/pipe_string.sh
73
+ - features/sandbox/puppet/environments/local/test.eyaml
74
+ - features/sandbox/puppet/hiera.yaml
75
+ - features/sandbox/puppet/manifests/init.pp
76
+ - features/sandbox/puppet/modules/test/manifests/init.pp
77
+ - features/sandbox/puppet/puppet.conf
78
+ - features/sandbox/supply_password.sh
79
+ - features/sandbox/test_input.bin
80
+ - features/sandbox/test_input.encrypted.txt
81
+ - features/sandbox/test_input.txt
82
+ - features/sandbox/test_input.yaml
83
+ - features/step_definitions/environment_overrides.rb
84
+ - features/support/env.rb
85
+ - features/support/setup_sandbox.rb
86
+ - features/valid_encryption.feature
62
87
  - hiera-eyaml.gemspec
63
- - keys/.keepme
88
+ - lib/hiera/backend/eyaml.rb
89
+ - lib/hiera/backend/eyaml/CLI.rb
90
+ - lib/hiera/backend/eyaml/actions/createkeys_action.rb
91
+ - lib/hiera/backend/eyaml/actions/decrypt_action.rb
92
+ - lib/hiera/backend/eyaml/actions/edit_action.rb
93
+ - lib/hiera/backend/eyaml/actions/encrypt_action.rb
94
+ - lib/hiera/backend/eyaml/encryptor.rb
95
+ - lib/hiera/backend/eyaml/encryptors/pkcs7.rb
96
+ - lib/hiera/backend/eyaml/options.rb
97
+ - lib/hiera/backend/eyaml/plugins.rb
98
+ - lib/hiera/backend/eyaml/utils.rb
64
99
  - lib/hiera/backend/eyaml_backend.rb
65
- - lib/hiera/backend/version.rb
100
+ - sublime_text/README.md
101
+ - sublime_text/eyaml.sublime-package
102
+ - sublime_text/eyaml.syntax_definition.json
103
+ - tools/regem.sh
66
104
  homepage: http://github.com/TomPoulton/hiera-eyaml
67
105
  licenses:
68
106
  - MIT
@@ -88,4 +126,30 @@ rubygems_version: 1.8.25
88
126
  signing_key:
89
127
  specification_version: 3
90
128
  summary: OpenSSL Encryption backend for Hiera
91
- test_files: []
129
+ test_files:
130
+ - features/decrypts.feature
131
+ - features/edit.feature
132
+ - features/encrypts.feature
133
+ - features/keys.feature
134
+ - features/outputs.feature
135
+ - features/plugin.feature
136
+ - features/plugin_api.feature
137
+ - features/puppet.feature
138
+ - features/sandbox/convert_decrypted_values_to_uppercase.sh
139
+ - features/sandbox/keys/private_key.pkcs7.pem
140
+ - features/sandbox/keys/public_key.pkcs7.pem
141
+ - features/sandbox/pipe_string.sh
142
+ - features/sandbox/puppet/environments/local/test.eyaml
143
+ - features/sandbox/puppet/hiera.yaml
144
+ - features/sandbox/puppet/manifests/init.pp
145
+ - features/sandbox/puppet/modules/test/manifests/init.pp
146
+ - features/sandbox/puppet/puppet.conf
147
+ - features/sandbox/supply_password.sh
148
+ - features/sandbox/test_input.bin
149
+ - features/sandbox/test_input.encrypted.txt
150
+ - features/sandbox/test_input.txt
151
+ - features/sandbox/test_input.yaml
152
+ - features/step_definitions/environment_overrides.rb
153
+ - features/support/env.rb
154
+ - features/support/setup_sandbox.rb
155
+ - features/valid_encryption.feature
data/keys/.keepme DELETED
File without changes
@@ -1,7 +0,0 @@
1
- module Hiera
2
- module Backend
3
- module Eyaml
4
- VERSION = "1.1.4"
5
- end
6
- end
7
- end