idlc-sdk-deploy 1.0.14 → 1.0.15
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 +4 -4
- data/lib/idlc-sdk-deploy/config.rb +2 -5
- data/lib/idlc-sdk-deploy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9167f127ffe0bd45026007231b9879f23fb59b5415459b04f6b8bb1ca7c0d266
|
|
4
|
+
data.tar.gz: 705f32ca26d0e3b67b0d5be994745f5484910aaa73f4c16d2475ceeb43491201
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7232a5f0fd814bc03d2048a881c0b24d1198b4311b22230356296b9a4e467c03941ba76b25e077e92366e33e04484dc9ca8afe4299614a682c84ac45b06bfe1
|
|
7
|
+
data.tar.gz: b7932f67da98cef1786b4e14e10bcfc10dded905a60673a604a913529172de35139b0798fd58c52cfadf5e9efa01c8803ef14f4c68dfc1ebd71457bccb558ecb
|
|
@@ -26,16 +26,13 @@ module Idlc
|
|
|
26
26
|
# This method is meant to be run on an instance inside of a chef run to
|
|
27
27
|
# provision instance and environment metadata.
|
|
28
28
|
|
|
29
|
-
# `default` is a reserved var available in a Chef run
|
|
30
|
-
|
|
31
29
|
ENV['AWS_REGION'] = 'us-east-1' if ENV['AWS_REGION'].nil?
|
|
32
|
-
default['aws']['region'] = ENV['AWS_REGION']
|
|
33
30
|
|
|
34
31
|
# Get the current instance id from the instance metadata.
|
|
35
32
|
instance = get_instance
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
# add some data
|
|
35
|
+
metadata['hostname'] = set_hostname(instance)
|
|
39
36
|
|
|
40
37
|
# return environment metadata
|
|
41
38
|
get_env_metadata(instance['tags']['environment_key'])
|