mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-08 14:23:03 +00:00
Add floating_ip_enabled flag to coe_cluster creation
* Pass option as true if present * False if not present Change-Id: I44eaa8ee99386fdbd5020b36711b13b17db29b7b
This commit is contained in:
@@ -29,6 +29,11 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The flavor of the minion node for this ClusterTemplate
|
- The flavor of the minion node for this ClusterTemplate
|
||||||
type: str
|
type: str
|
||||||
|
floating_ip_enabled:
|
||||||
|
description:
|
||||||
|
- Indicates whether created Clusters should have a floating ip
|
||||||
|
type: bool
|
||||||
|
default: false
|
||||||
keypair:
|
keypair:
|
||||||
description:
|
description:
|
||||||
- Name of the keypair to use.
|
- Name of the keypair to use.
|
||||||
@@ -132,6 +137,11 @@ cluster:
|
|||||||
- The flavor of the minion node for this cluster
|
- The flavor of the minion node for this cluster
|
||||||
type: str
|
type: str
|
||||||
sample: c1.c1r1
|
sample: c1.c1r1
|
||||||
|
floating_ip_enabled:
|
||||||
|
description:
|
||||||
|
- Indicates whether created Clusters should have a floating ip
|
||||||
|
type: bool
|
||||||
|
sample: true
|
||||||
keypair:
|
keypair:
|
||||||
description:
|
description:
|
||||||
- Name of the keypair to use.
|
- Name of the keypair to use.
|
||||||
@@ -216,6 +226,7 @@ class CoeClusterModule(OpenStackModule):
|
|||||||
discovery_url=dict(),
|
discovery_url=dict(),
|
||||||
docker_volume_size=dict(type='int'),
|
docker_volume_size=dict(type='int'),
|
||||||
flavor_id=dict(),
|
flavor_id=dict(),
|
||||||
|
floating_ip_enabled=dict(type='bool', default=False),
|
||||||
keypair=dict(no_log=False),
|
keypair=dict(no_log=False),
|
||||||
labels=dict(type='raw'),
|
labels=dict(type='raw'),
|
||||||
master_count=dict(type='int', default=1),
|
master_count=dict(type='int', default=1),
|
||||||
@@ -249,6 +260,7 @@ class CoeClusterModule(OpenStackModule):
|
|||||||
discovery_url=self.params['discovery_url'],
|
discovery_url=self.params['discovery_url'],
|
||||||
docker_volume_size=self.params['docker_volume_size'],
|
docker_volume_size=self.params['docker_volume_size'],
|
||||||
flavor_id=self.params['flavor_id'],
|
flavor_id=self.params['flavor_id'],
|
||||||
|
floating_ip_enabled=self.params['floating_ip_enabled'],
|
||||||
keypair=self.params['keypair'],
|
keypair=self.params['keypair'],
|
||||||
labels=self._parse_labels(params['labels']),
|
labels=self._parse_labels(params['labels']),
|
||||||
master_count=self.params['master_count'],
|
master_count=self.params['master_count'],
|
||||||
|
|||||||
Reference in New Issue
Block a user