terraspace_plugin_azurerm 0.1.1 → 0.2.0
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/CHANGELOG.md +3 -0
- data/lib/templates/hcl/project/config/terraform/backend.tf +3 -3
- data/lib/terraspace_plugin_azurerm/interfaces/expander.rb +1 -0
- data/lib/terraspace_plugin_azurerm/interfaces/layer.rb +1 -5
- data/lib/terraspace_plugin_azurerm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 902f57dc75e9d5bb10cc082b3c5f27e3f882b1e111ef55c56b45b3120925d83d
|
|
4
|
+
data.tar.gz: 7c5b01e7c9d867579f6aacc518f2409f778189b1d97d3069123840cb62035ff1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f440039512eb3f083b8ad5d8a82d4135495823909b40f7e7df9b20df5b4f17e9600e1a2e569f149c9f9b7544b10a019da26c70a4ff3dbcd5657f572b15b72e32
|
|
7
|
+
data.tar.gz: ab20ce488477524db6f7aa968101c7580114b3fcebb6356014ac27af0407a90003a209de94611c09b6eb3baed5a67d66de234c9c1d44fdd5fefc238ee91bf899
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [0.2.0]
|
|
7
|
+
- #1 include layer interface, update template to use expansion method, add region method
|
|
8
|
+
|
|
6
9
|
## [0.1.1]
|
|
7
10
|
- update generator init terraform state path
|
|
8
11
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
# This is useful because azure storage accounts not allowed special characters and can only be 24 chars long.
|
|
3
3
|
terraform {
|
|
4
4
|
backend "azurerm" {
|
|
5
|
-
resource_group_name = "<%=
|
|
6
|
-
storage_account_name = "<%=
|
|
5
|
+
resource_group_name = "<%= expansion('terraform-resources-:LOCATION') %>"
|
|
6
|
+
storage_account_name = "<%= expansion('ts:SUBSCRIPTION_HASH:LOCATION:ENV') %>"
|
|
7
7
|
container_name = "terraform-state"
|
|
8
|
-
key = "<%=
|
|
8
|
+
key = "<%= expansion(':LOCATION/:ENV/:BUILD_DIR/terraform.tfstate') %>"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module TerraspacePluginAzurerm::Interfaces
|
|
2
2
|
class Layer
|
|
3
3
|
extend Memoist
|
|
4
|
+
include Terraspace::Plugin::Layer::Interface
|
|
4
5
|
|
|
5
6
|
# interface method
|
|
6
7
|
def namespace
|
|
@@ -11,10 +12,5 @@ module TerraspacePluginAzurerm::Interfaces
|
|
|
11
12
|
def region
|
|
12
13
|
AzureInfo.location
|
|
13
14
|
end
|
|
14
|
-
|
|
15
|
-
# interface method
|
|
16
|
-
def provider
|
|
17
|
-
"azurerm"
|
|
18
|
-
end
|
|
19
15
|
end
|
|
20
16
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: terraspace_plugin_azurerm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tung Nguyen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: azure-storage-blob
|