Skip to content

Commit

Permalink
fix: talos customization multiline string and ansible raw/endraw (#1275)
Browse files Browse the repository at this point in the history
* chore: update readme and workflows

Signed-off-by: Devin Buhl <[email protected]>

* fix: ansible templating

Signed-off-by: Devin Buhl <[email protected]>

* fix: talos templating

Signed-off-by: Devin Buhl <[email protected]>

---------

Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p authored Jan 31, 2024
1 parent a2ce911 commit 0021acc
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/tests/config-talos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cluster:
schematics:
enabled: true
id: df491c50a5acc05b977ef00c32050e1ceb0df746e40b33c643ac8a9bfb7c7263
customization:
customization: |-
extraKernelArgs:
- net.ifnames=0
systemExtensions:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/devcontainer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "devcontainer"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "e2e"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Flux Diff"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/kubeconform.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Kubeconform"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/label-sync.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Label Sync"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Labeler"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lychee.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Lychee"

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Release"

on:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The features included will depend on the type of configuration you want to use.

2. **"Flux cluster"** - An addition to "**Bare cluster**" that deploys an opinionated implementation of [Flux](https://github.com/fluxcd/flux2) using [GitHub](https://github.com/) as Git provider and [sops](https://github.com/getsops/sops) to manage secrets.

- **Required:** Some knowledge of [Git](https://git-scm.com/) and its practices & terminology.
- **Required:** Some knowledge of [Git](https://git-scm.com/) practices & terminology.
- **Components:** [flux](https://github.com/fluxcd/flux2), [cert-manager](https://github.com/cert-manager/cert-manager), [spegel](https://github.com/XenitAB/spegel), [reloader](https://github.com/stakater/Reloader), [system-upgrade-controller](https://github.com/rancher/system-upgrade-controller), and [openebs](https://github.com/openebs/openebs).

3. **"Flux cluster with Cloudflare"** - An addition to "**Flux cluster**" that provides DNS and SSL with [Cloudflare](https://www.cloudflare.com/). [Cloudflare Tunnel](https://www.cloudflare.com/products/tunnel/) is also included to provide external access to certain applications deployed in your cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Extract k3s version
ansible.builtin.set_fact:
current_k3s_version: "{{ k3s_version.stdout | regex_replace('(?im)k3s version (?P<version>[a-z0-9\\.\\+]+).*\n.*', '\\g<version>') }}"
current_k3s_version: "{% raw %}{{ k3s_version.stdout | regex_replace('(?im)k3s version (?P<version>[a-z0-9\\.\\+]+).*\n.*', '\\g<version>') }}{% endraw %}"

- name: Check if upgrades are allowed
ansible.builtin.assert:
Expand Down
2 changes: 1 addition & 1 deletion config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ cluster:
# id: ""
# # (Required) Additional NodeConfigs to apply to all nodes
# # See: https://budimanjojo.github.io/talhelper/latest/reference/configuration/#nodeconfigs
# customization:
# customization: |-
# extraKernelArgs:
# - net.ifnames=0
# systemExtensions:
Expand Down

0 comments on commit 0021acc

Please sign in to comment.