diff options
author | varac <varacanero@zeromail.org> | 2013-08-10 20:10:23 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-08-10 20:10:23 +0200 |
commit | f1da3f6ffe640f45ab74521f55389af504375b74 (patch) | |
tree | 361f7fea00e0e90355727d9171de07d3f50ecbd1 /manifests/init.pp | |
parent | 5edc579a6e12bb6c9b3c5743729b7a5a2658000b (diff) |
make hostname configurable
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 162a136..d47bbc0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -9,7 +9,8 @@ class strongswan( $default_left_subnet = reject(split($::strongswan_ips,','),$::ipaddress), $additional_options = '', $auto_remote_host = false, - $ipsec_conf_template = 'strongswan/ipsec.conf.erb' + $ipsec_conf_template = 'strongswan/ipsec.conf.erb', + $custom_hostname = $::fqdn ) { if $use_monkeysphere != false { @@ -57,7 +58,7 @@ class strongswan( if $auto_remote_host and ($::strongswan_cert != 'false') and ($::strongswan_cert != '') { # export myself - @@strongswan::remote_host { $::fqdn: + @@strongswan::remote_host { $custom_hostname: right_cert_content => $::strongswan_cert, right_ip_address => $strongswan::default_left_ip_address, right_subnet => $strongswan::default_left_subnet, |