itamae-plugin-resource-encrypted_remote_file 0.0.1.beta1 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df8e3344bda25a0e3379d31612be0c27f4810603
4
- data.tar.gz: 96e1d71f210f0fed3e617308f68707f7caf1f830
3
+ metadata.gz: efa153a09066280449d991b53df8ac992ebfe927
4
+ data.tar.gz: b9e90134cc133525bea2aa3a3fe573978c0ccc94
5
5
  SHA512:
6
- metadata.gz: 03d3a222d0a2fd44dde809dddffc6efa2c0d6e898a3c036e118de14edfe2bfc23a6281362d32580417bd09c1d6c6a5f57d655e2fa09607284a4397f64f35e5c5
7
- data.tar.gz: a60f41c5141c6ab3fa6f9f7edaf77dedfcfc2f3279d11b9c5b6f03465138f26792381f8cc15914347aed9eaac724c066cedb650b445c14838f38b137828418e8
6
+ metadata.gz: 1f5930595b904adb66d8cf871560aca1b1bdeb1a87d315eb693f72056f1f6a0fe1b663dbe145dfe16e0f84427ea58837b29df351415cb8647b31ecf1b8d454b1
7
+ data.tar.gz: 0f4cad84a931aab023064c9d07d07fbd2622760549531e15207079270745c0e9e8907666c38c99ec3ed9210d396cc655355baf74703aa05388efcf906f0a118c
data/README.md CHANGED
@@ -4,6 +4,7 @@ encrypt secret data (ex. id_rsa), and forward decrypted file to remote.
4
4
 
5
5
  This is like to [knife-solo_data_bag](https://github.com/thbishop/knife-solo_data_bag)
6
6
 
7
+ [![Gem Version](https://badge.fury.io/rb/itamae-plugin-resource-encrypted_remote_file.svg)](http://badge.fury.io/rb/itamae-plugin-resource-encrypted_remote_file)
7
8
  [![Build Status](https://travis-ci.org/sue445/itamae-plugin-resource-encrypted_remote_file.svg?branch=master)](https://travis-ci.org/sue445/itamae-plugin-resource-encrypted_remote_file)
8
9
  [![Code Climate](https://codeclimate.com/github/sue445/itamae-plugin-resource-encrypted_remote_file/badges/gpa.svg)](https://codeclimate.com/github/sue445/itamae-plugin-resource-encrypted_remote_file)
9
10
  [![Coverage Status](https://coveralls.io/repos/sue445/itamae-plugin-resource-encrypted_remote_file/badge.svg)](https://coveralls.io/r/sue445/itamae-plugin-resource-encrypted_remote_file)
@@ -33,7 +34,7 @@ install [reversible_cryptography](https://github.com/mitaku/reversible_cryptogra
33
34
  ```sh
34
35
  gem install reversible_cryptography
35
36
 
36
-
37
+ reversible_cryptography encrypt --password=PASSWORD --src-file=/path/to/secret_file.txt --dst-file=/pass/to/encrypted_file.txt
37
38
  ```
38
39
 
39
40
  ### Recipe
@@ -42,8 +43,43 @@ gem install reversible_cryptography
42
43
  encrypted_remote_file "/home/deployer/.ssh/id_rsa" do
43
44
  owner "root"
44
45
  group "root"
45
- source "remote_files/encrypted_file.txt"
46
- password ENV["PASSWORD"]
46
+ source "remote_files/id_rsa.encrypted"
47
+ password ENV["ID_RSA_PASSWORD"]
48
+ end
49
+ ```
50
+
51
+ ## ProTip
52
+ ### Use with [dotenv](https://github.com/bkeepers/dotenv)
53
+
54
+ #### Gemfile
55
+ ```ruby
56
+ gem "itamae-plugin-resource-encrypted_remote_file"
57
+ gem "dotenv"
58
+ ```
59
+
60
+ #### .env (don't commit this!)
61
+ ```sh
62
+ ID_RSA_PASSWORD=12345678
63
+ ```
64
+
65
+ #### .gitignore
66
+ ```
67
+ .env
68
+ ```
69
+
70
+ #### your_recipe.rb
71
+ ```ruby
72
+ require 'dotenv'
73
+ Dotenv.load
74
+
75
+ ENV["ID_RSA_PASSWORD"]
76
+ #=> "12345678"
77
+
78
+ encrypted_remote_file "/home/deployer/.ssh/id_rsa" do
79
+ owner "root"
80
+ group "root"
81
+ source "remote_files/id_rsa.encrypted"
82
+ password ENV["ID_RSA_PASSWORD"]
47
83
  end
48
84
  ```
49
85
 
@@ -4,9 +4,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "itamae-plugin-resource-encrypted_remote_file"
7
- spec.version = "0.0.1.beta1"
7
+ spec.version = "0.0.1"
8
8
  spec.authors = ["sue445"]
9
9
  spec.email = ["sue445@sue445.net"]
10
+ spec.licenses = ["MIT"]
10
11
 
11
12
  spec.summary = "encrypt secret data, and forward decrypted file to remote."
12
13
  spec.description = "encrypt secret data, and forward decrypted file to remote."
@@ -25,10 +26,10 @@ Gem::Specification.new do |spec|
25
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
27
  spec.require_paths = ["lib"]
27
28
 
28
- spec.add_dependency "itamae", "~> 1.2.13"
29
+ spec.add_dependency "itamae", ">= 1.2"
29
30
  spec.add_dependency "reversible_cryptography"
30
31
 
31
- spec.add_development_dependency "bundler", ">= 1.9.4"
32
+ spec.add_development_dependency "bundler"
32
33
  spec.add_development_dependency "coveralls"
33
34
  spec.add_development_dependency "rake", "~> 10.0"
34
35
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-plugin-resource-encrypted_remote_file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta1
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: itamae
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.13
19
+ version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.13
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reversible_cryptography
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.9.4
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.9.4
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -131,7 +131,8 @@ files:
131
131
  - lib/itamae-plugin-resource-encrypted_remote_file.rb
132
132
  - lib/itamae/plugin/resource/encrypted_remote_file.rb
133
133
  homepage: https://github.com/sue445/itamae-plugin-resource-encrypted_remote_file
134
- licenses: []
134
+ licenses:
135
+ - MIT
135
136
  metadata:
136
137
  allowed_push_host: https://rubygems.org
137
138
  post_install_message:
@@ -145,9 +146,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
146
  version: '0'
146
147
  required_rubygems_version: !ruby/object:Gem::Requirement
147
148
  requirements:
148
- - - ">"
149
+ - - ">="
149
150
  - !ruby/object:Gem::Version
150
- version: 1.3.1
151
+ version: '0'
151
152
  requirements: []
152
153
  rubyforge_project:
153
154
  rubygems_version: 2.4.5