Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

packet/nodes: switch back to baremetal_0 as default node type #642

Merged
merged 1 commit into from
Jun 19, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ variable "controller_count" {

variable "controller_type" {
type = string
default = "t1.small.x86"
# This is Packet's internal name for "t1.small.x86"
default = "baremetal_0"
description = "Packet instance type for controllers"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ variable "worker_count" {

variable "type" {
type = string
default = "t1.small.x86"
# This is Packet's internal name for "t1.small.x86"
default = "baremetal_0"
description = "Packet instance type for workers, can be changed afterwards to recreate the nodes"
}

Expand Down
9 changes: 5 additions & 4 deletions docs/configuration-reference/platforms/packet.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ block in the cluster configuration.

Example:

The default for node_type is `t1.small.x86`. If you wish to change the default, then you
define the variable and use it to refer in the cluster configuration.
The default for node_type is `baremetal_0` (which is Packet's internal name for
`t1.small.x86`). If you wish to change the default, then you define the
variable and use it to refer in the cluster configuration.

```tf
variable "custom_default_worker_type" {
Expand All @@ -198,7 +199,7 @@ node_type = var.custom_default_worker_type
| `cluster_name` | Name of the cluster. | - | true |
| `tags` | List of tags that will be propagated to master nodes. | - | false |
| `controller_count` | Number of controller nodes. | 1 | false |
| `controller_type` | Packet instance type for controllers. | "t1.small.x86" | false |
| `controller_type` | Packet instance type for controllers. | "baremetal_0" | false |
| `controller_clc_snippets` | Controller Flatcar Container Linux Config snippets. | [] | false |
| `dns` | DNS configuration block. | - | true |
| `dns.zone` | A DNS zone to use for the cluster. The following format is used for cluster-related DNS records: `<record>.<cluster_name>.<dns_zone>` | - | true |
Expand Down Expand Up @@ -235,7 +236,7 @@ node_type = var.custom_default_worker_type
| `worker_pool.os_arch` | Flatcar Container Linux architecture to install (amd64, arm64). | "amd64" | false |
| `worker_pool.os_channel` | Flatcar Container Linux channel to install from (stable, beta, alpha, edge). | "stable" | false |
| `worker_pool.os_version` | Flatcar Container Linux version to install. Version such as "2303.3.1" or "current". | "current" | false |
| `worker_pool.node_type` | Packet instance type for worker nodes. | "t1.small.x86" | false |
| `worker_pool.node_type` | Packet instance type for worker nodes. | "baremetal_0" | false |
| `worker_pool.labels` | Custom labels to assign to worker nodes. | - | false |
| `worker_pool.taints` | Taints to assign to worker nodes. | - | false |
| `worker_pool.reservation_ids` | Block with Packet hardware reservation IDs for worker nodes. Each key must have the format `worker-${index}` and the value is the reservation UUID. Can't be combined with `reservation_ids_default`. Example: `reservation_ids = { worker-0 = "<reservation_id>" }`. | - | false |
Expand Down
Loading