You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,31 @@
1
1
## Unreleased
2
+
Upgrade notes:
3
+
* node_files argument added: Due to possible terraform `sensitive` issues, the files that are to be uploaded to a node will need to be specified separately.
4
+
For existing code change as follows:
5
+
```terraform
6
+
nodes = [{
7
+
node_ip = "172.31.140.18"
8
+
node_id = "00"
9
+
node_subnet_id = data.aws_subnet.subnet1.id
10
+
node_files_toupload = []
11
+
}]
12
+
```
13
+
To new code
14
+
```terraform
15
+
nodes = [{
16
+
node_ip = "172.31.140.18"
17
+
node_id = "00"
18
+
node_subnet_id = data.aws_subnet.subnet1.id
19
+
}]
20
+
node_files = [{
21
+
node_id = "00"
22
+
node_files_toupload = []
23
+
}]
24
+
```
25
+
Note, the node_id can be any string but if you want to retain the node names use the 2 digit node_id (eg. 00, 01, 05, 10 etc) during the upgrades.
26
+
27
+
Breaking Changes:
28
+
* added node_files argument by @ganesh-arkalgud in [#17](https://github.com/prashantkalkar/stateful_application_module/pull/17)
| <aname="input_jq_download_url"></a> [jq\_download\_url](#input\_jq\_download\_url)| n/a |`string`|`"https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64"`| no |
185
196
| <aname="input_node_config_script"></a> [node\_config\_script](#input\_node\_config\_script)| Base64 encoded node configuration shell script.<br> Must include configure\_cluster\_node and wait\_for\_healthy\_cluster function. Check documentation for more details about the contract |`string`| n/a | yes |
197
+
| <aname="input_node_files"></a> [node\_files](#input\_node\_files)| node\_id = node identifier (this is not a index and need not in any specific ordered).<br> node\_files\_toupload = list of file to be uploaded per node. These can be cluster config files etc.<br> node\_files\_toupload.contents = Base64 encoded contents of the file to be uploaded on the node.<br> node\_files\_toupload.destination = File destination on the node. This will be the file path and name on the node. The file ownership should be changed by node\_config\_script. | <pre>set(object({<br> node_id = string<br> node_files_toupload = optional(list(object({<br> contents = string<br> destination = string<br> })), [])<br> }))</pre> | n/a | yes |
| <a name="input_nodes"></a> [nodes](#input\_nodes) | node\_id = node identifier (this is not a index and need not in any specific ordered).<br> node\_ip = IP address of the cluster node. This should be available within the subnet.<br> node\_image = image for node of the cluster node.<br> node\_subnet\_id = Id of the subnet where node should be created.<br> node\_files\_toupload = list of file to be uploaded per node. These can be cluster confi files etc.<br> node\_files\_toupload.contents = Base64 encoded contents of the file to be uploaded on the node.<br> node\_files\_toupload.destination = File destination on the node. This will be the file path and name on the node. The file ownership should be changed by node\_config\_script. | <pre>set(object({<br> node_id = string<br> node_ip = string<br> node_image = optional(string)<br> node_subnet_id = string<br> node_files_toupload = optional(list(object({<br> contents = string<br> destination = string<br> })), [])<br> }))</pre> | n/a | yes |
200
+
| <aname="input_nodes"></a> [nodes](#input\_nodes)| node\_id = node identifier (this is not a index and need not in any specific ordered).<br> node\_ip = IP address of the cluster node. This should be available within the subnet.<br> node\_image = image for node of the cluster node.<br> node\_subnet\_id = Id of the subnet where node should be created. | <pre>set(object({<br> node_id = string<br> node_ip = string<br> node_image = optional(string)<br> node_subnet_id = string<br> }))</pre> | n/a | yes |
Copy file name to clipboardExpand all lines: variables.tf
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,26 @@ variable "nodes" {
4
4
node_ip =string
5
5
node_image =optional(string)
6
6
node_subnet_id =string
7
+
}))
8
+
description=<<EOT
9
+
node_id = node identifier (this is not a index and need not in any specific ordered).
10
+
node_ip = IP address of the cluster node. This should be available within the subnet.
11
+
node_image = image for node of the cluster node.
12
+
node_subnet_id = Id of the subnet where node should be created.
13
+
EOT
14
+
}
15
+
16
+
variable"node_files" {
17
+
type=set(object({
18
+
node_id =string
7
19
node_files_toupload =optional(list(object({
8
20
contents =string
9
21
destination =string
10
22
})), [])
11
23
}))
12
24
description=<<EOT
13
25
node_id = node identifier (this is not a index and need not in any specific ordered).
14
-
node_ip = IP address of the cluster node. This should be available within the subnet.
15
-
node_image = image for node of the cluster node.
16
-
node_subnet_id = Id of the subnet where node should be created.
17
-
node_files_toupload = list of file to be uploaded per node. These can be cluster confi files etc.
26
+
node_files_toupload = list of file to be uploaded per node. These can be cluster config files etc.
18
27
node_files_toupload.contents = Base64 encoded contents of the file to be uploaded on the node.
19
28
node_files_toupload.destination = File destination on the node. This will be the file path and name on the node. The file ownership should be changed by node_config_script.
0 commit comments