Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ba5e4dc
Add `elastic_stack_keystore` resource type to handle keystore file fo…
Dec 19, 2023
63feb6f
Update REFERENCE.md
Dec 19, 2023
0ca72d5
Add rspec unit test for `elastic_stack_keystore` type
Dec 19, 2023
751f659
Remove trailing whitespaces
Dec 19, 2023
809db6c
Use single-quoted strings when possible
Dec 20, 2023
5414935
Replace the legacy fact `osfamily` (deprecated) by the nested `os.fam…
Dec 20, 2023
c49f5f1
Add space after comma
Dec 20, 2023
da4fc03
Add space after comma
Dec 20, 2023
6e1ad26
Remove useless comment
Dec 20, 2023
b4250f7
Fix typo error
Dec 20, 2023
3cfb0d2
Add space missing after comma
Dec 20, 2023
3bcf5bc
Use _ to indicate that the var won't be used
Dec 20, 2023
594ec3e
Convert if nested inside else to elsif
Dec 20, 2023
654d72e
Pass a block to to_h instead of calling map.to_h
Dec 20, 2023
7b21f30
Use ternary operator in variable assignment and comparison
Dec 20, 2023
6daac95
Do not interpolate string
Dec 20, 2023
1ab1244
Remove tabs
Dec 20, 2023
fad2d79
Rename has_passwd? to passwd?
Dec 20, 2023
22b0820
Use %w for an array of words
Dec 20, 2023
b8c48eb
Redundant self assignment detected. Method concat modifies its receiv…
Dec 20, 2023
0fb187b
Simplify with a ternary operator
Dec 20, 2023
04caeb7
Use ternary operator to avoid if block
Dec 20, 2023
5bd9f68
Simplify with a single-line (`unless` statement)
Dec 20, 2023
78dd241
Simplify if statement
Dec 20, 2023
9a4f983
Simplify if statement
Dec 20, 2023
bfdc006
Simplify if statement using ternary operator
Dec 20, 2023
e5a9501
Use %r around regular expression
Dec 20, 2023
0619a4e
Merging nested conditions
Dec 20, 2023
b322191
Merging nested conditions into outer unless conditions
Dec 20, 2023
f7f4935
Fix error when running Puppet: "stack level too deep"
Dec 20, 2023
fb62c40
Convert if nested inside else to elsif
Dec 20, 2023
2ff3981
Fix variable `settings` used in void context
Dec 20, 2023
a390183
Require `spec_helper` (instead of `spec_helper_rspec`)
Dec 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

* [`elastic_stack::repo`](#elastic_stack--repo): Set up the package repository for Elastic Stack components

### Resource types

* [`elastic_stack_keystore`](#elastic_stack_keystore): Manages a keystore settings file (for either Elasticserach or Kibana service.

## Classes

### <a name="elastic_stack--repo"></a>`elastic_stack::repo`
Expand Down Expand Up @@ -81,3 +85,61 @@ The base url for the repo path

Default value: `undef`

## Resource types

### <a name="elastic_stack_keystore"></a>`elastic_stack_keystore`

Manages a keystore settings file (for either Elasticserach or Kibana service.

#### Properties

The following properties are available in the `elastic_stack_keystore` type.

##### `ensure`

Valid values: `present`, `absent`

The basic property that the resource should be in.

Default value: `present`

##### `password`

Password to protect keystore.

Default value: `''`

##### `settings`

A key/value hash of settings names and values.

#### Parameters

The following parameters are available in the `elastic_stack_keystore` type.

* [`provider`](#-elastic_stack_keystore--provider)
* [`purge`](#-elastic_stack_keystore--purge)
* [`service`](#-elastic_stack_keystore--service)

##### <a name="-elastic_stack_keystore--provider"></a>`provider`

The specific backend to use for this `elastic_stack_keystore` resource. You will seldom need to specify this --- Puppet
will usually discover the appropriate provider for your platform.

##### <a name="-elastic_stack_keystore--purge"></a>`purge`

Valid values: `true`, `false`, `yes`, `no`

Whether to proactively remove settings that exist in the keystore but
are not present in this resource's settings.

Default value: `false`

##### <a name="-elastic_stack_keystore--service"></a>`service`

Valid values: `elasticsearch`, `kibana`

Service that manages the keystore (either "elasticsearch" or "kibana").

Default value: `elasticsearch`

Loading