Puppet Class: ssh::client::config
- Defined in:
- manifests/client/config.pp
Overview
Class: ssh::client::config
Provide the configuration parameters necessary to configure ssh(8) through ssh_config(5) from a template.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'manifests/client/config.pp', line 6
class ssh::client::config (
$addkeystoagent = undef,
$addressfamily = undef,
$batchmode = undef,
$bindaddress = undef,
$canonicaldomains = undef,
$canonicalizefallbacklocal = undef,
$canonicalizehostname = undef,
$canonicalizemaxdots = undef,
$canonicalizepermittedcnames = undef,
$certificatefile = undef,
$challengeresponseauthentication = undef,
$checkhostip = undef,
$cipher = undef,
$ciphers = undef,
$clearallforwardings = undef,
$compression = undef,
$compressionlevel = undef,
$connectionattempts = undef,
$connecttimeout = undef,
$controlmaster = undef,
$controlpath = undef,
$controlpersist = undef,
$dynamicforward = undef,
$enablesshkeysign = undef,
$escapechar = undef,
$exitonforwardfailure = undef,
$fingerprinthash = undef,
$forwardagent = undef,
$forwardx11 = undef,
$forwardx11timeout = undef,
$forwardx11trusted = undef,
$gatewayports = undef,
$globalknownhostsfile = undef,
$gssapiauthentication = undef,
$gssapidelegatecredentials = undef,
$hashknownhosts = undef,
$hostbasedauthentication = undef,
$hostbasedkeytypes = undef,
$hostkeyalgorithms = undef,
$hostkeyalias = undef,
$hostname = undef,
$identitiesonly = undef,
$identityagent = undef,
$identityfile = undef,
$ignoreunknown = undef,
$include = undef,
$ipqos = undef,
$kbdinteractiveauthentication = undef,
$kbdinteractivedevices = undef,
$kexalgorithms = undef,
$localcommand = undef,
$localforward = undef,
$macs = undef,
$nohostauthenticationforlocalhost= undef,
$numberofpasswordprompts = undef,
$passwordauthentication = undef,
$permitlocalcommand = undef,
$pkcs11provider = undef,
$port = undef,
$preferredauthentications = undef,
$protocol = undef,
$proxycommand = undef,
$proxyjump = undef,
$proxyusefdpass = undef,
$pubkeyacceptedkeytypes = undef,
$pubkeyauthentication = undef,
$rekeylimit = undef,
$remoteforward = undef,
$requesttty = undef,
$revokedhostkeys = undef,
$rhostsrsaauthentication = undef,
$rsaauthentication = undef,
$sendenv = undef,
$serveralivecountmax = undef,
$serveraliveinterval = undef,
$streamlocalbindmask = undef,
$streamlocalbindunlink = undef,
$stricthostkeychecking = undef,
$tcpkeepalive = undef,
$tunnel = undef,
$tunneldevice = undef,
$updatehostkeys = undef,
$useprivilegedport = undef,
$user = undef,
$userknownhostsfile = undef,
$verifyhostkeydns = undef,
$versionaddendum = undef,
$visualhostkey = undef,
$xauthlocation = undef,
$log_level = 'INFO', # underscore here because puppet
) {
include ssh
$valid_keywords = [
'IgnoreUnknown', # Keep this at the beginning
'AddKeysToAgent',
'AddressFamily',
'BatchMode',
'BindAddress',
'CanonicalDomains',
'CanonicalizeFallbackLocal',
'CanonicalizeHostname',
'CanonicalizeMaxDots',
'CanonicalizePermittedCNAMEs',
'CertificateFile',
'ChallengeResponseAuthentication',
'CheckHostIP',
'Cipher',
'Ciphers',
'ClearAllForwardings',
'Compression',
'CompressionLevel',
'ConnectionAttempts',
'ConnectTimeout',
'ControlMaster',
'ControlPath',
'ControlPersist',
'DynamicForward',
'EnableSSHKeysign',
'EscapeChar',
'ExitOnForwardFailure',
'FingerprintHash',
'ForwardAgent',
'ForwardX11',
'ForwardX11Timeout',
'ForwardX11Trusted',
'GatewayPorts',
'GlobalKnownHostsFile',
'GSSAPIAuthentication',
'GSSAPIDelegateCredentials',
'HashKnownHosts',
'HostbasedAuthentication',
'HostbasedKeyTypes',
'HostKeyAlgorithms',
'HostKeyAlias',
'HostName',
'IdentitiesOnly',
'IdentityAgent',
'IdentityFile',
'Include',
'IPQoS',
'KbdInteractiveAuthentication',
'KbdInteractiveDevices',
'KexAlgorithms',
'LocalCommand',
'LocalForward',
#'LogLevel',
'MACs',
'NoHostAuthenticationForLocalhost',
'NumberOfPasswordPrompts',
'PasswordAuthentication',
'PermitLocalCommand',
'PKCS11Provider',
'Port',
'PreferredAuthentications',
'Protocol',
'ProxyCommand',
'ProxyJump',
'ProxyUseFdpass',
'PubkeyAcceptedKeyTypes',
'PubkeyAuthentication',
'RekeyLimit',
'RemoteForward',
'RequestTTY',
'RevokedHostKeys',
'RhostsRSAAuthentication',
'RSAAuthentication',
'SendEnv',
'ServerAliveCountMax',
'ServerAliveInterval',
'StreamLocalBindMask',
'StreamLocalBindUnlink',
'StrictHostKeyChecking',
'TCPKeepAlive',
'Tunnel',
'TunnelDevice',
'UpdateHostKeys',
'UsePrivilegedPort',
'User',
'UserKnownHostsFile',
'VerifyHostKeyDNS',
'VersionAddendum',
'VisualHostKey',
'XAuthLocation',
]
# Keywords that are joined by spaces in the presence of multiple
# values
$space_separated_keywords = [
'GlobalKnownHostsFile',
'IPQoS',
'SendEnv',
'UserKnownHostsFile',
]
# Keywords that are configured with their own defined type.
$defined_keywords = [
'Host',
'Match',
]
concat::fragment { 'ssh_config':
order => '10',
target => $ssh::ssh_config,
content => template('ssh/sshd_config.erb'), # ssh_config looks like sshd_config
}
}
|