Skip to content
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

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

Closed
blodone opened this issue Sep 28, 2023 · 1 comment

Comments

@blodone
Copy link

blodone commented Sep 28, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants