-
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.
- Loading branch information
uros.simovic
committed
Nov 29, 2023
1 parent
d3827c3
commit 2bf4fcc
Showing
9 changed files
with
22 additions
and
29 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
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
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 |
---|---|---|
@@ -1,28 +1,21 @@ | ||
terraform { | ||
required_providers { | ||
kiwi = { | ||
source = "kiwicom/kiwi" | ||
source = "kiwicom/misc" | ||
} | ||
} | ||
} | ||
|
||
resource "kiwi_claim_from_pool" "server_addresses" { | ||
pool = [ | ||
"10.0.0.1", | ||
"10.0.0.2", | ||
"10.0.0.3", | ||
"10.0.0.4", | ||
"10.0.0.5", | ||
"10.0.0.6", | ||
] | ||
resource "misc_claim_from_pool" "master_cidr_subnets" { | ||
pool = [for i in range(900, 1024) : cidrsubnet("172.23.192.0/18", 10, i)] | ||
claimers = [ | ||
"server1", | ||
"server2", | ||
"server3", | ||
"server4", | ||
"cluster1", | ||
"cluster2", | ||
"cluster3", | ||
"cluster4", | ||
] | ||
} | ||
|
||
output "server_addresses" { | ||
value = kiwi_claim_from_pool.output | ||
output "master_cidr_subnets" { | ||
value = misc_claim_from_pool.master_cidr_subnets.output | ||
} |
Binary file not shown.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module terraform-provider-kiwi | ||
module terraform-provider-misc | ||
|
||
go 1.18 | ||
|
||
|
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
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
File renamed without changes.
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