Skip to content

Commit

Permalink
Add parameters to the doc (#31)
Browse files Browse the repository at this point in the history
* typo

* Add doc paramaters RPaaSv2
  • Loading branch information
fbtravi authored Oct 3, 2023
1 parent d7ed62c commit 16836a1
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
page_title: "rpaas Provider"
subcategory: ""
description: |-
---

# rpaas Provider



## Example Usage

```terraform
Expand All @@ -19,8 +16,19 @@ provider "tsuru" {}
resource "tsuru_service_instance" "my_rpaas" {
service_name = "rpaasv2-be"
name = "my-rpaas"
parameters = {
"plan-override" = jsonencode({
"config" = {
"cacheSize" = "30Gi",
"cacheZoneSize" = "200M",
"cacheInactive" = "24h",
"mapHashBucketSize" = 128,
},
})
}
}
resource "rpaas_autoscale" "be_autoscale" {
service_name = tsuru_service_instance.my_rpaas.service_name
instance = tsuru_service_instance.my_rpaas.name
Expand Down Expand Up @@ -76,10 +84,22 @@ resource "rpaas_route" "be_route_custom" {

### Optional

- `http_timeout_in_seconds` (Number) Timeout in seconds a HTTP request can take. Zero means no limit.
- `http_timeout_in_seconds` (Number) Timeout in seconds a HTTP request can take.
Zero means no limit.
- `rpaas_password` (String) Password to authentication on RPaaS API
- `rpaas_url` (String) URL address for RPaaS API
- `rpaas_user` (String) Username to authenticate on RPaaS API
- `skip_cert_verification` (Boolean) Whether should skip certificate verification during TLS protocol.
- `skip_cert_verification` (Boolean) Whether should skip certificate
verification during TLS protocol.
- `tsuru_target` (String) URL address for Tsuru API
- `tsuru_token` (String) Authentication token for Tsuru API
- `parameters` (String) You can pass the parameter to override RPaaSV2 default
settings
- `plan-override` (Json) configuration which will replace values from the
default Nginx template with `config`.
- `config` (Json) The values that can be replaced are these
- `cacheSize` (String) this parameter will replace the Nginx default
- `cacheZoneSize` (String)this parameter will replace the Nginx default
- `cacheInactive` (String)this parameter will replace the Nginx default
- `mapHashBucketSize` (String)this parameter will replace the Nginx default
- `LogFormat` (String)this parameter will replace the Nginx default

0 comments on commit 16836a1

Please sign in to comment.