Skip to content

Commit

Permalink
Merge pull request #82 from appuio/feat/exoscale-template
Browse files Browse the repository at this point in the history
Switch to new `exoscale_template` data source
  • Loading branch information
simu authored Jul 7, 2023
2 parents 84d431a + 92d034a commit 3df3b67
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bootstrap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "bootstrap" {
role = "bootstrap"
node_count = var.bootstrap_count
region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = "standard.extra-large"
node_state = var.bootstrap_state
Expand Down
2 changes: 1 addition & 1 deletion control_plane.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "master" {
role = "master"
node_count = var.master_count
region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = "standard.extra-large"
node_state = var.master_state
Expand Down
2 changes: 1 addition & 1 deletion infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "infra" {
role = "infra"
node_count = var.infra_count
region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = var.infra_type
node_state = var.infra_state
Expand Down
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ data "exoscale_domain_record" "exo_nameservers" {
}
}

data "exoscale_compute_template" "rhcos" {
zone = var.region
name = var.rhcos_template
filter = "mine"
data "exoscale_template" "rhcos" {
zone = var.region
name = var.rhcos_template
visibility = "private"
}

resource "exoscale_ssh_key" "admin" {
Expand Down
2 changes: 1 addition & 1 deletion storage.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module "storage" {
role = "storage"
node_count = var.storage_count
region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = var.storage_type
node_state = var.storage_state
Expand Down
4 changes: 2 additions & 2 deletions worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module "worker" {
role = "worker"
node_count = var.worker_count
region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
instance_type = var.worker_type
node_state = var.worker_state
Expand Down Expand Up @@ -57,7 +57,7 @@ module "additional_worker" {
data_disk_size = each.value.data_disk_size != null ? each.value.data_disk_size : 0

region = var.region
template_id = data.exoscale_compute_template.rhcos.id
template_id = data.exoscale_template.rhcos.id
base_domain = var.base_domain
ssh_key_pair = local.ssh_key_name

Expand Down

0 comments on commit 3df3b67

Please sign in to comment.