From 575ebc8a9973315329bb4cdc0e4bed7afe7de620 Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Mon, 14 Oct 2024 18:31:35 +0200 Subject: [PATCH] update REFERENCE.md (#396) --- REFERENCE.md | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/REFERENCE.md b/REFERENCE.md index 4578f022..b51c3544 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -27,6 +27,7 @@ * [`ssh::client::config::user`](#ssh--client--config--user): This defined type manages a users ssh config * [`ssh::client::match_block`](#ssh--client--match_block): Add match_block to ssh client config (concat needed) * [`ssh::server::config::setting`](#ssh--server--config--setting): Internal define to managed ssh server param +* [`ssh::server::config_file`](#ssh--server--config_file): Resource type for managing a config file in the include dir. * [`ssh::server::host_key`](#ssh--server--host_key): Manage a ssh host key This module install a ssh host key in the server (basically, it is @@ -541,6 +542,10 @@ The following parameters are available in the `ssh::server` class: * [`host_priv_key_group`](#-ssh--server--host_priv_key_group) * [`default_options`](#-ssh--server--default_options) * [`ensure`](#-ssh--server--ensure) +* [`include_dir`](#-ssh--server--include_dir) +* [`include_dir_mode`](#-ssh--server--include_dir_mode) +* [`include_dir_purge`](#-ssh--server--include_dir_purge) +* [`config_files`](#-ssh--server--config_files) * [`storeconfigs_enabled`](#-ssh--server--storeconfigs_enabled) * [`options`](#-ssh--server--options) * [`validate_sshd_file`](#-ssh--server--validate_sshd_file) @@ -601,6 +606,38 @@ Ensurable param to ssh server Default value: `present` +##### `include_dir` + +Data type: `Optional[Stdlib::Absolutepath]` + +Path to sshd include directory. + +Default value: `undef` + +##### `include_dir_mode` + +Data type: `Stdlib::Filemode` + +Mode to set on the sshd include directory. + +Default value: `'0700'` + +##### `include_dir_purge` + +Data type: `Boolean` + +Purge the include directory if true. + +Default value: `true` + +##### `config_files` + +Data type: `Hash[String, Hash]` + +Hash of config files to add to the ssh include directory. + +Default value: `{}` + ##### `storeconfigs_enabled` Data type: `Boolean` @@ -835,6 +872,52 @@ Orders your setting within the config file Default value: `'10'` +### `ssh::server::config_file` + +Resource type for managing a config file in the include dir. + +#### Parameters + +The following parameters are available in the `ssh::server::config_file` defined type: + +* [`mode`](#-ssh--server--config_file--mode) +* [`include`](#-ssh--server--config_file--include) +* [`options`](#-ssh--server--config_file--options) +* [`path`](#-ssh--server--config_file--path) + +##### `mode` + +Data type: `Stdlib::Filemode` + +File mode for the config file. + +Default value: `$ssh::server::sshd_config_mode` + +##### `include` + +Data type: `Optional[Stdlib::Absolutepath]` + +Absolute path to config file to include at the top of the config file. This +is intended for including files not managed by this module (crypto policies). + +Default value: `undef` + +##### `options` + +Data type: `Hash` + +Dynamic hash for openssh server option + +Default value: `{}` + +##### `path` + +Data type: `Stdlib::Absolutepath` + + + +Default value: `"${ssh::server::include_dir}/${name}.conf"` + ### `ssh::server::host_key` Manage a ssh host key