Giter Club home page Giter Club logo

puppet-mlocate's Introduction

mlocate

License Build Status Code Coverage Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores

Table of Contents

  1. Module Description - What the module does and why it is useful
  2. Setup - The basics of getting started with ntp

Module Description

  • Install mlocate or plocate package
  • Configures /etc/updatedb.conf
  • Maintains a cron or timer to run mlocate or plocate.

Setup

Install mlocate or plocate and configure with default configuration.

include mlocate

Fedora 37 and newer will install plocate always since mlocate will be obsoleted by the plocate RPM allways.

Configure everything we can.

class{'mlocate':
  ensure            => true,
  locate            => 'plocate',
  prunefs           => ['9p', 'afs', 'autofs', 'bdev'],
  prune_bind_mounts => true,
  prunenames        => ['.git', 'CVS'],
  prunepaths        => ['/afs', 'mnt' ],
  period            => 'daily',
  force_updatedb    => true,
}

The parameters prunefs, prunenames and prunepaths are configured with a unique merge strategy within hiera so the defaults can be easily extended.

---
mlocate::prunefs:
  - winnt
mlocate::prunenames:
  - .cache
mlocate::prunepaths:
  - /cvmfs

To override all values and set and exact parameter the lookup_options will need to be re-defined

lookup_options:
  mlocate::prunepaths:
    merge: unique

mocate::prunepaths:
  - /set/prunepaths/to/this/path/and/drop/defaults

or just set via parameters:

class{ 'mlocate':
  prunepaths => ['just', 'this'],
}

If you wish to switch to plocate instead you can use the locate parameter to switch to that implementation instead.

---
mlocate::locate: plocate

Using plocate is the default for Archlinux, Debian 11 and newer, Fedora 37 and newer and RHEL 10 and newer

  • mlocate is the default for RHEL 7, 8 and 9 and also Fedora 36.
  • plocate is the default for Debian and any newer Fedoras or RHELs.

puppet-mlocate's People

Contributors

bastelfreak avatar traylenator avatar jcpunk avatar zilchms avatar dhoppe avatar ekohl avatar smortex avatar alexjfisher avatar jhoblitt avatar maxadamo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.