Added icinga2::object::idopgsqlconnection object documentation to the README.
This commit is contained in:
parent
1b2bd10488
commit
5f05d3bfbe
1 changed files with 34 additions and 0 deletions
34
README.md
34
README.md
|
@ -260,6 +260,40 @@ This defined type supports all of the parameters that **IdoMySqlConnection** obj
|
|||
|
||||
See [IdoMySqlConnection](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#objecttype-idomysqlconnection) on [docs.icinga.org](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc) for a full list of parameters.
|
||||
|
||||
####`icinga2::object::idopgsqlconnection`
|
||||
|
||||
This defined type creates an **IdoPgSqlConnection** objects.
|
||||
|
||||
Though you can create the file anywhere and with any name via the `target_dir` and `target_file_name` parameters, you should set the `target_dir` parameter to `/etc/icinga2/features-enabled`, as that's where Icinga 2 will look for DB connection objects by default.
|
||||
|
||||
Example usage:
|
||||
|
||||
<pre>
|
||||
icinga2::object::idopgsqlconnection { 'postgres_connection':
|
||||
target_dir => '/etc/icinga2/features-enabled',
|
||||
target_file_name => 'ido-pgsql.conf',
|
||||
host => '127.0.0.1',
|
||||
port => 5432,
|
||||
user => 'icinga2',
|
||||
password => 'password',
|
||||
database => 'icinga2_data',
|
||||
|
||||
categories => ['DbCatConfig', 'DbCatState', 'DbCatAcknowledgement', 'DbCatComment', 'DbCatDowntime', 'DbCatEventHandler' ],
|
||||
}
|
||||
</pre>
|
||||
|
||||
Some parameters require specific data types to be given:
|
||||
|
||||
* `port`: needs to be a [number](https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#numbers), not a quoted string
|
||||
* `cleanup`: If changed from the default value, needs to be given as a [hash](https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#hashes) with the keys being the cleanup item names and the maximum age as a number (not a quoted string); default values are set to the default values shown in the [Cleanup Items section of the IdopgsqlConnection object documentation](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#objecttype-idopgsqlconnection)
|
||||
* `categories`: needs to be given as an [array](https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#arrays) with [single-quoted strings](https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#single-quoted-strings) as the elements; default values are set to the default values shown in the [Data Categories section of the IdopgsqlConnection object documentation](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#objecttype-idopgsqlconnection)
|
||||
|
||||
All other parameters are given as [single-quoted strings](https://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#single-quoted-strings).
|
||||
|
||||
This defined type supports all of the parameters that **IdoMySqlConnection** objects have available.
|
||||
|
||||
See [IdoPgSqlConnection](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#objecttype-idopgsqlconnection) on [docs.icinga.org](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc) for a full list of parameters.
|
||||
|
||||
## Documentation
|
||||
|
||||
The latest documentation is also available on https://docs.icinga.org
|
||||
|
|
Loading…
Reference in a new issue