Allow set managed_resource_tenant_id.

With this patch will allow to set the configuartion parameter
managed_resource_tenant_id that is required on some setups.

Closes-Bug: #1926659
Change-Id: Id76b798ef23f528f3440b6b33ce4bb9b4e680b0d
This commit is contained in:
Jose Phillips 2021-09-02 02:27:04 -05:00
parent 3ae0be599b
commit 0e1e3e89b6
4 changed files with 14 additions and 3 deletions

View File

@ -143,3 +143,8 @@ options:
description: |
A comma-separated list of nagios servicegroups. If left empty, the
nagios_context will be used as the servicegroup.
managed-resource-tenant-id:
type: string
default:
description: |
Set the project ID to own all managed resources like auto-created records etc.

View File

@ -86,8 +86,10 @@ workers = {{ options.workers }}
# Email to use for managed resources like domains created by the FloatingIP API
#managed_resource_email = hostmaster@example.com.
{%- if options.managed_resource_tenant_id %}
# Tenant ID to own all managed resources - like auto-created records etc.
#managed_resource_tenant_id = 123456
managed_resource_tenant_id = {{ options.managed_resource_tenant_id }}
{%- endif %}
#-----------------------
# API Service

View File

@ -89,8 +89,10 @@ workers = {{ options.workers }}
# Email to use for managed resources like domains created by the FloatingIP API
#managed_resource_email = hostmaster@example.com.
{%- if options.managed_resource_tenant_id %}
# Tenant ID to own all managed resources - like auto-created records etc.
#managed_resource_tenant_id = 123456
managed_resource_tenant_id = {{ options.managed_resource_tenant_id }}
{%- endif %}
#-----------------------
# API Service

View File

@ -89,8 +89,10 @@ workers = {{ options.workers }}
# Email to use for managed resources like domains created by the FloatingIP API
#managed_resource_email = hostmaster@example.com.
{%- if options.managed_resource_tenant_id %}
# Tenant ID to own all managed resources - like auto-created records etc.
#managed_resource_tenant_id = 123456
managed_resource_tenant_id = {{ options.managed_resource_tenant_id }}
{%- endif %}
#-----------------------
# API Service