diff --git a/plugins/modules/coe_cluster.py b/plugins/modules/coe_cluster.py index 1c72c969..f319de3f 100644 --- a/plugins/modules/coe_cluster.py +++ b/plugins/modules/coe_cluster.py @@ -29,6 +29,11 @@ options: description: - The flavor of the minion node for this ClusterTemplate type: str + floating_ip_enabled: + description: + - Indicates whether created Clusters should have a floating ip + type: bool + default: false keypair: description: - Name of the keypair to use. @@ -132,6 +137,11 @@ cluster: - The flavor of the minion node for this cluster type: str sample: c1.c1r1 + floating_ip_enabled: + description: + - Indicates whether created Clusters should have a floating ip + type: bool + sample: true keypair: description: - Name of the keypair to use. @@ -216,6 +226,7 @@ class CoeClusterModule(OpenStackModule): discovery_url=dict(), docker_volume_size=dict(type='int'), flavor_id=dict(), + floating_ip_enabled=dict(type='bool', default=False), keypair=dict(no_log=False), labels=dict(type='raw'), master_count=dict(type='int', default=1), @@ -249,6 +260,7 @@ class CoeClusterModule(OpenStackModule): discovery_url=self.params['discovery_url'], docker_volume_size=self.params['docker_volume_size'], flavor_id=self.params['flavor_id'], + floating_ip_enabled=self.params['floating_ip_enabled'], keypair=self.params['keypair'], labels=self._parse_labels(params['labels']), master_count=self.params['master_count'],