No description
  • Go 96.7%
  • HTML 3%
  • Shell 0.2%
  • Makefile 0.1%
Find a file
OpenTofu Core Development Team 3532f578e5 Apply GitHub workflow changes
2025-11-18 12:32:14 +02:00
.github/workflows Apply GitHub workflow changes 2025-11-18 12:32:14 +02:00
examples/scripts Added new 35 resources and few bug fixes. 2020-09-03 00:31:53 +05:30
scripts review comment changes 2019-10-04 17:28:26 +05:30
vendor Added new 35 resources and few bug fixes. 2020-09-03 00:31:53 +05:30
vthunder formatted some code. 2020-09-03 00:42:44 +05:30
website Added new 35 resources and few bug fixes. 2020-09-03 00:31:53 +05:30
.gitignore Update .gitignore 2019-10-11 15:08:14 +05:30
.gitmodules removed submodule 2019-11-07 23:04:19 +05:30
.travis.yml review comment changes 2019-10-04 17:28:26 +05:30
CHANGELOG.md Cleanup after v0.4.0 release 2020-09-03 14:48:50 +00:00
GNUmakefile review comment changes 2019-10-04 17:28:26 +05:30
go.mod tf migration to tf plugin sdk 2019-10-15 13:19:19 +05:30
go.sum tf migration to tf plugin sdk 2019-10-15 13:19:19 +05:30
LICENSE review comment changes 2019-10-04 17:28:26 +05:30
Main.go correct import path 2019-11-08 11:23:31 -08:00
README.md Update README.md 2020-05-07 13:18:18 -04:00

Terraform Provider

Requirements

  • Terraform 0.10.x
  • Go 1.12 (to build the provider plugin)

Building The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-vthunder

$ git clone git@github.com:terraform-providers/terraform-provider-vthunder $GOPATH/src/github.com/terraform-providers/terraform-provider-vthunder

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-vthunder
$ make build

Usage

Provider Configuration

provider "vthunder" {
address = "129.213.86.193"
username = "myUser"  
password = "myPassword“
}
Argument Reference

The following arguments are supported. • username - User name to access vThunder. • password - Password to access vThunder. • address IP address of vThunder; to be configured.

Resource Configuration

vthunder_ethernet

resource "vthunder_ethernet" "eth"{
ethernet_list{
ifnum=1
ip{
address_list={
ipv4_address="10.0.2.9"
ipv4_netmask="255.255.255.0"
}
}
action="enable"
}
ethernet_list{
ifnum=2
ip{
#dhcp=1
address_list={
ipv4_address="10.0.3.9"
ipv4_netmask="255.255.255.0"
}
}
action="enable"
}
}

Argument Reference

See https://documentation.a10networks.com/ACOS/414x/ACOS_4_1_4-GR1-P1/html/axapiv3/interface.html for possible values for these arguments and for an exhaustive list of arguments.

vthuder_rib_route

resource "vthunder_rib_route" "rib"{
ip_dest_addr="0.0.0.0"
ip_mask="/0"
ip_nexthop_ipv4{
ip_next_hop="10.0.2.9"
distance_nexthop_ip=1
}
}

Argument Reference

See https://documentation.a10networks.com/ACOS/414x/ACOS_4_1_4-GR1-P1/html/axapiv3/ip_route_rib.html for possible values for these arguments and for an exhaustive list of arguments.

vthunder_server

resource "vthunder_server" "rs9" {
health_check_disable=1
name="rs9"
host="10.0.3.8"
port_list {
health_check_disable=1
port_number=80
protocol="tcp"
}
}

Argument Reference

See https://documentation.a10networks.com/ACOS/414x/ACOS_4_1_4-GR1-P1/html/axapiv3/slb_server.html for possible values for these arguments and for an exhaustive list of arguments.

vthunder_service_group

resource "vthunder_service_group" "sg9" {
name="sg9"
protocol="TCP"
member_list {
name="${vthunder_server.rs9.name}"
port=80
}
}

Argument Reference

See https://documentation.a10networks.com/ACOS/414x/ACOS_4_1_4-GR1-P1/html/axapiv3/slb_service_group.html for possible values for these arguments and for an exhaustive list of arguments. Backend server name needs to be specified in the member list. This name can come from vthunder_server resource at runtime as specified in the sample.

vthunder_virtual_server

resource "vthunder_virtual_server" "vs9" {
name="vs9"
ha_dynamic = 1
ip_address="10.0.2.7"
port_list {
auto=1
port_number=8080
protocol="tcp"
service_group="${vthunder_service_group.sg9.name}"
snat_on_vip=1
}
}

Argument Reference

See https://documentation.a10networks.com/ACOS/414x/ACOS_4_1_4-GR1-P1/html/axapiv3/slb_virtual_server.html for possible values for these arguments and for an exhaustive list of arguments.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make bin
...
$ $GOPATH/bin/terraform-provider-vthunder
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc

Samples

See the examples directory for various LB topologies that can be driven from this terraform provider.

Bug Reporting and Feature Requests

Please submit bug reports and feature requests via GitHub issues. When reporting bugs, please include the Terraform script that demonstrates the bug and the command output. Stack traces will be helpful. Please ensure any sensitive information is redacted as Issues and Pull Requests are publicly viewable.

Contact

If you have a question that cannot be submitted via Github Issues, please email support@a10networks.com with "a10-terraform-provider" in the subject line.