3
0
2025-02-26 18:27:57 +01:00
2025-02-26 18:27:57 +01:00
2025-02-26 18:27:57 +01:00
2025-02-25 17:06:07 +01:00
2025-02-25 17:06:07 +01:00
2025-02-25 17:06:07 +01:00
2025-02-26 16:15:21 +01:00
2025-02-25 17:06:07 +01:00
2025-02-25 17:06:07 +01:00
2025-02-26 17:32:49 +01:00

Readme

Build Status|

[[TOC]]

Synopsis

This Puppet module configures settings for Puppet master and agents, PuppetDB and R10k, the full bundle. The syntax etc is specifically for Puppet Core 8 and Rocky 9, although might work elsewhere as well. This module is also designed to work with External Node Classifiers (ENC), for instance Foreman.

WARNING

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

Features

  • install repo rpm (this will create the repo definitions)
  • install packages depending on whether the host fqdn equals either master fqdn, db fqdn or none (agent).
  • open firewall ports depending on fqdn choices
  • start services as required

Support

  • Rocky 9
  • Puppet Core 8

Parameter Inheritance

All parameters are listed in params.pp and inherited from there. Variable parameters are in the upper section and also documented in the top. These can be overridden by the ENC. Parameters in the bottom section (curly brackets) cannot be overridden and usually are used for keeping the code in the classes more readable.

Module Deployment

ALmost every puppet setup is done in very custom ways, and hence the way the modules are deployed to nodes are different. This module assumes Foreman as ENC, so the modules just have to be present on the master node and Foreman will take care for it.

Tests

  • 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

Contact Us

contact Us

Disclaimer

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.

Description
No description provided
Readme 11 MiB
Languages
HTML 50.9%
Puppet 49.1%