Skip to content

Commit

Permalink
docs: add ccx21 as hcloud default for clickhouse
Browse files Browse the repository at this point in the history
  • Loading branch information
ianaya89 committed Jan 17, 2025
1 parent 5be942c commit e67a77f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 30 deletions.
24 changes: 16 additions & 8 deletions docs/data-sources/env_hcloud_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,24 @@ resource "altinitycloud_env_hcloud" "this" {
}
}
node_groups = [{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["CLICKHOUSE", "SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
}]
node_groups = [
{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
},
{
capacity_per_location = 10
name = "ccx21"
node_type = "ccx21"
reservations = ["CLICKHOUSE"]
locations = ["hil"]
}
]
}
data "altinitycloud_env_hcloud_status" "current" {
name = altinitycloud_env_gcp.this.name
wait_for_applied_spec_revision = altinitycloud_env_gcp.this.spec_revision
Expand Down
23 changes: 16 additions & 7 deletions docs/resources/env_hcloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,22 @@ resource "altinitycloud_env_hcloud" "this" {
}
}
node_groups = [{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["CLICKHOUSE", "SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
}]
node_groups = [
{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
},
{
capacity_per_location = 10
name = "ccx21"
node_type = "ccx21"
reservations = ["CLICKHOUSE"]
locations = ["hil"]
}
]
}
// Since the environment provisioning is an async process, this data source is used to wait for environment to be fully provisioned.
Expand Down
24 changes: 16 additions & 8 deletions examples/data-sources/altinitycloud_env_hcloud_status/wait.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,24 @@ resource "altinitycloud_env_hcloud" "this" {
}
}

node_groups = [{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["CLICKHOUSE", "SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
}]
node_groups = [
{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
},
{
capacity_per_location = 10
name = "ccx21"
node_type = "ccx21"
reservations = ["CLICKHOUSE"]
locations = ["hil"]
}
]
}


data "altinitycloud_env_hcloud_status" "current" {
name = altinitycloud_env_gcp.this.name
wait_for_applied_spec_revision = altinitycloud_env_gcp.this.spec_revision
Expand Down
23 changes: 16 additions & 7 deletions examples/resources/altinitycloud_env_hcloud/public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,22 @@ resource "altinitycloud_env_hcloud" "this" {
}
}

node_groups = [{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["CLICKHOUSE", "SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
}]
node_groups = [
{
capacity_per_location = 10
name = "cpx11"
node_type = "cpx11"
reservations = ["SYSTEM", "ZOOKEEPER"]
locations = ["hil"]
},
{
capacity_per_location = 10
name = "ccx21"
node_type = "ccx21"
reservations = ["CLICKHOUSE"]
locations = ["hil"]
}
]
}

// Since the environment provisioning is an async process, this data source is used to wait for environment to be fully provisioned.
Expand Down

0 comments on commit e67a77f

Please sign in to comment.