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

Unable to define endpoint with custom port number #530

Closed
Caprico85 opened this issue Feb 25, 2019 · 0 comments
Closed

Unable to define endpoint with custom port number #530

Caprico85 opened this issue Feb 25, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@Caprico85
Copy link

Expected Behavior

Being able to define an endpoint with a custom port number like this

@@icinga2::object::endpoint { 'lb01':
    host => 'lb01',
    port => 59501,
}

Current Behavior

Above statement results in error message:

Error while evaluating a Resource Statement, Icinga2::Object::Endpoint[lb01.fahnedom.local]: parameter 'port' expects a match for Stdlib::Ensure::Service = Enum['running', 'stopped'], got 59501

Possible Solution

In manifests/object/endpoint.pp:

define icinga2::object::endpoint(
  ...
  Optional[Stdlib::Ensure::Service]     $port          = undef,
           ^^^^^^^^^^^^^^^^^^^^^^^

I guess $port should not be of type Service.

@lbetz lbetz added the bug label Feb 25, 2019
@lbetz lbetz self-assigned this Feb 25, 2019
@lbetz lbetz added this to the v2.0.2 milestone Feb 25, 2019
@lbetz lbetz closed this as completed in 53bfa12 Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants