Files
confdroid_alloy/README.md

89 lines
3.1 KiB
Markdown
Raw Normal View History

2025-02-23 13:52:50 +01:00
# Readme
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
[![Build Status](https://pipelines.confdroid.com/buildStatus/icon?job=cd_alloy)](https://pipelines.confdroid.com/job/cd_alloy/)
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
[[_TOC_]]
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
2025-02-23 13:52:50 +01:00
`cd_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
2025-02-23 13:58:44 +01: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
2025-02-23 13:52:50 +01:00
* ToDo
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
* [cd_resources](https://sourcecode.confdroid.com/12WW1160/cd_resources) to manage yum base repos
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
2025-02-23 13:52:50 +01:00
* native Puppet deployment
via site.pp or nodes.pp
```bash
node 'example.example.net' {
include cd_kubernetes
}
```
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
* through Foreman:
2025-02-23 12:34:30 +00:00
2025-02-23 13:52:50 +01:00
In order to apply parameters through Foreman, **__cd_alloy::params__** 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
2025-02-23 13:52:50 +01:00
* OS: Roxky 9
* Puppet 6
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
2025-02-23 13:52:50 +01:00
* Puppet Lint
* excluded tests:
* `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions
* `--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.
* `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`.
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
* Puppet Parser
* ERB Template Parser
* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
* Markdown-lint
* Spellcheck
* 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
2025-02-23 13:52:50 +01:00
[contact Us](https://confdroid.com/contact/)
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.