cloudspin-stack 0.1.20 → 0.1.21
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b53a86446e9bf8c12ff15ecf6f81cbe610ae360f
|
4
|
+
data.tar.gz: 3d79b8b4fdba03e2b6b44e9d24481a130f2de56c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf07b8a78833ae65cde6e2b4ecbeaba5059da734bf96350d6fbd02d1354fa83cae3df68ae8266b57f0cf1d58c38b491c30555f06b5845c5c51868f1b10e65ba
|
7
|
+
data.tar.gz: 9301510029f2c7d7bb2bd287348e2378fc11a7e818d0473ffcf4b30ca411c2b405dd4261e2b83e8413e9d6e4f6764c84b026f7e09108068a89abaf585ae2e872
|
@@ -154,7 +154,7 @@ module Cloudspin
|
|
154
154
|
def terraform_init_params
|
155
155
|
if configuration.has_remote_state_configuration?
|
156
156
|
{
|
157
|
-
backend: '
|
157
|
+
backend: 'true',
|
158
158
|
backend_config: backend_parameters
|
159
159
|
}
|
160
160
|
else
|
@@ -190,10 +190,7 @@ module Cloudspin
|
|
190
190
|
|
191
191
|
def backend_parameters
|
192
192
|
if configuration.has_remote_state_configuration?
|
193
|
-
|
194
|
-
'bucket' => configuration.terraform_backend['bucket'],
|
195
|
-
'key' => configuration.terraform_backend['key']
|
196
|
-
}
|
193
|
+
configuration.terraform_backend
|
197
194
|
else
|
198
195
|
{}
|
199
196
|
end
|
@@ -73,11 +73,12 @@ module Cloudspin
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def default_state_folder
|
76
|
+
FileUtils.mkdir_p "#{base_folder}/state"
|
76
77
|
Pathname.new("#{base_folder}/state/#{instance_identifier}").realdirpath.to_s
|
77
78
|
end
|
78
79
|
|
79
80
|
def default_state_key
|
80
|
-
"
|
81
|
+
"#{instance_identifier}.tfstate"
|
81
82
|
end
|
82
83
|
|
83
84
|
def instance_identifier
|