diff --git a/README.rst b/README.rst index 18ab65d..ad7a751 100644 --- a/README.rst +++ b/README.rst @@ -16,31 +16,20 @@ subdirectories (see below). REQUIRED PARAMETERS ------------------- -None. +config + Name of the configuration file below files/openvpn/ + OPTIONAL PARAMETERS ------------------- -state - 'present', 'absent', 'exists' or 'pre-exists', defaults to 'present' where: +srcdir + Directory that contains additional files for the server + configuration. The directory is relative to files/openvpn/. + If not specified, defaults to "server-generic". This directory + contains usually the following files: ca.crt, server.crt and + server.key. Additionally a sub directory "ccd" can be present that + contains client specific configuration files. - present - the file is exactly the one from source - absent - the file does not exist - exists - the file from source but only if it doesn't already exist - pre-exists - check that the file exists and is a regular file, but do not - create or modify it - -group - Group to chgrp to. - -mode - Unix permissions, suitable for chmod. - -owner - User to chown to. source If supplied, copy this file from the host running cdist to the target. diff --git a/manifest b/manifest index 306b2b2..f606249 100644 --- a/manifest +++ b/manifest @@ -1,3 +1,24 @@ +#!/bin/sh -e +# +# 2018 ungleich glarus ag (foss at ungleich.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 . +# + + config=$(cat "$__object/parameter/config") srcdirparamfile="$__object/parameter/srcdir"