salt.states.neutron_secgroup

Management of OpenStack Neutron Security Groups

New in version 2018.3.0.

depends:shade
configuration:see salt.modules.neutronng for setup instructions

Example States

create security group;
  neutron_secgroup.present:
    - name: security_group1
    - description: "Very Secure Security Group"

delete security group:
  neutron_secgroup.absent:
    - name_or_id: security_group1
    - project_name: Project1

create security group with optional params:
  neutron_secgroup.present:
    - name: security_group1
    - description: "Very Secure Security Group"
    - project_id: 1dcac318a83b4610b7a7f7ba01465548

create security group with optional params:
  neutron_secgroup.present:
    - name: security_group1
    - description: "Very Secure Security Group"
    - project_name: Project1
salt.states.neutron_secgroup.absent(name, auth=None, **kwargs)

Ensure a security group does not exist

name
Name of the security group
salt.states.neutron_secgroup.present(name, auth=None, **kwargs)

Ensure a security group exists.

You can supply either project_name or project_id.

Creating a default security group will not show up as a change; it gets created through the lookup process.

name
Name of the security group
description
Description of the security group
project_name
Name of Project
project_id
ID of Project