Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@
.plan_cache.json
.rerun.json
bolt-debug.log
/.vscode/
6 changes: 0 additions & 6 deletions .vscode/extensions.json

This file was deleted.

31 changes: 31 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@

* [`ProSA::TelemetryLevel`](#ProSA--TelemetryLevel): A string that conforms to the ProSA `TelemetryLevel` syntax.

### Tasks

* [`version`](#version): Gets the ProSA components versions

## Classes

### <a name="prosa"></a>`prosa`
Expand Down Expand Up @@ -51,6 +55,7 @@ The following parameters are available in the `prosa` class:
* [`service_enable`](#-prosa--service_enable)
* [`service_manage`](#-prosa--service_manage)
* [`service_ensure`](#-prosa--service_ensure)
* [`service_limit_nofile`](#-prosa--service_limit_nofile)
* [`manage_user`](#-prosa--manage_user)
* [`manage_group`](#-prosa--manage_group)
* [`user`](#-prosa--user)
Expand Down Expand Up @@ -136,6 +141,16 @@ application.<br />

Default value: `'running'`

##### <a name="-prosa--service_limit_nofile"></a>`service_limit_nofile`

Data type: `Optional[Integer]`

Sets the limit on the number of open file descriptors for the ProSA service.<br />
This parameter corresponds to the `LimitNOFILE` directive in the systemd service unit file.<br />
Apply the default system limit when set to `undef`.

Default value: `undef`

##### <a name="-prosa--manage_user"></a>`manage_user`

Data type: `Boolean`
Expand Down Expand Up @@ -337,3 +352,19 @@ ProSA accept non case sensitive levels (like this type).

Alias of `Pattern[/\A(?i:error|warn|info|debug|trace|off)\Z/]`

## Tasks

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

Gets the ProSA components versions

**Supports noop?** false

#### Parameters

##### `node_role`

Data type: `String[1]`

The role of the node joining the swarm

6 changes: 6 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
# to `false`, which is useful when you want to let the service be managed by another
# application.<br />
#
# @param service_limit_nofile
# Sets the limit on the number of open file descriptors for the ProSA service.<br />
# This parameter corresponds to the `LimitNOFILE` directive in the systemd service unit file.<br />
# Apply the default system limit when set to `undef`.
#
# @param manage_user
# When `false`, stops Puppet from creating the user resource.<br />
# This is for instances when you have a user, created from another Puppet module, you want
Expand Down Expand Up @@ -77,6 +82,7 @@
Boolean $service_enable = true,
Boolean $service_manage = true,
Variant[Stdlib::Ensure::Service, Boolean] $service_ensure = 'running',
Optional[Integer] $service_limit_nofile = undef,
Boolean $manage_user = true,
Boolean $manage_group = true,
String $user = $prosa::params::user,
Expand Down
4 changes: 4 additions & 0 deletions templates/service.epp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
String $group = 'prosa',
Stdlib::Absolutepath $bin_path = '/usr/local/bin/prosa',
Stdlib::Absolutepath $conf_path = '/etc/prosa',
Optional[Integer] $limit_nofile = undef,
| -%>
[Unit]
Description=ProSA service for <%= $prosa_name %>
Expand All @@ -14,6 +15,9 @@ Type=simple
User=<%= $user %>
Group=<%= $group %>
ExecStart=<%= $bin_path %> -c <%= $conf_path %>
<% if $limit_nofile { -%>
LimitNOFILE=<%= $limit_nofile %>
<% } -%>

[Install]
WantedBy=multi-user.target
Loading