sambot 0.1.166 → 0.1.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cc838b7b9a89f2626bccfc3b1fb76b529b08b55
4
- data.tar.gz: ebe34638d9c411543eaf88b6a4f5e05c03d51891
3
+ metadata.gz: 565f07f14e49fd9cd9f3143e44b77711e9d5c9b0
4
+ data.tar.gz: 0e2a85e057cdf65c104d8465bdcd414635852710
5
5
  SHA512:
6
- metadata.gz: 3e7823ac124de0ed005b8c9fbfa252bd2068c3368b7e3636866924305dd505b1c7a0d4dcbbb38b0c4c7bacfac605e936c58e9a305e1ace3ac9c7343cfc11f355
7
- data.tar.gz: c83e592279e2dd77adab1e54ab92a744c6dd306bcff37badf4af34d2dbea26a9dea6fe7b88b3df69ae053e7df12b2fba9c03e8a2beeb0283fee405aa98a7d1c9
6
+ metadata.gz: a6148810fe5a730f548ded369bcc79e2bf6998c0225fef828d6b593ef400b8b41b7bef112edee9fc1ea8cc6bccb924dad1ceeb00dd913924ae7304c6303e0953
7
+ data.tar.gz: a4e336525cf92a5e53edff3beb3872a9b3083eba5687a09860b87480d3a7d66b2c13155f8e6fc5f70c207c6bf68ec895ffdc59595df236a45bd70bcc2df79a76
@@ -24,5 +24,8 @@ EOF
24
24
  ## Install Ruby
25
25
  sudo yum install -y ruby
26
26
 
27
+ ## Install Ruby gems
28
+ gem install vault
29
+
27
30
  ## Populate Vault
28
31
  ruby /vagrant/local/vault/helper.rb
@@ -1,11 +1,11 @@
1
1
  require 'yaml'
2
2
  require 'vault'
3
3
 
4
- config = File.expand_path(File.join(File.dirname(__FILE__), '../.secrets.yml'))
4
+ config = File.expand_path(File.join(File.dirname(__FILE__), '../../.vault.yml'))
5
5
  secrets = YAML.load(File.read(config))
6
6
  secrets.each do |secret|
7
7
  data = secret['contents']
8
- data = File.read() if data.start_with?('file::')
8
+ data = File.read(data.gsub(/file::/, '')) if data.start_with?('file::')
9
9
  Vault.logical.write(secret['path'], value: data)
10
10
  puts "Updated the secret located at #{secret['path']}"
11
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sambot
4
- VERSION = '0.1.166'.freeze
4
+ VERSION = '0.1.167'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sambot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.166
4
+ version: 0.1.167
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Kouame