Skip to content

Commit

Permalink
Merge pull request #133 from DamienJ-wiza/add-cookie-stickiness
Browse files Browse the repository at this point in the history
add cookie to http farm stickiness
  • Loading branch information
yanndegat authored Jan 29, 2020
2 parents 968e454 + 5b0847a commit 0865fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ovh/resource_ovh_iploadbalancing_http_farm.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func resourceIpLoadbalancingHttpFarm() *schema.Resource {
Optional: true,
ForceNew: false,
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
err := validateStringEnum(v.(string), []string{"sourceIp"})
err := validateStringEnum(v.(string), []string{"sourceIp", "cookie"})
if err != nil {
errors = append(errors, err)
}
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/iploadbalancing_http_farm.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Creates a http backend server group (farm) to be used by loadbalancing frontend(
```
data "ovh_iploadbalancing" "lb" {
service_name = "ip-1.2.3.4"
state = "ok"
state = "ok"
}
resource "ovh_iploadbalancing_http_farm" "farmname" {
Expand All @@ -33,7 +33,7 @@ The following arguments are supported:
* `balance` - Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`)
* `display_name` - Readable label for loadbalancer farm
* `port` - Port attached to your farm ([1..49151]). Inherited from frontend if null
* `stickiness` - Stickiness type. No stickiness if null (`sourceIp`)
* `stickiness` - Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
* `vrack_network_id` - Internal Load Balancer identifier of the vRack private network to attach to your farm, mandatory when your Load Balancer is attached to a vRack
* `zone` - (Required) Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
* `probe` - define a backend healthcheck probe
Expand Down

0 comments on commit 0865fee

Please sign in to comment.