diff options
| author | Dennis Camera <cdist@dtnr.ch> | 2021-03-17 16:35:01 +0100 |
|---|---|---|
| committer | Dennis Camera <cdist@dtnr.ch> | 2021-03-17 16:36:39 +0100 |
| commit | 1951e0535a7266b0035297e1aa53000b69a01499 (patch) | |
| tree | 2f08c5c82de2196bd6fabcf8125447a2f9e06899 | |
| parent | 39573e670bcab4188ae53673d479652c7d46fc8e (diff) | |
| download | __dtnrch_getssl-1951e0535a7266b0035297e1aa53000b69a01499.tar.gz __dtnrch_getssl-1951e0535a7266b0035297e1aa53000b69a01499.zip | |
[type/__dtnrch_getssl_cert] Add type
| -rw-r--r-- | type/__dtnrch_getssl_cert/explorer/cfg-values | 29 | ||||
| l--------- | type/__dtnrch_getssl_cert/files/update_getssl_cfg.awk | 1 | ||||
| -rwxr-xr-x | type/__dtnrch_getssl_cert/gencode-remote | 20 | ||||
| -rw-r--r-- | type/__dtnrch_getssl_cert/man.rst | 53 | ||||
| -rwxr-xr-x | type/__dtnrch_getssl_cert/manifest | 19 |
5 files changed, 122 insertions, 0 deletions
diff --git a/type/__dtnrch_getssl_cert/explorer/cfg-values b/type/__dtnrch_getssl_cert/explorer/cfg-values new file mode 100644 index 0000000..51219b6 --- /dev/null +++ b/type/__dtnrch_getssl_cert/explorer/cfg-values @@ -0,0 +1,29 @@ +#!/bin/sh -e +# +# 2021 Dennis Camera (cdist at dtnr.ch) +# +# 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 <http://www.gnu.org/licenses/>. +# +# Prints the "active" getssl.cfg values + +CONF_DIR=/etc/getssl + +domain=${__object_id:?} +getssl_cfg=${CONF_DIR:?}/${domain}/getssl.cfg + +test -e "${getssl_cfg}" || exit 0 + +sed -e 's/^[ \t]*\(.*\)[ \t]*$/\1/' -e '/^#/d' -e '/^$/d' "${getssl_cfg}" | sort diff --git a/type/__dtnrch_getssl_cert/files/update_getssl_cfg.awk b/type/__dtnrch_getssl_cert/files/update_getssl_cfg.awk new file mode 120000 index 0000000..fb586d7 --- /dev/null +++ b/type/__dtnrch_getssl_cert/files/update_getssl_cfg.awk @@ -0,0 +1 @@ +../../__dtnrch_getssl/files/update_getssl_cfg.awk
\ No newline at end of file diff --git a/type/__dtnrch_getssl_cert/gencode-remote b/type/__dtnrch_getssl_cert/gencode-remote new file mode 100755 index 0000000..a725ffa --- /dev/null +++ b/type/__dtnrch_getssl_cert/gencode-remote @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# 2021 Dennis Camera (cdist at dtnr.ch) +# +# 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 <http://www.gnu.org/licenses/>. +# + diff --git a/type/__dtnrch_getssl_cert/man.rst b/type/__dtnrch_getssl_cert/man.rst new file mode 100644 index 0000000..1117783 --- /dev/null +++ b/type/__dtnrch_getssl_cert/man.rst @@ -0,0 +1,53 @@ +cdist-type__dtnrch_getssl_cert(7) +================================= + +NAME +---- +cdist-type__dtnrch_getssl_cert - TODO + + +DESCRIPTION +----------- +This space intentionally left blank. + + +REQUIRED PARAMETERS +------------------- +None. + + +OPTIONAL PARAMETERS +------------------- +None. + + +BOOLEAN PARAMETERS +------------------ +None. + + +EXAMPLES +-------- + +.. code-block:: sh + + # TODO + __dtnrch_getssl_cert + + +SEE ALSO +-------- +:strong:`cdist-type__dtnrch_getssl`\ (7) + + +AUTHORS +------- +Dennis Camera <cdist--@--dtnr.ch> + + +COPYING +------- +Copyright \(C) 2021 Dennis Camera. 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. diff --git a/type/__dtnrch_getssl_cert/manifest b/type/__dtnrch_getssl_cert/manifest new file mode 100755 index 0000000..6a7d9fd --- /dev/null +++ b/type/__dtnrch_getssl_cert/manifest @@ -0,0 +1,19 @@ +#!/bin/sh -e +# +# 2021 Dennis Camera (cdist at dtnr.ch) +# +# 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 <http://www.gnu.org/licenses/>. +# |
