OP#561 initial commit after fork

This commit is contained in:
2026-04-05 14:39:09 +02:00
parent efdc857056
commit 256cf6ad08
11 changed files with 83 additions and 58 deletions

View File

@@ -1,22 +1,29 @@
## ssh_cd::params.pp
# Module name: ssh_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class contains all class parameters for ssh_cd
## confdroid_ssh::params.pp
# Module name: confdroid_ssh
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class contains all class parameters for confdroid_ssh
# @param [Array] reqpackages packages to install
# @param [String] pkg_ensure version to install: 'present' or 'latest'
##############################################################################
class ssh_cd::params (
class confdroid_ssh::params (
Array $reqpackages = ['openssh','openssh-clients','openssh-server'],
String $pkg_ensure = 'latest',
String $pkg_ensure = 'present',
) {
# default facts
$fqdn = $facts['networking']['fqdn']
$hostname = $facts['networking']['hostname']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
$sshd_user = 'root'
$ssh_etc_path = '/etc/ssh'
$sshd_service = 'sshd'
$sshd_config_path = "${ssh_etc_path}/sshd_config"
$sshd_config_erb = 'ssh_cd/ssh_config.erb'
$sshd_config_erb = 'confdroid_ssh/ssh_config.erb'
# includes must be last
include ssh_cd::main::config
include confdroid_ssh::main::config
}