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/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 diff --git a/content/en/docs/plugins/autodiscovery/updatecli.yaml b/content/en/docs/plugins/autodiscovery/updatecli.adoc similarity index 100% rename from content/en/docs/plugins/autodiscovery/updatecli.yaml rename to content/en/docs/plugins/autodiscovery/updatecli.adoc 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 +{{}} +---- +