Skip to content

Commit

Permalink
Merge pull request #4 from zoro16/add-new-server-types
Browse files Browse the repository at this point in the history
Added new server types
  • Loading branch information
zoro16 authored Jun 17, 2024
2 parents 2661328 + 09c315f commit 55d1ddd
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
- master

env:
TERRAFORM_DOCS_VERSION: v0.16.0
TFLINT_VERSION: v0.48.0
TERRAFORM_DOCS_VERSION: v0.18.0
TFLINT_VERSION: v0.51.1

jobs:
pre-commit:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ module "sv" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.2.0 |
| <a name="requirement_hcloud"></a> [hcloud](#requirement\_hcloud) | >= 1.42.1 |
| <a name="requirement_hcloud"></a> [hcloud](#requirement\_hcloud) | >= 1.47 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_hcloud"></a> [hcloud](#provider\_hcloud) | >= 1.42.1 |
| <a name="provider_hcloud"></a> [hcloud](#provider\_hcloud) | >= 1.47 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/network-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_hcloud_token"></a> [hcloud\_token](#input\_hcloud\_token) | Hetzner Cloud API Token | `string` | n/a | yes |
| <a name="input_server_type_map"></a> [server\_type\_map](#input\_server\_type\_map) | This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name. | `map(string)` | <pre>{<br> "arm64_16_32GB": "cax41",<br> "arm64_2_4GB": "cax11",<br> "arm64_4_8GB": "cax21",<br> "arm64_8_16GB": "cax31",<br> "x86_16_32GB": "cpx51",<br> "x86_16_64GB_dedicated": "ccx43",<br> "x86_1_2GB": "cx11",<br> "x86_2_2GB": "cpx11",<br> "x86_2_4GB": "cx21",<br> "x86_2_8GB": "cx31",<br> "x86_2_8GB_dedicated": "ccx13",<br> "x86_32_128GB_dedicated": "ccx53",<br> "x86_3_4GB": "cpx21",<br> "x86_48_192GB_dedicated": "ccx63",<br> "x86_4_16GB": "cx41",<br> "x86_4_16GB_dedicated": "ccx23",<br> "x86_4_8GB": "cpx31",<br> "x86_8_16GB": "cpx41",<br> "x86_8_32GB": "cx51",<br> "x86_8_32GB_dedicated": "ccx33"<br>}</pre> | no |
| <a name="input_server_type_map"></a> [server\_type\_map](#input\_server\_type\_map) | This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name. | `map(string)` | <pre>{<br> "arm64_16_32GB": "cax41",<br> "arm64_2_4GB": "cax11",<br> "arm64_4_8GB": "cax21",<br> "arm64_8_16GB": "cax31",<br> "x86_16_32GB": "cpx51",<br> "x86_16_64GB_dedicated": "ccx43",<br> "x86_2_2GB": "cpx11",<br> "x86_2_4GB": "cx22",<br> "x86_2_8GB_dedicated": "ccx13",<br> "x86_32_128GB_dedicated": "ccx53",<br> "x86_3_4GB": "cpx21",<br> "x86_48_192GB_dedicated": "ccx63",<br> "x86_4_16GB_dedicated": "ccx23",<br> "x86_4_8GB": "cpx31",<br> "x86_8_16GB": "cpx41",<br> "x86_8_32GB_dedicated": "ccx33"<br>}</pre> | no |

## Outputs

Expand Down
10 changes: 5 additions & 5 deletions examples/network-example/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ variable "server_type_map" {
description = "This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name."
type = map(string)
default = {
"x86_1_2GB" : "cx11", # Intel
"x86_2_4GB" : "cx21", # Intel
"x86_2_8GB" : "cx31", # Intel
"x86_4_16GB" : "cx41", # Intel
"x86_8_32GB" : "cx51", # Intel
# "x86_1_2GB" : "cx11", # Intel
"x86_2_4GB" : "cx22", # Intel
"x86_4_8GB" : "cx32", # Intel
"x86_8_16GB" : "cx42", # Intel
"x86_16_32GB" : "cx52", # Intel

"x86_2_2GB" : "cpx11", # AMD
"x86_3_4GB" : "cpx21", # AMD
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_hcloud_token"></a> [hcloud\_token](#input\_hcloud\_token) | Hetzner Cloud API Token | `string` | n/a | yes |
| <a name="input_server_type_map"></a> [server\_type\_map](#input\_server\_type\_map) | This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name. | `map(string)` | <pre>{<br> "arm64_16_32GB": "cax41",<br> "arm64_2_4GB": "cax11",<br> "arm64_4_8GB": "cax21",<br> "arm64_8_16GB": "cax31",<br> "x86_16_32GB": "cpx51",<br> "x86_16_64GB_dedicated": "ccx43",<br> "x86_1_2GB": "cx11",<br> "x86_2_2GB": "cpx11",<br> "x86_2_4GB": "cx21",<br> "x86_2_8GB": "cx31",<br> "x86_2_8GB_dedicated": "ccx13",<br> "x86_32_128GB_dedicated": "ccx53",<br> "x86_3_4GB": "cpx21",<br> "x86_48_192GB_dedicated": "ccx63",<br> "x86_4_16GB": "cx41",<br> "x86_4_16GB_dedicated": "ccx23",<br> "x86_4_8GB": "cpx31",<br> "x86_8_16GB": "cpx41",<br> "x86_8_32GB": "cx51",<br> "x86_8_32GB_dedicated": "ccx33"<br>}</pre> | no |
| <a name="input_server_type_map"></a> [server\_type\_map](#input\_server\_type\_map) | This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name. | `map(string)` | <pre>{<br> "arm64_16_32GB": "cax41",<br> "arm64_2_4GB": "cax11",<br> "arm64_4_8GB": "cax21",<br> "arm64_8_16GB": "cax31",<br> "x86_16_32GB": "cpx51",<br> "x86_16_64GB_dedicated": "ccx43",<br> "x86_2_2GB": "cpx11",<br> "x86_2_4GB": "cx22",<br> "x86_2_8GB_dedicated": "ccx13",<br> "x86_32_128GB_dedicated": "ccx53",<br> "x86_3_4GB": "cpx21",<br> "x86_48_192GB_dedicated": "ccx63",<br> "x86_4_16GB_dedicated": "ccx23",<br> "x86_4_8GB": "cpx31",<br> "x86_8_16GB": "cpx41",<br> "x86_8_32GB_dedicated": "ccx33"<br>}</pre> | no |

## Outputs

Expand Down
10 changes: 5 additions & 5 deletions examples/simple-example/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ variable "server_type_map" {
description = "This is a mapping for Hcloud's server types. The `key` is a combination of `[Processor Architecture]_[Number of vCores]_[RAM size]`. The `value` is Hcloud server type name."
type = map(string)
default = {
"x86_1_2GB" : "cx11", # Intel
"x86_2_4GB" : "cx21", # Intel
"x86_2_8GB" : "cx31", # Intel
"x86_4_16GB" : "cx41", # Intel
"x86_8_32GB" : "cx51", # Intel
# "x86_1_2GB" : "cx11", # Intel
"x86_2_4GB" : "cx22", # Intel
"x86_4_8GB" : "cx32", # Intel
"x86_8_16GB" : "cx42", # Intel
"x86_16_32GB" : "cx52", # Intel

"x86_2_2GB" : "cpx11", # AMD
"x86_3_4GB" : "cpx21", # AMD
Expand Down
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = ">= 1.42.1"
version = ">= 1.47"
}
}
}

0 comments on commit 55d1ddd

Please sign in to comment.