This commit is contained in:
7u83 2018-02-22 18:29:13 +00:00
parent 42784659bc
commit 72d49f70e4
4 changed files with 13 additions and 10 deletions

Binary file not shown.

View File

@ -9,8 +9,8 @@
"manifests/params.pp": "c4981d62b9ea633cd59a034eb9c846d0", "manifests/params.pp": "c4981d62b9ea633cd59a034eb9c846d0",
"manifests/racoon.pp": "0b40af7e75e6481324193c9d86fcd6e7", "manifests/racoon.pp": "0b40af7e75e6481324193c9d86fcd6e7",
"manifests/racoon_params.pp": "5582629736d3cd7d8f4c55a24603f665", "manifests/racoon_params.pp": "5582629736d3cd7d8f4c55a24603f665",
"manifests/strongswan.pp": "9652c2c317e5f910f71559744216daf4", "manifests/strongswan.pp": "b106f5ea8ee01542914f83f199fb0f5c",
"manifests/strongswan_params.pp": "39fa38f2249f9f0e26620f5ece60f4df", "manifests/strongswan_params.pp": "96de0822a1f8200e499453da930bd0b6",
"metadata.json": "65900ebf8697e32ecc5c5c8232efab54", "metadata.json": "65900ebf8697e32ecc5c5c8232efab54",
"spec/classes/init_spec.rb": "4bf5fa4da7c89cacc52ee8de94848bc5", "spec/classes/init_spec.rb": "4bf5fa4da7c89cacc52ee8de94848bc5",
"spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc", "spec/spec_helper.rb": "0db89c9a486df193c0e40095422e19dc",

View File

@ -2,7 +2,17 @@
class ipsec::strongswan ( class ipsec::strongswan (
$version = 'latest', $version = 'latest',
$enable = $::ipsec::strongswan_params::service_enable $enable = $::ipsec::strongswan_params::service_enable,
$local_ip,
$remote_ip,
$nets,
$proto,
$psk,
$lifetime,
$hash,
$encryption,
$h_group,
) inherits ipsec::strongswan_params { ) inherits ipsec::strongswan_params {
package { 'strongswan': package { 'strongswan':

View File

@ -14,13 +14,6 @@ class ipsec::strongswan_params {
$secrets_file = '/usr/local/etc/ipsec.secrets' $secrets_file = '/usr/local/etc/ipsec.secrets'
} }
'OpenBSD':{
$isakmpd_service = 'isakmpd'
$pkg_name = false
$pkg_provider = undef
$ipsec_conf = '/etc/ipsec.conf'
$setkey_cmd = '/sbin/ipsecctl -f /etc/ipsec.conf'
}
default: { default: {
$pkg_name = "strongswan" $pkg_name = "strongswan"
$ipsec_conf = '/etc/ipsec.conf' $ipsec_conf = '/etc/ipsec.conf'