Skip to content

Commit 0865fee

Browse files
authored
Merge pull request #133 from DamienJ-wiza/add-cookie-stickiness
add cookie to http farm stickiness
2 parents 968e454 + 5b0847a commit 0865fee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ovh/resource_ovh_iploadbalancing_http_farm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func resourceIpLoadbalancingHttpFarm() *schema.Resource {
4646
Optional: true,
4747
ForceNew: false,
4848
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
49-
err := validateStringEnum(v.(string), []string{"sourceIp"})
49+
err := validateStringEnum(v.(string), []string{"sourceIp", "cookie"})
5050
if err != nil {
5151
errors = append(errors, err)
5252
}

website/docs/r/iploadbalancing_http_farm.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Creates a http backend server group (farm) to be used by loadbalancing frontend(
1515
```
1616
data "ovh_iploadbalancing" "lb" {
1717
service_name = "ip-1.2.3.4"
18-
state = "ok"
18+
state = "ok"
1919
}
2020
2121
resource "ovh_iploadbalancing_http_farm" "farmname" {
@@ -33,7 +33,7 @@ The following arguments are supported:
3333
* `balance` - Load balancing algorithm. `roundrobin` if null (`first`, `leastconn`, `roundrobin`, `source`)
3434
* `display_name` - Readable label for loadbalancer farm
3535
* `port` - Port attached to your farm ([1..49151]). Inherited from frontend if null
36-
* `stickiness` - Stickiness type. No stickiness if null (`sourceIp`)
36+
* `stickiness` - Stickiness type. No stickiness if null (`sourceIp`, `cookie`)
3737
* `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
3838
* `zone` - (Required) Zone where the farm will be defined (ie. `GRA`, `BHS` also supports `ALL`)
3939
* `probe` - define a backend healthcheck probe

0 commit comments

Comments
 (0)