Skip to content

Commit

Permalink
Fix spelling of configuration setting
Browse files Browse the repository at this point in the history
The parameter for PermitUserEnvironment setting was misspelled and was
missing the final 't'.
  • Loading branch information
ghoneycutt committed Dec 3, 2024
1 parent b07a279 commit f09ed29
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
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 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

0 comments on commit f09ed29

Please sign in to comment.