opentelekomcloud.security_group
セキュリティグループ
Open Telekom Cloudにおけるセキュリティグループの管理を便利に行うための小さな役割です。
要件
実行ホストにopenstacksdkがインストールされており、Open Telekom Cloudへの接続ができることが必要です。
役割変数
securitygroup_name: '' # 指定された名前でセキュリティグループを作成します
description: '' # セキュリティグループの説明を作成します
rules:
- protocol: '' # udp, gre, tcp, icmp
port_range_min: '' # オプション、0から65535
port_range_max: '' # オプション、0から65535
remote_ip_prefix: '' # IP/ネットマスクサフィックス、0.0.0.0/0 -> すべてのIPアドレスが許可されます
依存関係
-
例のプレイブック
役割を使用する方法の例(例えば、変数をパラメータとして渡す)を示すことは、ユーザーにとっても良いことです:
- hosts: localhost
vars:
rules:
- protocol: tcp
port_range_min: 80
port_range_max: 80
remote_ip_prefix: 0.0.0.0/0
- protocol: icmp
remote_ip_prefix: 0.0.0.0/0
- protocol: udp
remote_ip_prefix: 0.0.0.0/0
roles:
- { role: opentelekomcloud.security_group, securitygroup_name: 'my_test', description: 'some descr' }
セキュリティグループを削除する例。
- hosts: localhost
roles:
- { role: opentelekomcloud.security_group, state: 'absent', securitygroup_name: 'my_test' }
ライセンス
BSD
著者情報
Open Telekom Cloud
インストール
ansible-galaxy install opentelekomcloud.security_group
ライセンス
apache-2.0
ダウンロード
2.3k
所有者
Some projects related to OpenTelekomCloud. Blueprints and whitepapers can be found at github.com/opentelekomcloud-blueprints