Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to new exoscale_template data source #82

Merged
merged 1 commit into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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