From 279761c584c40b68dcda596084ddf30c7c714396 Mon Sep 17 00:00:00 2001 From: Meysam Azad Date: Fri, 22 Mar 2024 20:33:59 +0700 Subject: [PATCH] fix(ci): exclude hetzner login from lychee --- docs/codes/0005-install-k3s-ubuntu/opentofu/main.tf | 2 +- docs/posts/0005-install-k3s-on-ubuntu22.md | 8 ++++---- lychee.toml | 3 +++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 lychee.toml diff --git a/docs/codes/0005-install-k3s-ubuntu/opentofu/main.tf b/docs/codes/0005-install-k3s-ubuntu/opentofu/main.tf index 4f9fa4f..4a6c876 100644 --- a/docs/codes/0005-install-k3s-ubuntu/opentofu/main.tf +++ b/docs/codes/0005-install-k3s-ubuntu/opentofu/main.tf @@ -2,7 +2,7 @@ resource "hcloud_server" "this" { name = "k3s-cluster" server_type = "cax11" # ARM64, 2vCPU, 4GB RAM image = "ubuntu-22.04" - location = "nbg1" # Nuernberg DC + location = "nbg1" # Nuremberg DC user_data = file("${path.module}/cloud-init.yml") } diff --git a/docs/posts/0005-install-k3s-on-ubuntu22.md b/docs/posts/0005-install-k3s-on-ubuntu22.md index 36a1c9c..51c422e 100644 --- a/docs/posts/0005-install-k3s-on-ubuntu22.md +++ b/docs/posts/0005-install-k3s-on-ubuntu22.md @@ -71,8 +71,8 @@ for high availability and fault tolerance. You will be guided with some of the obvious tips at the end of this post. First, you need to create an account on Hetzner Cloud[^2] and generate an API -token[^3]. Your generated token must have write access cause we need to create -resources on your behalf. +token[^3]. Your generated token must have write access cause the TF files will +create resources on your behalf. ## Step 1: Create the server @@ -258,7 +258,7 @@ Cilium has native support[^7] for Gatway API. To run this ansible playbook, I will simply run the following command: -```shell title="" +```shell title="" linenums="0" ansible-playbook -i ansible/inventory.yml ansible/playbook.yml -v ``` @@ -307,7 +307,7 @@ Cloud Firewall to protect my server. -8<- "docs/codes/0005-install-k3s-ubuntu/opentofu/versions.tf" ``` -```hcl title="opentofu/network.tf" +```hcl title="opentofu/network.tf" hl_lines="11 17-19" -8<- "docs/codes/0005-install-k3s-ubuntu/opentofu/network.tf" ``` diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 0000000..e8458ef --- /dev/null +++ b/lychee.toml @@ -0,0 +1,3 @@ +exclude = [ + 'https://accounts.hetzner.com/login', +]