Skip to content

Commit e20a34c

Browse files
committed
cleanup types in openvpn::client_specific_config
1 parent 63fc931 commit e20a34c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

manifests/client_specific_config.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
# dhcp_options => ['DNS 8.8.8.8']
2323
# }
2424
define openvpn::client_specific_config (
25-
String $server,
26-
Enum[present, absent] $ensure = present,
27-
Array[String] $iroute = [],
28-
Array[String] $iroute_ipv6 = [],
29-
Array[String] $route = [],
30-
Variant[Boolean, String] $ifconfig = false,
25+
String[1] $server,
26+
Enum['present', 'absent'] $ensure = present,
27+
Array[String[1]] $iroute = [],
28+
Array[String[1]] $iroute_ipv6 = [],
29+
Array[String[1]] $route = [],
30+
Optional[String[1]] $ifconfig = undef,
3131
Optional[String[1]] $ifconfig_ipv6 = undef,
32-
Array[String] $dhcp_options = [],
32+
Array[String[1]] $dhcp_options = [],
3333
Boolean $redirect_gateway = false,
3434
) {
3535

templates/client_specific_config.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ iroute <%= iroute %>
44
<% @iroute_ipv6.each do |iroute_ipv6| -%>
55
iroute-ipv6 <%= iroute_ipv6 %>
66
<% end -%>
7-
<% if ifconfig = @ifconfig -%>
8-
ifconfig-push <%= ifconfig %>
7+
<% if @ifconfig -%>
8+
ifconfig-push <%= @ifconfig %>
99
<% end -%>
1010
<% if @ifconfig_ipv6 -%>
1111
ifconfig-ipv6-push <%= @ifconfig_ipv6 %>

0 commit comments

Comments
 (0)