Skip to content

Commit

Permalink
add junos_system_tacplus_server resource
Browse files Browse the repository at this point in the history
Fix #629
  • Loading branch information
jeremmfr committed Mar 4, 2024
1 parent 7cba4b2 commit 807715c
Show file tree
Hide file tree
Showing 8 changed files with 516 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changes/issue-629.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- markdownlint-disable-file MD013 MD041 -->
FEATURES:

* add **junos_system_tacplus_server** resource (Fix [#629](https://github.com/jeremmfr/terraform-provider-junos/issues/629))

ENHANCEMENTS:

* **resource/junos_system_radius_server**: resource now use new [terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework)
Expand Down
50 changes: 50 additions & 0 deletions docs/resources/system_tacplus_server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
page_title: "Junos: junos_system_tacplus_server"
---

# junos_system_tacplus_server

Configure a system tacplus-server.

## Example Usage

```hcl
# Add a system tacplus-server
resource "junos_system_tacplus_server" "demo_tacplus_server" {
address = "192.0.2.1"
}
```

## Argument Reference

The following arguments are supported:

- **address** (Required, String, Forces new resource)
TACACS+ authentication server address.
- **port** (Optional, Number)
TACACS+ authentication server port number (1..65535).
- **routing_instance** (Optional, String)
Routing instance.
- **secret** (Optional, String, Sensitive)
Shared secret with the authentication server.
- **single_connection** (Optional, Boolean)
Optimize TCP connection attempts.
- **source_address** (Optional, String)
Use specified address as source address.
- **timeout** (Optional, Number)
Request timeout period (1..90 seconds).

## Attributes Reference

The following attributes are exported:

- **id** (String)
An identifier for the resource with format `<address>`.

## Import

Junos system tacplus-server can be imported using an id made up of `<address>`, e.g.

```shell
$ terraform import junos_system_tacplus_server.demo_tacplus_server 192.0.2.1
```
1 change: 1 addition & 0 deletions internal/providerfwk/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func (p *junosProvider) Resources(_ context.Context) []func() resource.Resource
newSwitchOptionsResource,
newSystemResource,
newSystemRadiusServerResource,
newSystemTacplusServerResource,
newSystemSyslogFileResource,
newSystemSyslogHostResource,
newSystemSyslogUserResource,
Expand Down
Loading

0 comments on commit 807715c

Please sign in to comment.