xlab_si.nuage_create_entity

Ansibleロール: nuage_create_entity

このロールを使うと、Nuageサーバー上に任意のエンティティを作成し、オプションで親エンティティに割り当てることができます。

要件

pip install vspk

ロール変数

変数名 デフォルト 説明
nuage_auth / Nuage認証オブジェクト。以下の例を参照してください。
entity_type / 作成するエンティティのCamelCase名(例:Enterprise、Domain、Subnet、FloatingIpなど)
attributes / 新しいエンティティの希望する属性。
parent_type null 親のCamelCaseタイプ(オプション)
parent_id null 親のID(オプション)

出力

このロールを実行すると、以下のカスタム統計が設定されます:

統計名 説明
created_entity 作成したエンティティのハッシュ

依存関係

このロールは他のGalaxyロールに依存していません。

例となるプレイブック

名前 DEMO のEnterpriseを作成する例:

- 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

名前 DEMO のSubnetを作成し、ID ebd14a5e-a2cd-4302-bb04-89e2f4a827fe の親Domainに接続する例:

- 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

ライセンス

BSD

プロジェクトについて

Ansible role to create any Nuage entity and optionally connect it to parent entity.

インストール
ansible-galaxy install xlab_si.nuage_create_entity
ライセンス
Unknown
ダウンロード
38.6k
所有者
Research and development company based in Ljubljana, Slovenia.