Merge pull request #723 from oliv3r/__ping

type: Add new type __ping
This commit is contained in:
Darko Poljak 2018-11-27 10:40:03 +01:00 committed by GitHub
commit 3a96c21f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,12 @@
#!/bin/sh -e
#
# Copyright (C) 2018 Olliver Schinagl <oliver@schinagl.nl>
#
# SPDX-License-Identifier: GPL-3.0+
#
set -eu
echo "echo 'pong'"
exit 0

View File

@ -0,0 +1,43 @@
cdist-type__ping(7)
==================================
NAME
----
cdist-type__ping - Try to connect to host and return 'pong' on success
DESCRIPTION
-----------
A simple type which tries to connect to a remote host and runs a simple command
to ensure everything is working.
REQUIRED PARAMETERS
-------------------
None.
OPTIONAL PARAMETERS
-------------------
None.
EXAMPLES
--------
.. code-block:: sh
__ping
AUTHORS
-------
Olliver Schinagl <oliver--@--schinagl.nl>
COPYING
-------
Copyright \(C) 2018 Schinagl. 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.

View File