voxpupuli/puppet-openvpn

openvpn::server, documentation doesn't match the code for parameter 'port'

Closed this issue · 0 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: Any
  • Ruby: Any
  • Distribution: Any
  • Module version: 7.1.0

How to reproduce (e.g Puppet code you use)

openvpn::server { 'some_name':
  local => '',
  port  => 1193,
}

What are you seeing

Documentation does not match actual code in manifests/server.pp.

Lines 78-80:

# [*port*]
#   Integer.  The port the openvpn server service is running on
#   Default: 1194

Line 453:

  String $port                              = '1194',

What behaviour did you expect instead

I expected it to accept an Integer since that was what the documentation said (didn't look at the code).

Output log

Error: Evaluation Error: Error while evaluating a Resource Statement, Openvpn::Server[some_name]: parameter 'port' expects a String value, got Integer