From: Frank Brehm Date: Wed, 17 Mar 2021 14:08:45 +0000 (+0100) Subject: Adding config of nsrports if backup is ebabled. X-Git-Tag: 1.4.12~5 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=15d5ad956de90409b5b767cbb2daf9783ff0b0ca;p=pixelpark%2Fcreate-terraform.git Adding config of nsrports if backup is ebabled. --- diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index 8a3b9f6..9397f45 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -60,7 +60,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.4.5' +__version__ = '3.4.6' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -2647,9 +2647,11 @@ class CreateTerraformHandler(BaseHandler): "if [ ! -f /nsr/res/servers ] ; then " "echo 'legato01.pixelpark.com' > /nsr/res/servers; fi") commands.append("systemctl start networker.service; sleep 2") + commands.append("nsrports -S 7937-7999; sleep 2") commands.append("systemctl stop networker.service; sleep 2") commands.append( "systemctl enable networker.service; systemctl start networker.service; sleep 2") + commands.append("nsrports; sleep 2") else: commands.append("systemctl disable networker.service")