Skip to content

Param spelling #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

### Data types

* [`Ssh::Key::Type`](#Ssh--Key--Type): From https://github.com/puppetlabs/puppetlabs-sshkeys_core/blob/master/lib/puppet/type/sshkey.rb v1.0.2
* [`Ssh::Log_level`](#Ssh--Log_level)
* [`Ssh::Permit_root_login`](#Ssh--Permit_root_login): 'without-password' is a deprecated alias for 'prohibit-password'
* [`Ssh::Key::Type`](#Ssh--Key--Type): validate SSH key types
* [`Ssh::Log_level`](#Ssh--Log_level): validate SSH log levels
* [`Ssh::Permit_root_login`](#Ssh--Permit_root_login): validate configuration options for permit_root_login
* [`Ssh::Ssh_Config`](#Ssh--Ssh_Config): ssh_config configuration file parameters
* [`Ssh::Sshd_Config`](#Ssh--Sshd_Config): sshd_config configuration file parameters
* [`Ssh::Syslog_facility`](#Ssh--Syslog_facility)
* [`Ssh::Yes_no`](#Ssh--Yes_no)
* [`Ssh::Syslog_facility`](#Ssh--Syslog_facility): validate syslog facilities used by SSH
* [`Ssh::Yes_no`](#Ssh--Yes_no): validate SSH configuration that uses yes/no.

## Classes

Expand Down Expand Up @@ -2653,7 +2653,7 @@ Alias of `Enum['ssh-dss', 'ssh-ed25519', 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ecds

### <a name="Ssh--Log_level"></a>`Ssh::Log_level`

The Ssh::Log_level data type.
validate SSH log levels

Alias of `Enum['QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG', 'DEBUG1', 'DEBUG2', 'DEBUG3']`

Expand Down Expand Up @@ -2848,7 +2848,7 @@ Struct[{
Optional['PermitRootLogin'] => Ssh::Permit_root_login,
Optional['PermitTTY'] => Ssh::Yes_no,
Optional['PermitTunnel'] => Enum['yes', 'point-to-point', 'ethernet', 'no'],
Optional['PermitUserEnvironmen'] => String[1],
Optional['PermitUserEnvironment'] => String[1],
Optional['PermitUserRC'] => Ssh::Yes_no,
Optional['PerSourceMaxStartups'] => String[1],
Optional['PerSourceNetBlockSize'] => String[1],
Expand Down Expand Up @@ -2885,13 +2885,13 @@ Struct[{

### <a name="Ssh--Syslog_facility"></a>`Ssh::Syslog_facility`

The Ssh::Syslog_facility data type.
validate syslog facilities used by SSH

Alias of `Enum['DAEMON', 'USER', 'AUTH', 'LOCAL0', 'LOCAL1', 'LOCAL2', 'LOCAL3', 'LOCAL4', 'LOCAL5', 'LOCAL6', 'LOCAL7', 'AUTHPRIV']`

### <a name="Ssh--Yes_no"></a>`Ssh::Yes_no`

The Ssh::Yes_no data type.
validate SSH configuration that uses yes/no.

Alias of `Enum['yes', 'no']`

4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
}
],
"description": "Manage SSH",
"pdk-version": "3.0.0",
"pdk-version": "3.3.0",
"template-url": "https://github.com/tailored-automation/pdk-templates#main",
"template-ref": "heads/main-0-g53868f7"
"template-ref": "heads/main-0-g8e0611a"
}
4 changes: 2 additions & 2 deletions spec/defines/config_file_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class { 'ssh::server':
'PermitRootLogin' => 'prohibit-password',
'PermitTTY' => 'yes',
'PermitTunnel' => 'point-to-point',
'PermitUserEnvironmen' => 'test',
'PermitUserEnvironment' => 'test',
'PermitUserRC' => 'yes',
'PerSourceMaxStartups' => 'test',
'PerSourceNetBlockSize' => 'test',
Expand Down Expand Up @@ -251,7 +251,7 @@ class { 'ssh::server':
|PermitRootLogin prohibit-password
|PermitTTY yes
|PermitTunnel point-to-point
|PermitUserEnvironmen test
|PermitUserEnvironment test
|PermitUserRC yes
|PerSourceMaxStartups test
|PerSourceNetBlockSize test
Expand Down
2 changes: 1 addition & 1 deletion spec/type_aliases/sshd_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
'Banner', 'CASignatureAlgorithms', 'ChannelTimeout', 'ChrootDirectory', 'Ciphers', 'DenyGroups', 'DenyUsers',
'ForceCommand', 'HostbasedAcceptedAlgorithms', 'HostCertificate', 'HostKey', 'HostKeyAgent', 'HostKeyAlgorithms',
'Include', 'IPQoS', 'KexAlgorithms', 'ListenAddress', 'LogVerbose', 'MACs', 'Match', 'MaxStartups', 'PermitListen',
'PermitOpen', 'PermitUserEnvironmen', 'PerSourceMaxStartups', 'PerSourceNetBlockSize', 'PidFile', 'PubkeyAcceptedAlgorithms',
'PermitOpen', 'PermitUserEnvironment', 'PerSourceMaxStartups', 'PerSourceNetBlockSize', 'PidFile', 'PubkeyAcceptedAlgorithms',
'RekeyLimit', 'RevokedKeys', 'RDomain', 'SetEnv', 'Subsystem', 'TrustedUserCAKeys', 'VersionAddendum', 'XAuthLocation'
].each do |directive|
describe directive.inspect do
Expand Down
2 changes: 1 addition & 1 deletion types/sshd_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
Optional['PermitRootLogin'] => Ssh::Permit_root_login,
Optional['PermitTTY'] => Ssh::Yes_no,
Optional['PermitTunnel'] => Enum['yes', 'point-to-point', 'ethernet', 'no'],
Optional['PermitUserEnvironmen'] => String[1],
Optional['PermitUserEnvironment'] => String[1],
Optional['PermitUserRC'] => Ssh::Yes_no,
Optional['PerSourceMaxStartups'] => String[1],
Optional['PerSourceNetBlockSize'] => String[1],
Expand Down
Loading