diff --git a/cdist/conf/type/__podman_compose/gencode-remote b/cdist/conf/type/__podman_compose/gencode-remote deleted file mode 100644 index 0f5cf9db..00000000 --- a/cdist/conf/type/__podman_compose/gencode-remote +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -e -# -# 2019 Daniel Tschada -# -# 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 . -# - -install="$(cat "$__object/parameter/install")" -state="$(cat "$__object/parameter/state")" -user="$(cat "$__object/parameter/user")" -version="$(cat "$__object/parameter/version")" \ No newline at end of file diff --git a/cdist/conf/type/__podman_compose/man.rst b/cdist/conf/type/__podman_compose/man.rst deleted file mode 100644 index fa98f443..00000000 --- a/cdist/conf/type/__podman_compose/man.rst +++ /dev/null @@ -1,61 +0,0 @@ -cdist-type__podman_compose(7) -============================= - -NAME ----- -cdist-type__podman_compose - install podman-compose - - -DESCRIPTION ------------ -Installs podman-compose package. -State 'absent' will not remove podman binary itself, -only podman-compose binary will be removed - - -REQUIRED PARAMETERS -------------------- -install - defaults to 'pip' - - -OPTIONAL PARAMETERS -------------------- -state - 'present' or 'absent', defaults to 'present' -user - the user who owns the file, defaults to 'root' - - -BOOLEAN PARAMETERS ------------------- -None. - - -EXAMPLES --------- - -.. code-block:: sh - - # Install podman-compose - __podman_compose - - # Install latest version via pip - __podman_compose --state present --install pip - - # Install latest version via pip and change user - __podman_compose --state present --install pip --user root - - # Remove podman-compose - __podman_compose --state absent - - -AUTHORS -------- -Daniel Tschada - - -COPYING -------- -Copyright \(C) 2019 Daniel Tschada. Free use of this software is -granted under the terms of the GNU General Public License version 3 or later (GPLv3+). diff --git a/cdist/conf/type/__podman_compose/manifest b/cdist/conf/type/__podman_compose/manifest deleted file mode 100755 index 2b06068d..00000000 --- a/cdist/conf/type/__podman_compose/manifest +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/sh -e -# -# 2019 Daniel Tschada -# -# 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 . -# - -# shellcheck disable=SC2154 -# shellcheck disable=SC2034 -install="$(cat "$__object/parameter/install")" -state="$(cat "$__object/parameter/state")" -user="$(cat "$__object/parameter/user")" -version="$(cat "$__object/parameter/version")" - -# install it with pip -if [ "${install}" = "pip" ]; then - - if [ "${state}" = "present" ]; then - __package_pip podman-compose --state present --pip /usr/local/bin/podman-compose --runas "${user}" - elif [ "${state}" = "absent" ]; then - __package_pip podman-compose --state absent - else - if [ "${state}" != "present" ] -a [ "${state}" != "absent" ]; then - echo "Unknown state: ${state}" >&2 - exit 1 - else - echo "Unknown user: ${user}" >&2 - exit 1 - fi - fi - -else - - echo "Unknown user: ${install}" >&2 - exit 1 - -fi \ No newline at end of file diff --git a/cdist/conf/type/__podman_compose/parameter/default/install b/cdist/conf/type/__podman_compose/parameter/default/install deleted file mode 100644 index a1b589e3..00000000 --- a/cdist/conf/type/__podman_compose/parameter/default/install +++ /dev/null @@ -1 +0,0 @@ -pip diff --git a/cdist/conf/type/__podman_compose/parameter/default/state b/cdist/conf/type/__podman_compose/parameter/default/state deleted file mode 100644 index e7f6134f..00000000 --- a/cdist/conf/type/__podman_compose/parameter/default/state +++ /dev/null @@ -1 +0,0 @@ -present diff --git a/cdist/conf/type/__podman_compose/parameter/default/user b/cdist/conf/type/__podman_compose/parameter/default/user deleted file mode 100644 index d8649da3..00000000 --- a/cdist/conf/type/__podman_compose/parameter/default/user +++ /dev/null @@ -1 +0,0 @@ -root diff --git a/cdist/conf/type/__podman_compose/parameter/optional b/cdist/conf/type/__podman_compose/parameter/optional deleted file mode 100644 index 92913e56..00000000 --- a/cdist/conf/type/__podman_compose/parameter/optional +++ /dev/null @@ -1,4 +0,0 @@ -install -state -user -version diff --git a/cdist/conf/type/__podman_compose/parameter/required b/cdist/conf/type/__podman_compose/parameter/required deleted file mode 100644 index 7c32f559..00000000 --- a/cdist/conf/type/__podman_compose/parameter/required +++ /dev/null @@ -1 +0,0 @@ -install diff --git a/cdist/conf/type/__podman_compose/singleton b/cdist/conf/type/__podman_compose/singleton deleted file mode 100644 index e69de29b..00000000 diff --git a/cdist/conf/type/__ufw/manifest b/cdist/conf/type/__ufw/manifest index 54309ff5..370b7ff5 100755 --- a/cdist/conf/type/__ufw/manifest +++ b/cdist/conf/type/__ufw/manifest @@ -31,7 +31,7 @@ case "$state" in __package epel-release require='__package/epel-release' __package ufw else - echo 'CentOS version 7 is required!' + echo 'CentOS version 7 is required!' >&2 exit 1 fi ;;