diff --git a/manifests/connection.pp b/manifests/connection.pp index 92411cc..74132e2 100644 --- a/manifests/connection.pp +++ b/manifests/connection.pp @@ -7,6 +7,7 @@ $leftsubnet = undef, $leftprotoport = undef, $leftnexthop = undef, + $leftid = undef, $pfs = undef, $rekey = undef, $right = undef, diff --git a/manifests/params.pp b/manifests/params.pp index c385037..1380ab8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,7 +21,7 @@ case $::operatingsystem { debian,ubuntu: { - $package_list = ['libgmp3c2', 'openswan', 'lsof'] + $package_list = ['libgmp10', 'openswan', 'lsof'] $service_name = 'ipsec' } default: { } diff --git a/templates/connection.conf.erb b/templates/connection.conf.erb index b1a9e17..08f25f5 100644 --- a/templates/connection.conf.erb +++ b/templates/connection.conf.erb @@ -20,12 +20,18 @@ conn <%= @name %> <% if @left -%> left=<%= @left %> <% end -%> +<% if @leftsubnet -%> + leftsubnet=<%= @leftsubnet %> +<% end -%> <% if @leftnexthop -%> leftnexthop=<%= @leftnexthop %> <% end -%> <% if @leftprotoport -%> leftprotoport=<%= @leftprotoport %> <% end -%> +<% if @leftid -%> + leftid=<%= @leftid %> +<% end -%> <% if @right -%> right=<%= @right %> <% end -%>