Skip to content

Latest commit

 

History

History
737 lines (390 loc) · 14.6 KB

tenant_module.rst

File metadata and controls

737 lines (390 loc) · 14.6 KB
orphan:

morpheus.core.tenant module -- Manage Tenants

Note

This module is part of the morpheus.core collection (version 0.7.1).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install morpheus.core.

To use it in a playbook, specify: morpheus.core.tenant.

.. rst-class:: ansible-version-added

New in morpheus.core 0.7.0

  • Create, Update and Remove Tenants.
.. tabularcolumns:: \X{1}{3}\X{2}{3}

Parameter Comments
.. rst-class:: ansible-option-title

account_name

.. ansible-option-type-line::

  :ansible-option-type:`string`

Additional Tenant Identifier.

.. rst-class:: ansible-option-title

account_number

.. ansible-option-type-line::

  :ansible-option-type:`string`

Additional Tenant Identifier.

.. rst-class:: ansible-option-title

currency

.. ansible-option-type-line::

  :ansible-option-type:`string`

ISO Currency Code.

.. rst-class:: ansible-option-line

:ansible-option-choices:`Choices:`

.. rst-class:: ansible-option-title

customer_number

.. ansible-option-type-line::

  :ansible-option-type:`string`

Additional Tenant Identifier.

.. rst-class:: ansible-option-title

description

.. ansible-option-type-line::

  :ansible-option-type:`string`

Description for the Tenant.

.. rst-class:: ansible-option-title

id

.. ansible-option-type-line::

  :ansible-option-type:`integer`

The Id of an existing Tenant.

.. rst-class:: ansible-option-title

name

.. ansible-option-type-line::

  :ansible-option-type:`string`

The name of the Tenant.

.. rst-class:: ansible-option-title

role

.. ansible-option-type-line::

  :ansible-option-type:`integer`

Id of a Role to act as the Tenant base role.

.. rst-class:: ansible-option-title

state

.. ansible-option-type-line::

  :ansible-option-type:`string`

.. rst-class:: ansible-option-title

subdomain

.. ansible-option-type-line::

  :ansible-option-type:`string`

Subdomain name used in login URL and subtenant users.

.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}

Attribute Support Description
.. rst-class:: ansible-option-title

check_mode

Can run in check_mode and return changed status prediction without modifying target

.. rst-class:: ansible-option-title

diff_mode

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode

.. rst-class:: ansible-option-title

platform

Target OS/families that can be operated against

- name: Create / Update Tenant
  morpheus.core.tenant:
    name: Test Tenant
    description: Testing Tenant
    role: 4
    subdomain: test
    currency: GBP

- name: Remove Tenant
  morpheus.core.tenant:
    state: absent
    name: Test Tenant

Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:

.. tabularcolumns:: \X{1}{3}\X{2}{3}

Key Description
.. rst-class:: ansible-option-title

tenant

.. ansible-option-type-line::

  :ansible-option-type:`dictionary`

Authors

  • James Riach (@McGlovin1337)

Collection links

.. ansible-links::

  - title: "Repository (Sources)"
    url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core"
    external: true