From 0e102b1411bc790810ed89f5bc67e607f1dce0c6 Mon Sep 17 00:00:00 2001 From: Jan Weiher Date: Mon, 7 Mar 2022 13:31:29 +0100 Subject: [PATCH] [LB] Add support for setting monitor_address Change-Id: I4897c6343813519859bd19fa162829fe2a6dc573 (cherry picked from commit 37a51ec6ad0e2e0dd681558055d4a4ea786dd03c) --- plugins/modules/lb_member.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/modules/lb_member.py b/plugins/modules/lb_member.py index a1b15ad3..264f2b8e 100644 --- a/plugins/modules/lb_member.py +++ b/plugins/modules/lb_member.py @@ -51,6 +51,14 @@ options: into ACTIVE state. default: 180 type: int + monitor_address: + description: + - IP address used to monitor this member + type: str + monitor_port: + description: + - Port used to monitor this member + type: int requirements: - "python >= 3.6" - "openstacksdk" @@ -141,6 +149,8 @@ class LoadbalancerMemberModule(OpenStackModule): address=dict(default=None), protocol_port=dict(default=80, type='int'), subnet_id=dict(default=None), + monitor_address=dict(default=None), + monitor_port=dict(default=None, type='int') ) module_kwargs = dict() @@ -191,7 +201,9 @@ class LoadbalancerMemberModule(OpenStackModule): address=self.params['address'], name=name, protocol_port=self.params['protocol_port'], - subnet_id=self.params['subnet_id'] + subnet_id=self.params['subnet_id'], + monitor_address=self.params['monitor_address'], + monitor_port=self.params['monitor_port'] ) changed = True