From af10b84deb6dfd710ecfcde4190d0f233971c01a Mon Sep 17 00:00:00 2001 From: Olblak Date: Wed, 8 Jul 2026 08:48:05 +0200 Subject: [PATCH 1/4] feat: add systemd plugin documentation Signed-off-by: Olblak --- .../systemd/updatecli.d/default.yaml | 28 ++++++++++ content/en/docs/plugins/resource/systemd.adoc | 55 +++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 assets/code_example/docs/plugins/resources/systemd/updatecli.d/default.yaml create mode 100644 content/en/docs/plugins/resource/systemd.adoc diff --git a/assets/code_example/docs/plugins/resources/systemd/updatecli.d/default.yaml b/assets/code_example/docs/plugins/resources/systemd/updatecli.d/default.yaml new file mode 100644 index 000000000..467c114ce --- /dev/null +++ b/assets/code_example/docs/plugins/resources/systemd/updatecli.d/default.yaml @@ -0,0 +1,28 @@ +sources: + default: + name: Get value from systemd configuration + kind: systemd + spec: + file: "wg.container" + section: "Container" + option: Image + +conditions: + default: + name: Test if source output exist in systemd configuration + kind: systemd + spec: + file: "wg.container" + section: "Container" + option: Image + +targets: + default: + name: Update systemd configuration + kind: systemd + disablesourceinput: true + spec: + file: "wg.container" + section: "Container" + option: Volume + value: "xxx" diff --git a/content/en/docs/plugins/resource/systemd.adoc b/content/en/docs/plugins/resource/systemd.adoc new file mode 100644 index 000000000..dc23049a8 --- /dev/null +++ b/content/en/docs/plugins/resource/systemd.adoc @@ -0,0 +1,55 @@ +--- +title: "Systemd" +description: "Manipulate systemd configuration file" +lead: "kind: systemd" +draft: false +images: [] +menu: + docs: + parent: "plugin-resource" +toc: true +plugins: + - source + - condition + - target +--- +// +:toc: +// Set toclevels to be at least your hugo [markup.tableOfContents.endLevel] config key +:toclevels: 4 + +[cols="1^,1^,1^",options=header] +|=== +| source | condition | target +| ✔ | ✔ | ✔ +|=== + +== Description + +**source** + +The Systemd "source" retrieves information from a systemd configuration file. + +**condition** + +The Systemd "condition" tests that an information exist in a systemd configuration file. + +**target** + +The Systemd "target" ensures that a systemd configuration file contains a specific value at a location. + +IMPORTANT: Updatecli will drop all comments in the system configuration file. Feel free to report an issue if you need to keep comments in the systemd configuration file. + +== Parameters + +{{< resourceparameters "sources" "systemd" >}} + + +== Example + +[source,yaml] +---- +# updatecli.yaml +{{}} +---- + From be4a5fd14f412f9eaca1aaf4466274c4de328186 Mon Sep 17 00:00:00 2001 From: Olblak Date: Wed, 8 Jul 2026 08:48:29 +0200 Subject: [PATCH 2/4] fix: update updatecli autodiscovery doc title Signed-off-by: Olblak --- content/en/docs/plugins/autodiscovery/updatecli.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/plugins/autodiscovery/updatecli.yaml b/content/en/docs/plugins/autodiscovery/updatecli.yaml index e62b7acc9..5a0cb1b7d 100644 --- a/content/en/docs/plugins/autodiscovery/updatecli.yaml +++ b/content/en/docs/plugins/autodiscovery/updatecli.yaml @@ -1,5 +1,5 @@ --- -title: "Updatecli" +title: "Updatecli " description: "Discover Updatecli container update" lead: "kind: updatecli" draft: false From ef623494f22e44636b3ca135152f6df807ccf633 Mon Sep 17 00:00:00 2001 From: Olblak Date: Wed, 8 Jul 2026 08:58:41 +0200 Subject: [PATCH 3/4] fix: updatecli autodiscovery file extension Signed-off-by: Olblak --- .../plugins/autodiscovery/{updatecli.yaml => updatecli.adoc} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename content/en/docs/plugins/autodiscovery/{updatecli.yaml => updatecli.adoc} (96%) diff --git a/content/en/docs/plugins/autodiscovery/updatecli.yaml b/content/en/docs/plugins/autodiscovery/updatecli.adoc similarity index 96% rename from content/en/docs/plugins/autodiscovery/updatecli.yaml rename to content/en/docs/plugins/autodiscovery/updatecli.adoc index 5a0cb1b7d..e62b7acc9 100644 --- a/content/en/docs/plugins/autodiscovery/updatecli.yaml +++ b/content/en/docs/plugins/autodiscovery/updatecli.adoc @@ -1,5 +1,5 @@ --- -title: "Updatecli " +title: "Updatecli" description: "Discover Updatecli container update" lead: "kind: updatecli" draft: false From a110e0bf6ee572fa002627f7de042025f68eb871 Mon Sep 17 00:00:00 2001 From: Olblak Date: Wed, 8 Jul 2026 08:59:04 +0200 Subject: [PATCH 4/4] fix: terragrunt autodiscovery code block Signed-off-by: Olblak --- content/en/docs/plugins/autodiscovery/terragrunt.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/en/docs/plugins/autodiscovery/terragrunt.adoc b/content/en/docs/plugins/autodiscovery/terragrunt.adoc index c64cf36c3..6a40777f2 100644 --- a/content/en/docs/plugins/autodiscovery/terragrunt.adoc +++ b/content/en/docs/plugins/autodiscovery/terragrunt.adoc @@ -27,8 +27,9 @@ It will parsed the module source and infer the source type. It will update the file using the link:{{< ref "hcl" >}}[`hcl`] target. It supports the following module source definition and will update with prefixing accordingly + [,hcl] ---- +---- terraform { source = "tfr://someModule?version=1.2.3 } @@ -44,7 +45,7 @@ terraform { terraform { source = "tfr://${local.module}?version=1.2.3" } ---- +---- == Manifest === Parameters