diff --git a/heartbeat/ipsec b/heartbeat/ipsec index ba3e38bb6..c35c2b337 100755 --- a/heartbeat/ipsec +++ b/heartbeat/ipsec @@ -1,196 +1,196 @@ #!/bin/sh # # # IPSEC OCF RA. Handles IPSEC tunnels associated with a VIP # # Copyright (c) 2017 Red Hat Inc. # All Rights Reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it would be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Further, this software is distributed without any warranty that it is # free of the rightful claim of any third person regarding infringement # or the like. Any license provided herein, whether implied or # otherwise, applies only to this software file. Patent licenses, if # any, provided herein do not apply to combinations of this program with # other software, or any other product whatsoever. # # You should have received a copy of the GNU General Public License # along with this program; if not, write the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. # ####################################################################### # Initialization: : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs ####################################################################### # Defaults OCF_RESKEY_tunnel_default="" OCF_RESKEY_vip_default="" OCF_RESKEY_confdir_default="/etc/ipsec.d/" OCF_RESKEY_fallbacktunnel_default="" : ${OCF_RESKEY_tunnel=${OCF_RESKEY_tunnel_default}} : ${OCF_RESKEY_vip=${OCF_RESKEY_vip_default}} : ${OCF_RESKEY_confdir=${OCF_RESKEY_confdir_default}} : ${OCF_RESKEY_fallbacktunnel=${OCF_RESKEY_fallbacktunnel_default}} meta_data() { cat < 1.0 This is a Resource Agent to manage IPSEC tunnels associated with a Virtual IP Address. It's meant to be collocated with a specific VIP, and will manage setting up or down a specific tunnel. Handles IPSEC tunnels for VIPs The name of the tunnel to be monitored. Tunnel name Virtual IP address that the tunnel is using. VIP The directory where the IPSEC tunnel configurations can be found. Tunnel name The name of the tunnel to fall back to when the main tunnel is put down. Tunnel name to fall back to END } ####################################################################### ipsec_usage() { cat <