https://github.com/roock/puppet-bareos_exporter
Puppet Module to Deploy the Bareos Prometheus Exporter
https://github.com/roock/puppet-bareos_exporter
bareos puppet
Last synced: about 2 months ago
JSON representation
Puppet Module to Deploy the Bareos Prometheus Exporter
- Host: GitHub
- URL: https://github.com/roock/puppet-bareos_exporter
- Owner: roock
- License: apache-2.0
- Created: 2021-12-14T10:19:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T17:20:25.000Z (about 3 years ago)
- Last Synced: 2024-03-18T04:10:42.847Z (over 2 years ago)
- Topics: bareos, puppet
- Language: Ruby
- Homepage: https://forge.puppet.com/modules/roock/bareos_exporter/
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# bareos exporter
This will install the [Bareos Prometheus Exporter](https://github.com/vierbergenlars/bareos_exporter).
Inspired by [Puppet Postgresql Exporter](https://github.com/gbloquel/puppet-postgres_exporter)
## Table of Contents
- [bareos exporter](#bareos-exporter)
- [Table of Contents](#table-of-contents)
- [Description](#description)
- [Setup](#setup)
- [Setup Requirements](#setup-requirements)
- [Beginning with exporter](#beginning-with-exporter)
- [Usage](#usage)
- [Reference](#reference)
- [Limitations](#limitations)
## Description
Briefly tell users why they might want to use your module. Explain what your
module does and what kind of problems users can solve with it.
This should be a fairly short description helps the user decide if your module
is what they want.
## Setup
### Setup Requirements
The module depends on the following puppet modules:
* [Puppetlabs/stdlib](https://forge.puppet.com/puppetlabs/stdlib)
* [Puppet/archive](https://forge.puppet.com/modules/puppet/archive) - For downloading and extracting the bareos exporter release tarball
* [Puppet/systemd](https://forge.puppet.com/modules/puppet/systemd) - For creating the systemd config
### Beginning with exporter
The most basic example is:
```puppet
include bareos_exporter
```
The module will assume that it will run as user postgres (which needs to already exist) and will connect to the database bareos on local host.
You can tweak the database connection settings with the `dsn` and `dbtype` param as well as you can specify the user the daemon shoould run and
if the user/group should get create.
## Usage
A more complete example:
```puppet
class { '::bareos_exporter':
manage_user => true,
manage_group => true,
bareos_exporter_user => 'bareos',
bareos_exporter_group => 'bareos',
datasource => 'user=bareos host=/var/run/postgresql/ sslmode=disable',
dbtype => 'pgx',
}
```
## Reference
see [REFERENCE.md](REFERENCE.md)
## Limitations
Tested with Debian 10 and 11, but should be fine on any Linux that uses Systemd.