Forge Home


A simple module to manage entries


42,938 latest version

3.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
released Jan 10th 2018

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'crayfishx-ldconfig', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add crayfishx-ldconfig
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install crayfishx-ldconfig --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.



crayfishx/ldconfig — version 0.1.0 Jan 10th 2018



A simple module to manage ld.conf.d entries on Unix systems. This has been tested on RHEL.

Usage Example

This module contains a defined resource type called ldconfig::entry which will generate a file in /etc/ and run the ldconfig command when something in that content changes. The main ldconfig base class also can read in entries from Hiera and generate entries.

In Puppet DSL

  ldconfig::entry { 'mariadb':
    paths => [ '/usr/lib64/mysql' ]

In Hiera

Hiera can be populated with the ldconfig::entries hash to automatically generate entries from data

      - /usr/lib64/mysql


Class ldconfig

The base ldconfig class accepts the following parameters

  • ld_conf_dir: Directory containing files, default: /etc/
  • ldconfig_exec: Path to the command to run upon change, default: /sbin/ldconfig
  • run_ldconfig: True or false, whether or not to run the ldconfig command upon change (default: true)
  • entries: A hash of entries to generate (see Hiera example above)

Defined type ldconfig::entry

The ldconfig::entry defined resource type accepts the following parameters

  • ensure: Present or absent, default: present
  • paths: An array of path names


This module is written and maintained by Craig Dunn (@crayfishx)


See the NOTICE and LICENSE files. This module is licensed under Apache 2.0