resources: msg: Introduce new resource type to log arbitrary messages

Untested things:
* systemd journal

Unimplemented things:
* syslog
This commit is contained in:
Felix Frank
2016-09-22 00:31:51 +02:00
committed by James Shubin
parent 41b3db7d6b
commit 30d93cfde7
4 changed files with 297 additions and 0 deletions

View File

@@ -217,6 +217,7 @@ parameter with the [Noop](#Noop) resource.
* [Exec](#Exec): Execute shell commands on the system.
* [File](#File): Manage files and directories.
* [Msg](#Msg): Send log messages.
* [Noop](#Noop): A simple resource that does nothing.
* [Pkg](#Pkg): Manage system packages with PackageKit.
* [Svc](#Svc): Manage system systemd services.
@@ -260,6 +261,11 @@ The force property is required if we want the file resource to be able to change
a file into a directory or vice-versa. If such a change is needed, but the force
property is not set to `true`, then this file resource will error.
###Msg
The msg resource sends messages to the main log, or an external service such
as systemd's journal.
###Noop
The noop resource does absolutely nothing. It does have some utility in testing