opentelekomcloud.security_group

Security Group

A simple tool for easy management of security groups in Open Telekom Cloud.

Requirements

You need to have openstacksdk installed on the server where you are running this and be connected to Open Telekom Cloud.

Role Variables

  • securitygroup_name: '' # The name for the security group you want to create
  • description: '' # A description for the security group
  • rules: # List of rules for the security group
    • protocol: '' # Choose from udp, gre, tcp, icmp
      • port_range_min: '' # Optional, should be between 0 and 65535
      • port_range_max: '' # Optional, should be between 0 and 65535
      • remote_ip_prefix: '' # Specify IP or netmask, 0.0.0.0/0 means all IP addresses are allowed

Dependencies

  • None specified

Example Playbook

Here’s how to use this role with some example variables:

- 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 description' }

Example for deleting a security group:

- hosts: localhost
  roles:
    - { role: opentelekomcloud.security_group, state: 'absent', securitygroup_name: 'my_test' }

License

BSD

Author Information

Open Telekom Cloud

Informazioni sul progetto

Manage security groups

Installa
ansible-galaxy install opentelekomcloud.security_group
Licenza
apache-2.0
Download
2.3k
Proprietario
Some projects related to OpenTelekomCloud. Blueprints and whitepapers can be found at github.com/opentelekomcloud-blueprints