Skip to content

Commit

Permalink
remove doc and references to removed parameters; add missing doc stumps
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Mar 20, 2024
1 parent 16a66eb commit c693264
Show file tree
Hide file tree
Showing 24 changed files with 33 additions and 83 deletions.
63 changes: 10 additions & 53 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@

### Data types

* [`Graylog_api::Pipeline::Stage`](#Graylog_api--Pipeline--Stage)
* [`Graylog_api::Pipeline::Stage::Loose`](#Graylog_api--Pipeline--Stage--Loose)
* [`Graylog_api::Pipeline::Stage`](#Graylog_api--Pipeline--Stage): Custom Type for Graylog_api pipeline stage
* [`Graylog_api::Pipeline::Stage::Loose`](#Graylog_api--Pipeline--Stage--Loose): custom type for graylog_api pipeline stage loose

## Defined types

Expand Down Expand Up @@ -160,13 +160,12 @@ The following parameters are available in the `graylog_api::extractor::regex_rep
* [`input`](#-graylog_api--extractor--regex_replace--input)
* [`source_field`](#-graylog_api--extractor--regex_replace--source_field)
* [`target_field`](#-graylog_api--extractor--regex_replace--target_field)
* [`regex_value`](#-graylog_api--extractor--regex_replace--regex_value)
* [`regex`](#-graylog_api--extractor--regex_replace--regex)
* [`cut_or_copy`](#-graylog_api--extractor--regex_replace--cut_or_copy)
* [`condition_type`](#-graylog_api--extractor--regex_replace--condition_type)
* [`condition_value`](#-graylog_api--extractor--regex_replace--condition_value)
* [`converters`](#-graylog_api--extractor--regex_replace--converters)
* [`order`](#-graylog_api--extractor--regex_replace--order)
* [`regex`](#-graylog_api--extractor--regex_replace--regex)
* [`replacement`](#-graylog_api--extractor--regex_replace--replacement)
* [`replace_all`](#-graylog_api--extractor--regex_replace--replace_all)

Expand Down Expand Up @@ -202,10 +201,14 @@ Choose a field name to store the extracted value. It can only contain alphanumer

Default value: `''`

##### <a name="-graylog_api--extractor--regex_replace--regex_value"></a>`regex_value`
##### <a name="-graylog_api--extractor--regex_replace--regex"></a>`regex`

Data type: `String`

Title of the input this extractor is attached to.

Default value: `''`

##### <a name="-graylog_api--extractor--regex_replace--cut_or_copy"></a>`cut_or_copy`

Data type: `Optional[String]`
Expand Down Expand Up @@ -246,14 +249,6 @@ Sort index for this extractor.

Default value: `undef`

##### <a name="-graylog_api--extractor--regex_replace--regex"></a>`regex`

Data type: `String`



Default value: `''`

##### <a name="-graylog_api--extractor--regex_replace--replacement"></a>`replacement`

Data type: `String`
Expand Down Expand Up @@ -840,7 +835,6 @@ The following parameters are available in the `graylog_api::input::cef_udp` defi
* [`static_fields`](#-graylog_api--input--cef_udp--static_fields)
* [`timezone`](#-graylog_api--input--cef_udp--timezone)
* [`use_full_names`](#-graylog_api--input--cef_udp--use_full_names)
* [`use_null_delimiter`](#-graylog_api--input--cef_udp--use_null_delimiter)

##### <a name="-graylog_api--input--cef_udp--ensure"></a>`ensure`

Expand Down Expand Up @@ -929,11 +923,6 @@ specification).

Default value: `false`

##### <a name="-graylog_api--input--cef_udp--use_null_delimiter"></a>`use_null_delimiter`

Whether to use a null byte as a frame delimiter. If false, a newline is
used as the delimiter instead.

### <a name="graylog_api--input--gelf_http"></a>`graylog_api::input::gelf_http`

Defines an input accepting GELF-formatted JSON over HTTP POST.
Expand Down Expand Up @@ -1396,24 +1385,19 @@ Defines an input accepting Syslog messages over TCP.
The following parameters are available in the `graylog_api::input::syslog_tcp` defined type:

* [`ensure`](#-graylog_api--input--syslog_tcp--ensure)
* [`allow_override_date`](#-graylog_api--input--syslog_tcp--allow_override_date)
* [`bind_address`](#-graylog_api--input--syslog_tcp--bind_address)
* [`expand_structured_data`](#-graylog_api--input--syslog_tcp--expand_structured_data)
* [`force_rdns`](#-graylog_api--input--syslog_tcp--force_rdns)
* [`override_source`](#-graylog_api--input--syslog_tcp--override_source)
* [`port`](#-graylog_api--input--syslog_tcp--port)
* [`recv_buffer_size`](#-graylog_api--input--syslog_tcp--recv_buffer_size)
* [`scope`](#-graylog_api--input--syslog_tcp--scope)
* [`static_fields`](#-graylog_api--input--syslog_tcp--static_fields)
* [`store_full_message`](#-graylog_api--input--syslog_tcp--store_full_message)
* [`tcp_keepalive`](#-graylog_api--input--syslog_tcp--tcp_keepalive)
* [`tls_cert_file`](#-graylog_api--input--syslog_tcp--tls_cert_file)
* [`tls_client_auth`](#-graylog_api--input--syslog_tcp--tls_client_auth)
* [`tls_client_auth_cert_file`](#-graylog_api--input--syslog_tcp--tls_client_auth_cert_file)
* [`tls_enable`](#-graylog_api--input--syslog_tcp--tls_enable)
* [`tls_key_file`](#-graylog_api--input--syslog_tcp--tls_key_file)
* [`tls_key_password`](#-graylog_api--input--syslog_tcp--tls_key_password)
* [`use_null_delimiter`](#-graylog_api--input--syslog_tcp--use_null_delimiter)

##### <a name="-graylog_api--input--syslog_tcp--ensure"></a>`ensure`

Expand All @@ -1423,11 +1407,6 @@ Whether this input should exist.

Default value: `'present'`

##### <a name="-graylog_api--input--syslog_tcp--allow_override_date"></a>`allow_override_date`

Whether to allow setting the message timestamp to the current server time,
if the timstamp in the message failed to parse. Defaults to true.

##### <a name="-graylog_api--input--syslog_tcp--bind_address"></a>`bind_address`

Data type: `String`
Expand All @@ -1436,18 +1415,6 @@ The IP address to listen on. Defaults to 0.0.0.0.

Default value: `'0.0.0.0'`

##### <a name="-graylog_api--input--syslog_tcp--expand_structured_data"></a>`expand_structured_data`

Whether to expand structured data elements by prefixing attributes with
their SD-ID. Defaults to true.

##### <a name="-graylog_api--input--syslog_tcp--force_rdns"></a>`force_rdns`

Whether to force reverse DNS resolution of sender's hostname. Use if the
hostname in the message cannot be parsed. Default value is false.
NOTE: Be careful with this setting if you are sending DNS server logs into
this input as it can cause a feedback loop.

##### <a name="-graylog_api--input--syslog_tcp--override_source"></a>`override_source`

Data type: `Optional[String]`
Expand Down Expand Up @@ -1493,11 +1460,6 @@ Static fields to assign to this input.

Default value: `undef`

##### <a name="-graylog_api--input--syslog_tcp--store_full_message"></a>`store_full_message`

Whether to store the full original syslog message as full_message. Defaults
to true.

##### <a name="-graylog_api--input--syslog_tcp--tcp_keepalive"></a>`tcp_keepalive`

Data type: `Boolean`
Expand Down Expand Up @@ -1565,11 +1527,6 @@ blank if not using TLS, or if the key is not encrypted.

Default value: `''`

##### <a name="-graylog_api--input--syslog_tcp--use_null_delimiter"></a>`use_null_delimiter`

Whether to use a null byte as a frame delimiter. If false, a newline is
used as the delimiter instead.

### <a name="graylog_api--input--syslog_udp"></a>`graylog_api::input::syslog_udp`

Defines an input accepting Syslog messages over UDP.
Expand Down Expand Up @@ -3313,7 +3270,7 @@ usually discover the appropriate provider for your platform.

### <a name="Graylog_api--Pipeline--Stage"></a>`Graylog_api::Pipeline::Stage`

The Graylog_api::Pipeline::Stage data type.
Custom Type for Graylog_api pipeline stage

Alias of

Expand All @@ -3326,7 +3283,7 @@ Struct[{

### <a name="Graylog_api--Pipeline--Stage--Loose"></a>`Graylog_api::Pipeline::Stage::Loose`

The Graylog_api::Pipeline::Stage::Loose data type.
custom type for graylog_api pipeline stage loose

Alias of `Variant[Graylog_api::Pipeline::Stage, Array[String,1], String]`

1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_api/graylog_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require 'httparty' if Puppet.features.httparty?

Puppet::Type.type(:graylog_api).provide(:graylog_api) do
@doc = "Graylog Api base type"
confine feature: :retries
confine feature: :httparty

Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_dashboard/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_dashboard).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog dashboard"
mk_resource_methods

attr_accessor :widgets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_dashboard_layout).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog dashboard layout"
mk_resource_methods

def self.instances
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_dashboard_widget).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog dashboard widget"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_extractor/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_extractor).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog extractor"
EXTRACTOR_TYPES = {
copy_input: 'COPY_INPUT',
grok: 'GROK',
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_grok_pattern/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_grok_pattern).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog grok pattern"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_index_set/graylog_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require 'date'

Puppet::Type.type(:graylog_index_set).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog index set"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_input/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_input).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog input"
INPUT_TYPES = {
gelf_tcp: 'org.graylog2.inputs.gelf.tcp.GELFTCPInput',
gelf_udp: 'org.graylog2.inputs.gelf.udp.GELFUDPInput',
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_ldap_settings/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_ldap_settings).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog ldap settings"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_lookup_adapter/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_lookup_adapter).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog lookup adapter"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_lookup_cache/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_lookup_cache).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog lookup cache"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_lookup_table/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_lookup_table).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog lookup table"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_pipeline/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_pipeline).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog pipeline"
mk_resource_methods

def self.api_prefix
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_pipeline_rule/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_pipeline_rule).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog pipeline rule"
mk_resource_methods

def self.api_prefix
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_plugin_auth_sso/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_plugin_auth_sso).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog plugin auth sso"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_role/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_role).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog role"
mk_resource_methods

attr_writer :permission_cache
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_stream/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_stream).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog stream"
mk_resource_methods

def self.instances
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/graylog_user/graylog_api.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require_relative '../graylog_api'

Puppet::Type.type(:graylog_user).provide(:graylog_api, parent: Puppet::Provider::GraylogAPI) do
@doc = "graylog api type for graylog user"
mk_resource_methods

def self.instances
Expand Down
2 changes: 1 addition & 1 deletion manifests/extractor/regex_replace.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# @param target_field
# Choose a field name to store the extracted value. It can only contain alphanumeric characters and underscores. Example: http_response_code.
#
# @param regex_value
# @param regex
# Title of the input this extractor is attached to.
#
# @param cut_or_copy
Expand Down
3 changes: 0 additions & 3 deletions manifests/input/cef_udp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
# Whether to use full field names in CEF messages (as defined in the CEF
# specification).
#
# @param use_null_delimiter
# Whether to use a null byte as a frame delimiter. If false, a newline is
# used as the delimiter instead.
define graylog_api::input::cef_udp (
Enum['present','absent'] $ensure = 'present',
String $bind_address = '0.0.0.0',
Expand Down
Loading

0 comments on commit c693264

Please sign in to comment.