Skip to content

Feature request: add groups and apply-groups resources #841

@NikitaPuglachenko

Description

@NikitaPuglachenko

Description

Hello,

Could you please add groups and apply-groups resources? Probably it's ok to have just a plan-text description.

Thank you

New or Affected Resource(s)

junos_groups
junos_apply_groups

Example Junos Configuration

groups {
    foo {
        system {
            default-address-selection;
            services {
                netconf {
                    ssh;
                }
            }
        }
    }
}

Potential Terraform Configuration

resource "junos_groups" "example-group" {
  name = "example-group"
  config = <<EOF
        system {
            default-address-selection;
            services {
                netconf {
                    ssh;
                }
            }
        }
EOF
}

resource "junos_apply_groups" "example-apply-group" {
  name = "example-apply-group"
  group = junos_groups.example-group.name
}

References

https://www.juniper.net/documentation/us/en/software/junos/cli/topics/topic-map/configuration-groups-usage.html
https://www.juniper.net/documentation/us/en/software/junos/cli-reference/topics/ref/statement/groups.html
https://packetpushers.net/blog/junos-configuration-groups/

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions