add-vault-tokens 0.2.1 → 0.2.2

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: 436e279282f8b840ebde7603fc29c3a1677ab7dc
4
- data.tar.gz: 9ad13038cafd810e0b7075ed8de06bc603cb970a
3
+ metadata.gz: 49c40bb6e96afeef62af3981dbc1307eb3f429fc
4
+ data.tar.gz: 464a979eb42f36c7da79612ae6ce110f40ad8f3f
5
5
  SHA512:
6
- metadata.gz: 42976d30ccb031824ac1d2cbc848bfe4ff24027defd10badb1918370f60c7c3192184b9234f1a4d88e62126e00cb84535c041af3f5d106bd30b6bce84c5602df
7
- data.tar.gz: 4cbd9ef822398d6e4770240de364282bdf971b72bdb87f8ed198e16fe2c3e42fbb02f3b24d1f1a25541159acbf04d8490ef67e5cf807215244c2b5bb8223ffd2
6
+ metadata.gz: 449dce7d71c4140fb87989068644114d482541f90e53dd3984e70a91d93926d9d3c52f78d20ffa2bcc609b79de6b6ce4cf201b7a7acb8c7f49471edaa4447c6e
7
+ data.tar.gz: 6910f17e2d83e867295411dee41b1666de540d978835fb16e3ce4a8697e6bf4b376274713639bc531c951f1f24b6d63d3151d81c5d113c018efe4b71530e324f
@@ -45,7 +45,8 @@ module AddVaultTokens
45
45
  STDERR.puts("Issuing token for #{full_app_name}") unless quiet
46
46
  token = create_token_for(full_app_name)
47
47
  info['environment'] ||= {}
48
- info['environment']['VAULT_ADDR'] = ENV.fetch('VAULT_ADDR')
48
+ info['environment']['VAULT_ADDR'] =
49
+ ENV.fetch('CONTAINER_VAULT_ADDR', ENV.fetch('VAULT_ADDR'))
49
50
  info['environment']['VAULT_ENV'] = env if env
50
51
  info['environment']['VAULT_TOKEN'] = token.auth.client_token
51
52
  else
@@ -1,3 +1,3 @@
1
1
  module AddVaultTokens
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: add-vault-tokens
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kidd
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-06 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vault