Files
confdroid_alloy/README.md

99 lines
3.4 KiB
Markdown
Raw Normal View History

2025-02-23 13:52:50 +01:00
# Readme
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
[![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_alloy&style=plastic)](https://jenkins.confdroid.com/job/confdroid_alloy/)
2026-07-21 13:36:58 +02:00
[![Security Hotspots](https://sonarqube.confdroid.com/api/project_badges/measure?project=confdroid_alloy&metric=security_hotspots&token=sqb_05c3bd9116b3d2585b1f06dd7b6d0d5a6433fe8b)](https://sonarqube.confdroid.com/dashboard?id=confdroid_alloy)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/grizzlycoda/puppet_collection)
2026-07-21 13:25:48 +02:00
- [Readme](#readme)
- [Synopsis](#synopsis)
- [WARNING](#warning)
- [Features](#features)
- [Repo Documentation](#repo-documentation)
- [Dependencies](#dependencies)
- [Deployment](#deployment)
- [SELINUX](#selinux)
- [Known Problems](#known-problems)
- [Support](#support)
- [Tests](#tests)
- [Contact Us](#contact-us)
- [Disclaimer](#disclaimer)
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Synopsis
2025-02-23 12:34:30 +00:00
2025-02-23 13:58:44 +01:00
Grafana Alloy is a log management agent built by Grafana labs to scrape and forward logs to Loki, a log management system also built by Grafana labs. Then you can use Grafana itself to visualize those logs and built an alerting system.
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
`confdroid_alloy` is a Puppet module to automate installation and configuration of alloy.
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## WARNING
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
***Attention: Never use this puppet module on systems which have been previously configured manually. It is impossible to predict how and what would have been configured, hence previous configurations outside the scope of this module may be overwritten! Automated configurations require a test environment to verify that the module suits the purpose intended by the user, as well as tune the parameters, before deploying into live production***
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Features
INSTALLATION
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- installs alloy binaries
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
CONFIGURATION
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- manage directories and files including templates
2026-07-21 13:36:58 +02:00
- manages the main alloy pipeline for loki and prometheus
- manages log rotation for rsyslog to allow adm membership
2026-07-21 13:25:48 +02:00
- manage service
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Repo Documentation
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
See the full Puppet documentation including parameters in `docs/index.html`
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Dependencies
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
All dependencies must be included in the catalogue.
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Deployment
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- native Puppet deployment
2025-02-23 13:52:50 +01:00
via site.pp or nodes.pp
```bash
node 'example.example.net' {
2026-07-21 13:25:48 +02:00
include confdroid_alloy
2025-02-23 13:52:50 +01:00
}
```
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- through Foreman:
2025-02-23 12:34:30 +00:00
2025-02-23 14:03:29 +01:00
In order to apply parameters through Foreman, the params.pp must be added to the host or host group in question.
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/).
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## SELINUX
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Known Problems
2025-02-23 12:34:30 +00:00
## Support
2026-07-21 13:25:48 +02:00
- OS: Rocky 9
- Puppet 8
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Tests
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- Puppet Lint
- excluded tests:
- `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
- Puppet Parser
- ERB Template Parser
- Sonar Quality Gate
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Contact Us
2025-02-23 12:34:30 +00:00
2026-07-21 13:25:48 +02:00
- [contact Us](https://confdroid.com/contact/)
- [Feedback Portal](https://feedback.confdroid.com)
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
## Disclaimer
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific environments.
The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.