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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64e8f51985ecac0e05f7e662477c353423e9de44
4
- data.tar.gz: 6453c0f4eaed9001213643158ee2cddab35e546f
3
+ metadata.gz: 2fd00d9737ee775c466d221148544f5d69d0bb84
4
+ data.tar.gz: 429344e752c577fb2d1ddf4f5c016a9c475fd155
5
5
  SHA512:
6
- metadata.gz: f3893742a21c2c9dd3cc0b92845c4228dded8ef8a914d8462dc0f61b5debc02a917012bc2d2dde2f81ec227e712534560af3b9c101b3ca9d673465a915c2ba60
7
- data.tar.gz: 9817d8a8b70241a4026fdbcf81720f211e3ed14ab9b031e349ae4681c98800d27db1833860a8af0d25a02bbdf57539827302cbd6c88f7d06e2b75123d760ded5
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 manage vaults
3
+ Mina plugin to work with [vault](https://vaultproject.io)
4
4
 
5
- ## Installation
5
+ ## Installing
6
6
 
7
- Add this line to your application's Gemfile:
7
+ gem install mina-vault
8
8
 
9
- ```ruby
10
- gem 'mina-vault', require: false
11
- ```
9
+ Or add to Gemfile
12
10
 
13
- And then execute:
11
+ gem 'mina-vault', require: false
14
12
 
15
- $ bundle
16
13
 
17
- Or install it yourself as:
14
+ ## Using
18
15
 
19
- $ gem install mina-vault
16
+ ### Variables to override:
20
17
 
21
- ## Usage
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
- ### Settings
24
- Any and all of these settings can be overriden in your `deploy.rb`.
26
+ ### Deploying
25
27
 
26
- Sets the path to vault.
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
- set_default :vault, lambda { "bin/vault" }
33
+ ### Using with CI
29
34
 
30
- Sets the dir to the pid files of a vault workers
35
+ set VAULT_TOKEN environment
36
+ set VAULT_ADDR environment
31
37
 
32
- set_default :vault_pid_dir, lambda { "#{deploy_to}/#{shared_path}/pids" }
38
+ On BUILD: Add before bundle install:
33
39
 
34
- Sets the number of vault processes launched
40
+ gem install vault-binaries
41
+ vault read -field=#{secrets_field} #{secrets_key} > #{secrets_file}
35
42
 
36
- set_default :vault_processes, 1
43
+ On DEPLOY:
37
44
 
38
- ### Usage example
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
 
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Vault
3
- VERSION = '0.0.2'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -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/d4be4st/mina-vault'
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.7'
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.2
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.7'
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.7'
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/d4be4st/mina-vault
72
+ homepage: https://github.com/infinum/mina-vault
73
73
  licenses:
74
74
  - MIT
75
75
  metadata: {}