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

added status-version parameter to server #108

Merged
merged 2 commits into from
Oct 28, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
# String. Logfile for periodic dumps of the vpn service status
# Default: "${name}/openvpn-status.log"
#
# [*status_version*]
# Integer. Choose the status file format version number. Can be 1, 2 or 3 and defaults to 1
# Default: None (=1)
#
# [*server*]
# String. Network to assign client addresses out of
# Default: None. Required in tun mode, not in tap mode
Expand Down Expand Up @@ -322,6 +326,7 @@
$port = '1194',
$proto = 'tcp',
$status_log = "${name}/openvpn-status.log",
$status_version = '',
$server = '',
$server_ipv6 = '',
$server_bridge = '',
Expand Down
3 changes: 3 additions & 0 deletions templates/server.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ user <%= @user %>
log-append <%= @logfile %>
<% end -%>
status <%= @status_log %>
<% if @status_version != '' -%>
status-version <%= @status_version %>
<% end -%>
dev <%= @dev %>
<% if @local != '' -%>
local <%= @local %>
Expand Down