mina-vault 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -39
- data/lib/mina/vault/version.rb +1 -1
- data/mina-vault.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fd00d9737ee775c466d221148544f5d69d0bb84
|
4
|
+
data.tar.gz: 429344e752c577fb2d1ddf4f5c016a9c475fd155
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4b1e52f4014b3c6d3399884bf7469953886af7ed9eeaed0df7546a6dbff5bfd0d325a8ddc467d7de3d61dcd52494dec2b6346fc0b45a50afe3c48557077ba2
|
7
|
+
data.tar.gz: 03b5a17e1f4a459dfc24103ac143609ef3a207c97a474a4bd876ee3a7989bb614573d2d076adcdef8e4a615c2f0b91fb03efb5efe93919c20cdd6b239c3d4290
|
data/README.md
CHANGED
@@ -1,60 +1,48 @@
|
|
1
1
|
# Modules: Vault
|
2
2
|
|
3
|
-
Mina plugin to
|
3
|
+
Mina plugin to work with [vault](https://vaultproject.io)
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installing
|
6
6
|
|
7
|
-
|
7
|
+
gem install mina-vault
|
8
8
|
|
9
|
-
|
10
|
-
gem 'mina-vault', require: false
|
11
|
-
```
|
9
|
+
Or add to Gemfile
|
12
10
|
|
13
|
-
|
11
|
+
gem 'mina-vault', require: false
|
14
12
|
|
15
|
-
$ bundle
|
16
13
|
|
17
|
-
|
14
|
+
## Using
|
18
15
|
|
19
|
-
|
16
|
+
### Variables to override:
|
20
17
|
|
21
|
-
|
18
|
+
mina_vault_auth_token # default: ENV['MINA_VAULT_AUTH_TOKEN']
|
19
|
+
mina_vault_auth_method # default: ENV['MINA_VAULT_AUTH_METHOD'] || 'token'
|
20
|
+
mina_vault_secrets_field # default: 'secrets'
|
21
|
+
mina_vault_auth_options # this will override aith_token and auth_method
|
22
|
+
mina_vault_repo # if not set, will use git repo name
|
23
|
+
mina_vault_secrets_file # this is mandatory
|
24
|
+
mina_vault_secrets_key # mandatory (Example 'rails/staging/repo')
|
22
25
|
|
23
|
-
###
|
24
|
-
Any and all of these settings can be overriden in your `deploy.rb`.
|
26
|
+
### Deploying
|
25
27
|
|
26
|
-
|
28
|
+
Locally set:
|
29
|
+
get github token with repo:org permissions
|
30
|
+
set MINA_VAULT_AUTH_TOKEN=github_token
|
31
|
+
set MINA_VAULT_AUTH_METHOD=github
|
27
32
|
|
28
|
-
|
33
|
+
### Using with CI
|
29
34
|
|
30
|
-
|
35
|
+
set VAULT_TOKEN environment
|
36
|
+
set VAULT_ADDR environment
|
31
37
|
|
32
|
-
|
38
|
+
On BUILD: Add before bundle install:
|
33
39
|
|
34
|
-
|
40
|
+
gem install vault-binaries
|
41
|
+
vault read -field=#{secrets_field} #{secrets_key} > #{secrets_file}
|
35
42
|
|
36
|
-
|
43
|
+
On DEPLOY:
|
37
44
|
|
38
|
-
|
39
|
-
|
40
|
-
require 'mina/vault'
|
41
|
-
...
|
42
|
-
task :setup do
|
43
|
-
# vault needs a place to store its pid file
|
44
|
-
invoke :'vault:setup'
|
45
|
-
end
|
46
|
-
|
47
|
-
task :deploy do
|
48
|
-
deploy do
|
49
|
-
invoke :'git:clone'
|
50
|
-
...
|
51
|
-
|
52
|
-
to :launch do
|
53
|
-
...
|
54
|
-
invoke :'vault:restart'
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
45
|
+
mina staging deploy MINA_VAULT_AUTH_TOKEN=$VAULT_TOKEN
|
58
46
|
|
59
47
|
## Contributing
|
60
48
|
|
data/lib/mina/vault/version.rb
CHANGED
data/mina-vault.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ['d4be4st@gmail.com']
|
11
11
|
spec.summary = 'Mina plugin for vault'
|
12
12
|
spec.description = 'Added tasks for working with vault'
|
13
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.homepage = 'https://github.com/infinum/mina-vault'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.0'
|
23
23
|
|
24
24
|
spec.add_dependency 'mina', '~> 0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.10'
|
20
20
|
type: :development
|
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.
|
26
|
+
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,7 +69,7 @@ files:
|
|
69
69
|
- lib/mina/vault/tasks.rb
|
70
70
|
- lib/mina/vault/version.rb
|
71
71
|
- mina-vault.gemspec
|
72
|
-
homepage: https://github.com/
|
72
|
+
homepage: https://github.com/infinum/mina-vault
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata: {}
|