covalence 0.9.6 → 0.9.7

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
  SHA256:
3
- metadata.gz: 369cc5b1cdd92f77b74cb61303365529640a66aeb891ca9526fd52cc10f3475f
4
- data.tar.gz: db87f370826c127ed303a3e9a28a93473e14136060add7faca35257800c66e5b
3
+ metadata.gz: f4a31ac71d586d110e04a65e7647f70bec41524d8f3ef62aab08c3d5ec51bcac
4
+ data.tar.gz: f430ac9a93d994b8271558b7873d4c55de709951b92115aa53bf1f515aea1f77
5
5
  SHA512:
6
- metadata.gz: 335916bf77b12ccdbca83defbbef19986da8cbb9a182a21d68ec046a55c4d2d0967169b97c5812e5736f3de1f036afcf0dddddb7f9f15285c75db50527e52a87
7
- data.tar.gz: '002977430e5c9d5eb580632dfcafa210d2fcf4c9408fd77ed9ff3d4afdd3cca20213f810f46e075140dca16c13bc995625d168edac7e213ab71098c39bd516c5'
6
+ metadata.gz: 8c253bad63ddadc0074df8e2c29bb8ec5ecb33e490122590a034f16d800658346ed00ca808f60f1bd75df56c361a8279113e3578b1069b1d4edae629e9c7868a
7
+ data.tar.gz: cbd437cc4dff8a263780367cf7982bf0452fd6c96a496fd9a1cffe339758e93787d531fff8702badb48caa8b7f067bb886ecf1afa359c5d45130d54b060d319f
@@ -1,3 +1,9 @@
1
+ ## 0.9.7 (Sep 14, 2019)
2
+
3
+ IMPROVEMENTS:
4
+ - Issue [#88](https://github.com/unifio/covalence/issues/88) Add input processing to packer stacks. Allows for shell interpolation processing on inputs for packer stacks.
5
+ - Can use the shell interpolation in the template to generate AWS assume role temporary keys to populate template. This allows for role assumption since role assumption is not supported from `~/.aws/config` attributes.
6
+
1
7
  ## 0.9.6 (Sep 9, 2019)
2
8
 
3
9
  IMPROVEMENTS:
@@ -28,6 +28,10 @@ module Covalence
28
28
  "#{name} = #{parse_input(value())}"
29
29
  end
30
30
 
31
+ def to_command_hash_elements
32
+ return name, parse_input(value()).delete_prefix('"').delete_suffix('"')
33
+ end
34
+
31
35
  private
32
36
 
33
37
  def get_value(input)
@@ -51,8 +51,8 @@ module Covalence
51
51
  File.open("#{path}/covalence-inputs.tfvars",'w') {|f| f.write(config)}
52
52
  elsif type == "packer"
53
53
  config = Hash.new
54
- inputs.each do |name, input|
55
- config[name] = input.value
54
+ inputs.values.map(&:to_command_hash_elements).each do |name, input|
55
+ config["#{name}"] = input
56
56
  end
57
57
  config_json = JSON.generate(config)
58
58
  logger.info "path: #{path} module_path: #{module_path}\nStack inputs:\n\n#{config_json}"
@@ -1,3 +1,3 @@
1
1
  module Covalence
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covalence
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unif.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge