ghoneycutt / puppet-module-ssh

Puppet module to manage SSH
Other
34 stars 184 forks source link

Error: Evaluation Error: Class[Ssh::Server]: parameter 'port' expects a value of type Undef or Array, got Integer #414

Closed blodone closed 11 months ago

blodone commented 1 year ago

Hi,

I'm not a puppet expert figuring out how to migrate to version 4.

We have port specified but i don't know how to set it correct.

class my_ssh (
  Stdlib::Port $sshd_config_port               = 22,
) {
class { '::ssh::server':
  port                                 => $sshd_config_port,
}
}

Error: Evaluation Error: Error while evaluating a Resource Statement, Class[Ssh::Server]: parameter 'port' expects a value of type Undef or Array, got Integer

what is the correct way to use stdlib::port?

ghoneycutt commented 11 months ago

This is a type mismatch. Try using [22].