Terraform module to deploy a Neutron security-group in a given project. https://ednz.fr
Go to file
Gitea-Actions 6760b588f1
All checks were successful
build-deploy / Bump version and create changelog with commitizen (push) Has been skipped
bump: version 0.0.0 → 0.1.0
2024-10-03 19:22:53 +00:00
.gitea/workflows feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
tests feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
.cz.toml feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
.gitignore feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
.pre-commit-config.yaml feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
.terraform.lock.hcl feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
CHANGELOG.md bump: version 0.0.0 → 0.1.0 2024-10-03 19:22:53 +00:00
LICENSE feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
main.tf feat: enable 'self' keyword for remote_group_id 2024-09-30 22:44:49 +02:00
outputs.tf feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
README.md feat: add raw output for the security group objects 2024-10-03 19:22:05 +00:00
renovate.json chore(deps): add renovate.json [skip-ci] 2024-10-03 19:20:40 +00:00
variables.tf feat(variables): add default to allow empty ingress and egress blocks 2024-04-13 00:25:41 +02:00

terraform-openstack-security-group

Terraform module to deploy a Neutron security-group in a given project.

Requirements

Name Version
terraform >= 1.0.0
openstack >= 1.54

Providers

Name Version
openstack >= 1.54

Modules

No modules.

Resources

Name Type
openstack_networking_secgroup_rule_v2.egress resource
openstack_networking_secgroup_rule_v2.ingress resource
openstack_networking_secgroup_v2.this resource

Inputs

Name Description Type Default Required
delete_default_rules Whether or not to delete the default egress rules applied to the security group.
Default rules allow egress ipv4 and ipv6 to 0.0.0.0/0.
bool false no
description Description for the security group. string null no
egress_rules The list of egress rules to attach to the security group.
You can use all regular entries from the openstack_networking_secgroup_rule_v2 resource
provided by the openstack provider, except region, which defaults to the region of the provider used,
and direction, which defaults to egress.
By default, if ethertype is not specified, it will by IPv4.
map(map(string)) {} no
ingress_rules The list of ingress rules to attach to the security group.
You can use all regular entries from the openstack_networking_secgroup_rule_v2 resource
provided by the openstack provider, except region, which defaults to the region of the provider used,
and direction, which defaults to ingress.
By default, if ethertype is not specified, it will by IPv4.
map(map(string)) {} no
name The name of the security group. string n/a yes
tags A list of tags (strings) to apply to the security group list(string) [] no
tenant_id The tenant for which to create the security group.
This is only required for admins creating security groups for other tenant.
string null no

Outputs

Name Description
id The id of the security group
name The name of the security group

Requirements

Name Version
terraform >= 1.0.0
openstack >= 1.54

Providers

Name Version
openstack >= 1.54

Modules

No modules.

Resources

Name Type
openstack_networking_secgroup_rule_v2.egress resource
openstack_networking_secgroup_rule_v2.ingress resource
openstack_networking_secgroup_v2.this resource

Inputs

Name Description Type Default Required
delete_default_rules Whether or not to delete the default egress rules applied to the security group.
Default rules allow egress ipv4 and ipv6 to 0.0.0.0/0.
bool false no
description Description for the security group. string null no
egress_rules The list of egress rules to attach to the security group.
You can use all regular entries from the openstack_networking_secgroup_rule_v2 resource
provided by the openstack provider, except region, which defaults to the region of the provider used,
and direction, which defaults to egress.
By default, if ethertype is not specified, it will by IPv4.
map(map(string)) {} no
ingress_rules The list of ingress rules to attach to the security group.
You can use all regular entries from the openstack_networking_secgroup_rule_v2 resource
provided by the openstack provider, except region, which defaults to the region of the provider used,
and direction, which defaults to ingress.
By default, if ethertype is not specified, it will by IPv4.
map(map(string)) {} no
name The name of the security group. string n/a yes
tags A list of tags (strings) to apply to the security group list(string) [] no
tenant_id The tenant for which to create the security group.
This is only required for admins creating security groups for other tenant.
string null no

Outputs

Name Description
id The id of the security group
name The name of the security group
sg_egress_rules_raw The raw security group egress rules, if any (except the default ones, if created)
sg_ingress_rules_raw The raw security group ingress rules, if any
sg_raw The raw security group object, with all its values