From 5ed643e7c2bcf7844fa3f1123642004b42cebf65 Mon Sep 17 00:00:00 2001 From: Daniel Fancsali Date: Mon, 18 Jan 2021 18:52:34 +0000 Subject: [PATCH] New type: __nop --- cdist/conf/type/__nop/gencode-remote | 21 +++++++++++ cdist/conf/type/__nop/man.rst | 54 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100755 cdist/conf/type/__nop/gencode-remote create mode 100644 cdist/conf/type/__nop/man.rst diff --git a/cdist/conf/type/__nop/gencode-remote b/cdist/conf/type/__nop/gencode-remote new file mode 100755 index 00000000..5f909670 --- /dev/null +++ b/cdist/conf/type/__nop/gencode-remote @@ -0,0 +1,21 @@ +#!/bin/sh -e +# +# 2021 Daniel Fancsali (fancsali@gmail.com) +# +# This file is part of cdist. +# +# cdist is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# cdist is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with cdist. If not, see . +# + +echo "All your base are belong to us." >&2 diff --git a/cdist/conf/type/__nop/man.rst b/cdist/conf/type/__nop/man.rst new file mode 100644 index 00000000..28f783e6 --- /dev/null +++ b/cdist/conf/type/__nop/man.rst @@ -0,0 +1,54 @@ +cdist-type__nop(7) +================== + +NAME +---- +cdist-type__nop - Do nothing. + + +DESCRIPTION +----------- +This type will literally do nothing; it's sole purpose is to provide an 'anchor point' in case one would have an empty manifest, but still needs to specify some dependencies. + +The only thing that one needs to specify is some kind of object name, which will be simply ignored. + +It is advisible, though, to provide a name based on the parent object's id, so to make this call unique. + +REQUIRED PARAMETERS +------------------- +None. + + +OPTIONAL PARAMETERS +------------------- +None. + + +BOOLEAN PARAMETERS +------------------ +None. + + +EXAMPLES +-------- + +.. code-block:: sh + + require="__othertype/foo" __nop $__object_id # Use parent object's id to make the name unique + + +SEE ALSO +-------- +*Nothing to see here...* + +AUTHORS +------- +Daniel Fancsali + + +COPYING +------- +Copyright \(C) 2021 Daniel Fancsali. You can redistribute it +and/or modify it under the terms of the GNU General Public License as +published by the Free Software Foundation, either version 3 of the +License, or (at your option) any later version.