summaryrefslogtreecommitdiff
path: root/templates/ipsec.conf.erb
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-08-10 20:10:23 +0200
committervarac <varacanero@zeromail.org>2013-08-10 20:10:23 +0200
commitf1da3f6ffe640f45ab74521f55389af504375b74 (patch)
tree361f7fea00e0e90355727d9171de07d3f50ecbd1 /templates/ipsec.conf.erb
parent5edc579a6e12bb6c9b3c5743729b7a5a2658000b (diff)
make hostname configurable
Diffstat (limited to 'templates/ipsec.conf.erb')
-rw-r--r--templates/ipsec.conf.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/ipsec.conf.erb b/templates/ipsec.conf.erb
index 44225d3..c61b765 100644
--- a/templates/ipsec.conf.erb
+++ b/templates/ipsec.conf.erb
@@ -13,8 +13,8 @@ conn %default
rightsendcert=never
leftsendcert=never
left=<%= scope.lookupvar('strongswan::default_left_ip_address') %>
- leftcert=<%= scope.lookupvar('::fqdn') %>.asc
- leftid=@<%= scope.lookupvar('::fqdn') %>
+ leftcert=<%= scope.lookupvar('custom_hostname') %>.asc
+ leftid=@<%= scope.lookupvar('custom_hostname') %>
<% unless (subn=scope.lookupvar('strongswan::default_left_subnet')).empty? -%>
leftsubnet=<%= subn.collect{|s| s.include?('/') ? s : (s.include?(':') ? "#{s}/128" : "#{s}/32" ) }.join(',') %>
<% end -%>