Skip to content

Commit

Permalink
Merge pull request #93 from xunleii/update-hcloud-example
Browse files Browse the repository at this point in the history
Update Hetzner Cloud example
  • Loading branch information
xunleii authored Apr 24, 2022
2 parents dc734ee + ee6d49b commit e5c5fa0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/terraform.lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
paths: ["**.tf"]

permissions:
pull-requests: write

jobs:
terraform-module-k3s:
name: Terraform module
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/terraform.plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
types: [labeled]

permissions:
pull-requests: write

jobs:
examples_hcloud-k3s:
name: Hetzner Cloud
Expand Down
2 changes: 1 addition & 1 deletion examples/hcloud-k3s/agent_instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "hcloud_server" "agents" {
name = "k3s-agent-${count.index}"

image = data.hcloud_image.ubuntu.name
server_type = "cx11-ceph"
server_type = "cx11"

ssh_keys = [hcloud_ssh_key.default.id]
labels = {
Expand Down
2 changes: 1 addition & 1 deletion examples/hcloud-k3s/server_instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "hcloud_server" "control_planes" {
name = "k3s-control-plane-${count.index}"

image = data.hcloud_image.ubuntu.name
server_type = "cx11-ceph"
server_type = "cx11"

ssh_keys = [hcloud_ssh_key.default.id]
labels = {
Expand Down
4 changes: 2 additions & 2 deletions examples/hcloud-k3s/versions.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
terraform {
required_providers {
hcloud = {
source = "terraform-providers/hcloud"
source = "hetznercloud/hcloud"
}
}
required_version = ">= 0.13"
required_version = "~> 1.0"
}

0 comments on commit e5c5fa0

Please sign in to comment.