The Stingray Terraform provider is used to interact with the Stingray load balancer.
provider "stingray" {
url = "https://example:9070"
username = "username"
password = "password"
}
url
- The protocol, host name, and port for the Stingray REST APIusername
- The username for authenticating against the APIpassword
- The password for authenticating against the APIvalid_networks
- A comma separated list of valid traffic IP
networks (in CIDR notation)verify_ssl
- Perform SSL verification, default is trueThe provider can also be configured through the environmental
variables STINGRAY_URL
, STINGRAY_USERNAME
, STINGRAY_PASSWORD
,
STINGRAY_VALID_NETWORKS
, and STINGRAY_VERIFY_SSL
.
See the resource_*.go
files for available resources and the
supported arguments for each resource.
Support for resources is being added as needed. Bold resources are fully supported.
All default values are taken from the Stingray REST API documentation, with the following exceptions:
stingray_virtual_server
enabled
: provider default is true; Stingray default is falselisten_on_any
: provider default is false; Stingray default is trueDependencies are vendored (using godep save -r
). Running go install
will build and install the terraform-provider-stingray
binary.