add extra variable for OCCM cluster-name for separated naming
This commit is contained in:
parent
491e260d20
commit
c8c8e0521b
2 changed files with 8 additions and 0 deletions
|
@ -21,4 +21,8 @@ external_openstack_cacert: "{{ lookup('env','OS_CACERT') }}"
|
||||||
## arg1: "value1"
|
## arg1: "value1"
|
||||||
## arg2: "value2"
|
## arg2: "value2"
|
||||||
external_openstack_cloud_controller_extra_args: {}
|
external_openstack_cloud_controller_extra_args: {}
|
||||||
|
## By default the value of cluster_name variable is taken.
|
||||||
|
## If you want to give the OCCM identifier a different value,
|
||||||
|
## you can set the external_openstack_cloud_controller_cluster_name.
|
||||||
|
## external_openstack_cloud_controller_cluster_name: "cluster-name"
|
||||||
external_openstack_cloud_controller_image_tag: "v1.25.3"
|
external_openstack_cloud_controller_image_tag: "v1.25.3"
|
||||||
|
|
|
@ -44,7 +44,11 @@ spec:
|
||||||
- --v=1
|
- --v=1
|
||||||
- --cloud-config=$(CLOUD_CONFIG)
|
- --cloud-config=$(CLOUD_CONFIG)
|
||||||
- --cloud-provider=openstack
|
- --cloud-provider=openstack
|
||||||
|
{% if external_openstack_cloud_controller_cluster_name is defined %}
|
||||||
|
- --cluster-name={{ external_openstack_cloud_controller_cluster_name }}
|
||||||
|
{% else %}
|
||||||
- --cluster-name={{ cluster_name }}
|
- --cluster-name={{ cluster_name }}
|
||||||
|
{% endif %}
|
||||||
- --use-service-account-credentials=true
|
- --use-service-account-credentials=true
|
||||||
- --bind-address=127.0.0.1
|
- --bind-address=127.0.0.1
|
||||||
{% for key, value in external_openstack_cloud_controller_extra_args.items() %}
|
{% for key, value in external_openstack_cloud_controller_extra_args.items() %}
|
||||||
|
|
Loading…
Reference in a new issue