diff options
Diffstat (limited to 'net/benthos/files')
-rw-r--r-- | net/benthos/files/benthos.in | 60 | ||||
-rw-r--r-- | net/benthos/files/config.yaml | 27 | ||||
-rw-r--r-- | net/benthos/files/patch-redis-port | 387 |
3 files changed, 0 insertions, 474 deletions
diff --git a/net/benthos/files/benthos.in b/net/benthos/files/benthos.in deleted file mode 100644 index e042c13e5896..000000000000 --- a/net/benthos/files/benthos.in +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# -# PROVIDE: benthos -# REQUIRE: DAEMON -# KEYWORD: shutdown -# -# Add the following lines to /etc/rc.conf to run NATS: -# -# benthos_enable (bool): Set it to "YES" to enable benthos. -# Default is "NO". -# benthos_user: User name to run as. default "benthos" -# benthos_group: Group name to run as. default "benthos" -# benthos_resources: Path to benthos resources files (glob). -# benthos_config: Path to benthos configuration file. -# benthos_watcher (bool): Set it to "YES" to enable benthos watcher mode. -# Default is "NO". -# benthos_options: Options to pass benthos -# (e.g. 'streams' for streams mode). -# - -. /etc/rc.subr - -name=benthos -rcvar=`set_rcvar` - -load_rc_config ${name} - -: ${benthos_enable:=NO} -: ${benthos_user:=benthos} -: ${benthos_group:=benthos} -: ${benthos_resources:=""} -: ${benthos_config:="%%PREFIX%%/etc/benthos/config.yaml"} -: ${benthos_watcher:=NO} -: ${benthos_options=""} - -if [ -n "${benthos_resources}" ]; then - benthos_options="--resources '${benthos_resources}' ${benthos_options}" -fi - -if [ -n "${benthos_config}" ]; then - benthos_options="--config ${benthos_config} ${benthos_options}" -fi - -if checkyesno benthos_watcher; then - benthos_options="--watcher ${benthos_options}" -fi - -start_precmd=benthos_start_precmd - -pidfile="/var/run/${name}.pid" -procname=%%PREFIX%%/bin/benthos -command=/usr/sbin/daemon -command_args="-p ${pidfile} ${procname} ${benthos_options}" - -benthos_start_precmd() -{ - install -o ${benthos_user} -g ${benthos_group} /dev/null ${pidfile} -} - -run_rc_command "$1" diff --git a/net/benthos/files/config.yaml b/net/benthos/files/config.yaml deleted file mode 100644 index 9cd7eb3128b1..000000000000 --- a/net/benthos/files/config.yaml +++ /dev/null @@ -1,27 +0,0 @@ -# Sample configuration file for Benthos. It saves all messages to a file (/tmp/benthos.txt). -http: - enabled: true - address: 127.0.0.1:4195 - root_path: / - debug_endpoints: false -input: - http_server: - path: /post - ws_path: /post/ws - ws_welcome_message: "Welcome to the Benthos Websocket API." - allowed_verbs: - - POST - timeout: 5s - cors: - enabled: false - allowed_origins: [] - sync_response: - status: "200" - headers: - Content-Type: application/octet-stream -output: - file: - path: /tmp/benthos.txt - codec: lines -shutdown_delay: 0s -shutdown_timeout: 20s diff --git a/net/benthos/files/patch-redis-port b/net/benthos/files/patch-redis-port deleted file mode 100644 index f5459772e9ba..000000000000 --- a/net/benthos/files/patch-redis-port +++ /dev/null @@ -1,387 +0,0 @@ -diff --git internal/impl/redis/client.go internal/impl/redis/client.go -index eeadf575b..a078c3a81 100644 ---- internal/impl/redis/client.go -+++ internal/impl/redis/client.go -@@ -21,7 +21,7 @@ Some cloud hosted instances of Redis (such as Azure Cache) might need some hand - return []*service.ConfigField{ - service.NewURLField("url"). - Description("The URL of the target Redis server. Database is optional and is supplied as the URL path."). -- Example("redis://:6397"). -+ Example("redis://:6379"). - Example("redis://localhost:6379"). - Example("redis://foousername:foopassword@redisplace:6379"). - Example("redis://:foopassword@redisplace:6379"). -diff --git website/docs/components/caches/redis.md website/docs/components/caches/redis.md -index 4ee3d8b74..eefed0bde 100644 ---- website/docs/components/caches/redis.md -+++ website/docs/components/caches/redis.md -@@ -28,7 +28,7 @@ Use a Redis instance as a cache. The expiration can be set to zero or an empty s - # Common config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - prefix: "" # No default (optional) - ``` - -@@ -39,7 +39,7 @@ redis: - # All config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -72,7 +72,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/inputs/redis_list.md website/docs/components/inputs/redis_list.md -index 8dd9aacff..456ecdf57 100644 ---- website/docs/components/inputs/redis_list.md -+++ website/docs/components/inputs/redis_list.md -@@ -30,7 +30,7 @@ Pops messages from the beginning of a Redis list using the BLPop command. - input: - label: "" - redis_list: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - key: "" # No default (required) - auto_replay_nacks: true - ``` -@@ -43,7 +43,7 @@ input: - input: - label: "" - redis_list: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -75,7 +75,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/inputs/redis_pubsub.md website/docs/components/inputs/redis_pubsub.md -index 2efe5dda5..87e490aa3 100644 ---- website/docs/components/inputs/redis_pubsub.md -+++ website/docs/components/inputs/redis_pubsub.md -@@ -30,7 +30,7 @@ Consume from a Redis publish/subscribe channel using either the SUBSCRIBE or PSU - input: - label: "" - redis_pubsub: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - channels: [] # No default (required) - use_patterns: false - auto_replay_nacks: true -@@ -44,7 +44,7 @@ input: - input: - label: "" - redis_pubsub: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -82,7 +82,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/inputs/redis_scan.md website/docs/components/inputs/redis_scan.md -index 5384f7893..43ecc08ee 100644 ---- website/docs/components/inputs/redis_scan.md -+++ website/docs/components/inputs/redis_scan.md -@@ -35,7 +35,7 @@ Introduced in version 4.27.0. - input: - label: "" - redis_scan: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - auto_replay_nacks: true - match: "" - ``` -@@ -48,7 +48,7 @@ input: - input: - label: "" - redis_scan: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -88,7 +88,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/inputs/redis_streams.md website/docs/components/inputs/redis_streams.md -index 9d72ea90d..d25b6223b 100644 ---- website/docs/components/inputs/redis_streams.md -+++ website/docs/components/inputs/redis_streams.md -@@ -30,7 +30,7 @@ Pulls messages from Redis (v5.0+) streams with the XREADGROUP command. The `clie - input: - label: "" - redis_streams: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - body_key: body - streams: [] # No default (required) - auto_replay_nacks: true -@@ -47,7 +47,7 @@ input: - input: - label: "" - redis_streams: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -86,7 +86,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/outputs/redis_hash.md website/docs/components/outputs/redis_hash.md -index 808dd5c60..3bf96bbea 100644 ---- website/docs/components/outputs/redis_hash.md -+++ website/docs/components/outputs/redis_hash.md -@@ -30,7 +30,7 @@ Sets Redis hash objects using the HMSET command. - output: - label: "" - redis_hash: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - key: ${! @.kafka_key )} # No default (required) - walk_metadata: false - walk_json_object: false -@@ -46,7 +46,7 @@ output: - output: - label: "" - redis_hash: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -111,7 +111,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/outputs/redis_list.md website/docs/components/outputs/redis_list.md -index c22103ca1..8663d4009 100644 ---- website/docs/components/outputs/redis_list.md -+++ website/docs/components/outputs/redis_list.md -@@ -30,7 +30,7 @@ Pushes messages onto the end of a Redis list (which is created if it doesn't alr - output: - label: "" - redis_list: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - key: some_list # No default (required) - max_in_flight: 64 - batching: -@@ -48,7 +48,7 @@ output: - output: - label: "" - redis_list: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -96,7 +96,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/outputs/redis_pubsub.md website/docs/components/outputs/redis_pubsub.md -index a3c671522..c8cbbc6ae 100644 ---- website/docs/components/outputs/redis_pubsub.md -+++ website/docs/components/outputs/redis_pubsub.md -@@ -30,7 +30,7 @@ Publishes messages through the Redis PubSub model. It is not possible to guarant - output: - label: "" - redis_pubsub: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - channel: "" # No default (required) - max_in_flight: 64 - batching: -@@ -48,7 +48,7 @@ output: - output: - label: "" - redis_pubsub: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -95,7 +95,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/outputs/redis_streams.md website/docs/components/outputs/redis_streams.md -index 282336be1..aa9b9688c 100644 ---- website/docs/components/outputs/redis_streams.md -+++ website/docs/components/outputs/redis_streams.md -@@ -30,7 +30,7 @@ Pushes messages to a Redis (v5.0+) Stream (which is created if it doesn't alread - output: - label: "" - redis_streams: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - stream: "" # No default (required) - body_key: body - max_length: 0 -@@ -52,7 +52,7 @@ output: - output: - label: "" - redis_streams: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -105,7 +105,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/processors/redis.md website/docs/components/processors/redis.md -index 814426078..e30b95b8e 100644 ---- website/docs/components/processors/redis.md -+++ website/docs/components/processors/redis.md -@@ -30,7 +30,7 @@ performed for each message and the message contents are replaced with the result - # Common config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - command: scard # No default (optional) - args_mapping: root = [ this.key ] # No default (optional) - ``` -@@ -42,7 +42,7 @@ redis: - # All config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -134,7 +134,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/processors/redis_script.md website/docs/components/processors/redis_script.md -index 3bb5665f5..10b1a05c7 100644 ---- website/docs/components/processors/redis_script.md -+++ website/docs/components/processors/redis_script.md -@@ -34,7 +34,7 @@ Introduced in version 4.11.0. - # Common config fields, showing default values - label: "" - redis_script: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - script: return redis.call('set', KEYS[1], ARGV[1]) # No default (required) - args_mapping: root = [ this.key ] # No default (required) - keys_mapping: root = [ this.key ] # No default (required) -@@ -47,7 +47,7 @@ redis_script: - # All config fields, showing default values - label: "" - redis_script: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -115,7 +115,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - -diff --git website/docs/components/rate_limits/redis.md website/docs/components/rate_limits/redis.md -index 36c611b5e..4ef3fa968 100644 ---- website/docs/components/rate_limits/redis.md -+++ website/docs/components/rate_limits/redis.md -@@ -33,7 +33,7 @@ Introduced in version 4.12.0. - # Common config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - count: 1000 - interval: 1s - key: "" # No default (required) -@@ -46,7 +46,7 @@ redis: - # All config fields, showing default values - label: "" - redis: -- url: redis://:6397 # No default (required) -+ url: redis://:6379 # No default (required) - kind: simple - master: "" - tls: -@@ -76,7 +76,7 @@ Type: `string` - ```yml - # Examples - --url: redis://:6397 -+url: redis://:6379 - - url: redis://localhost:6379 - --- -2.45.1 |