Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"
5 changes: 3 additions & 2 deletions content/en/docs/plugins/autodiscovery/terragrunt.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -44,7 +45,7 @@ terraform {
terraform {
source = "tfr://${local.module}?version=1.2.3"
}
---
----

== Manifest
=== Parameters
Expand Down
55 changes: 55 additions & 0 deletions content/en/docs/plugins/resource/systemd.adoc
Original file line number Diff line number Diff line change
@@ -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
---
// <!-- Required for asciidoctor -->
: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
| &#10004; | &#10004; | &#10004;
|===

== 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
{{<include "assets/code_example/docs/plugins/resources/systemd/updatecli.d/default.yaml">}}
----

Loading