The Stingray Terraform provider is used to interact with the Stingray
load balancer.
Example usage
provider "stingray" {
url = "https://example:9070"
username = "username"
password = "password"
}
Argument Reference
url
- The protocol, host name, and port for the Stingray REST API
username
- The username for authenticating against the API
password
- The password for authenticating against the API
valid_networks
- A comma separated list of valid traffic IP
networks (in CIDR notation)
verify_ssl
- Perform SSL verification, default is true
The provider can also be configured through the environmental
variables STINGRAY_URL
, STINGRAY_USERNAME
, STINGRAY_PASSWORD
,
STINGRAY_VALID_NETWORKS
, and STINGRAY_VERIFY_SSL
.
Supported Resources
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.
- Action Program
- Alerting Action
- Aptimizer Application Scope
- Aptimizer Profile
- Bandwidth Class
- Cloud Credentials
- Custom configuration set
- Event Type
- Extra File
- GLB Service
- Global Settings
- License
- Location
- Monitor
- Monitor Program
- NAT Configuration
- Pool
- Protection Class
- Rate Shaping Class
- Rule
- SLM Class
- SSL Client Key Pair
- SSL Key Pair
- SSL Trusted Certificate
- Security Settings
- Session Persistence Class
- Traffic IP Group
- Traffic Manager
- TrafficScript Authenticator
- User Authenticator
- User Group
- Virtual Server
Default values
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 false
listen_on_any
: provider default is false; Stingray default is true
Building
Dependencies are vendored (using godep save -r
). Running go install
will build and install the terraform-provider-stingray
binary.