Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters host and port are optional for resource::database #397

Merged
merged 1 commit into from
Dec 8, 2023
Merged
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
8 changes: 6 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5004,17 +5004,21 @@ Set database type to connect.

##### <a name="-icingaweb2--resource--database--host"></a>`host`

Data type: `Stdlib::Host`
Data type: `Optional[Stdlib::Host]`

Connect to the database on the given host. For using unix domain sockets, specify 'localhost' for
MySQL and the path to the unix domain socket and the directory for PostgreSQL.

Default value: `undef`

##### <a name="-icingaweb2--resource--database--port"></a>`port`

Data type: `Stdlib::Port`
Data type: `Optional[Stdlib::Port]`

Port number to use.

Default value: `undef`

##### <a name="-icingaweb2--resource--database--database"></a>`database`

Data type: `String`
Expand Down
4 changes: 2 additions & 2 deletions manifests/resource/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
define icingaweb2::resource::database (
Enum['mysql', 'pgsql', 'mssql',
'oci', 'oracle', 'ibm', 'sqlite'] $type,
Stdlib::Host $host,
String $database,
Stdlib::Port $port,
String $resource_name = $title,
Optional[Stdlib::Host] $host = undef,
Optional[Stdlib::Port] $port = undef,
Optional[String] $username = undef,
Optional[Icingaweb2::Secret] $password = undef,
Optional[String] $charset = undef,
Expand Down
Loading