xlab_si.nuage_create_entity
Ansible Rola: nuage_create_entity
Ta rola pozwala na stworzenie dowolnej jednostki na serwerze Nuage i opcjonalnie przypisanie jej do jednostki nadrzędnej.
Wymagania
pip install vspk
Zmienne roli
Zmienna | Domyślna | Opis |
---|---|---|
nuage_auth | / | Obiekt autoryzacji Nuage, zobacz przykład poniżej. |
entity_type | / | Nazwa jednostki w CamelCase, którą tworzymy, np. Enterprise, Domain, Subnet, FloatingIp... |
attributes | / | Pożądane atrybuty nowej jednostki. |
parent_type | null | Typ jednostki nadrzędnej w CamelCase (opcjonalnie) |
parent_id | null | ID jednostki nadrzędnej (opcjonalnie) |
Wyniki
Ta rola ustawia następujące niestandardowe statystyki po uruchomieniu:
Nazwa statystyki | Opis |
---|---|
created_entity | Hash utworzonej jednostki |
Zależności
Ta rola nie zależy od żadnej innej roli Galaxy.
Przykładowy Playbook
Przykład, w którym tworzymy jednostkę Enterprise o nazwie DEMO
:
- hosts: localhost
connection: local
gather_facts: False
vars:
nuage_auth:
api_username: user
api_password: pass
api_enterprise: csp
api_url: https://my.nuage.net
api_version: v5_0
entity_type: Enterprise
attributes:
name: DEMO
roles:
- xlab_si.nuage_create_entity
Przykład, w którym tworzymy jednostkę Subnet o nazwie DEMO
i łączymy ją z jednostką nadrzędną Domain o ID ebd14a5e-a2cd-4302-bb04-89e2f4a827fe
:
- hosts: localhost
connection: local
gather_facts: False
vars:
nuage_auth:
api_username: user
api_password: pass
api_enterprise: csp
api_url: https://my.nuage.net
api_version: v5_0
entity_type: Subnet
attributes:
name: DEMO
parent_type: Domain
parent_id: ebd14a5e-a2cd-4302-bb04-89e2f4a827fe
roles:
- xlab_si.nuage_create_entity
Licencja
BSD
O projekcie
Ansible role to create any Nuage entity and optionally connect it to parent entity.
Zainstaluj
ansible-galaxy install xlab_si.nuage_create_entity
Licencja
Unknown
Pobrania
38.6k
Właściciel
Research and development company based in Ljubljana, Slovenia.