From 16836a1cff96d45882c8de5decb5f7d868f9f321 Mon Sep 17 00:00:00 2001 From: Felipe Travi Date: Tue, 3 Oct 2023 13:48:33 -0300 Subject: [PATCH] Add parameters to the doc (#31) * typo * Add doc paramaters RPaaSv2 --- docs/index.md | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 88e329d..75b7f4f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -3,13 +3,10 @@ page_title: "rpaas Provider" subcategory: "" description: |- - --- # rpaas Provider - - ## Example Usage ```terraform @@ -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 @@ -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