-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DBP-919 create output vars for ansible tasks
- Loading branch information
1 parent
79d816d
commit 9d563ba
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
locals { | ||
parts_of_node_ip = split(".", var.node_nlb_lan_ips[0]) | ||
# shorten ip from <num>.<num>.<num>.<num> to <num>.<num>.<num> | ||
node_ip_part = join(".", slice(local.parts_of_node_ip, 0, length(local.parts_of_node_ip) - 1)) | ||
cluster_node_ip_range = "${local.node_ip_part}.0/23" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
output "cluster_node_ip_range" { | ||
value = local.cluster_node_ip_range | ||
} | ||
|
||
output "service_cluster_node_ips" { | ||
value = var.node_nlb_lan_ips | ||
} |