{"id":17440229,"url":"https://github.com/voxpupuli/puppet-mlocate","last_synced_at":"2025-04-16T01:28:28.721Z","repository":{"id":40792158,"uuid":"212760498","full_name":"voxpupuli/puppet-mlocate","owner":"voxpupuli","description":"Install mlocate and configure updatedb.conf","archived":false,"fork":false,"pushed_at":"2025-03-19T19:09:42.000Z","size":161,"stargazers_count":2,"open_issues_count":4,"forks_count":10,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-13T10:25:35.040Z","etag":null,"topics":["centos-puppet-module","hacktoberfest","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"vox-pupuli","github":"voxpupuli"}},"created_at":"2019-10-04T07:35:51.000Z","updated_at":"2025-01-21T12:16:15.000Z","dependencies_parsed_at":"2023-12-19T08:34:46.642Z","dependency_job_id":"b727742a-2af4-49a6-a3d1-1460145aa92e","html_url":"https://github.com/voxpupuli/puppet-mlocate","commit_stats":{"total_commits":77,"total_committers":11,"mean_commits":7.0,"dds":0.5974025974025974,"last_synced_commit":"a336e2fcc653bc82cd9a7bfc3d8573caef844f94"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-mlocate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-mlocate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-mlocate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-mlocate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-mlocate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249181723,"owners_count":21225940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos-puppet-module","hacktoberfest","linux-puppet-module","oraclelinux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module"],"created_at":"2024-10-17T14:07:43.669Z","updated_at":"2025-04-16T01:28:28.703Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":["https://opencollective.com/vox-pupuli","https://github.com/sponsors/voxpupuli"],"categories":[],"sub_categories":[],"readme":"# mlocate\n\n[![License](https://img.shields.io/github/license/voxpupuli/puppet-mlocate.svg)](https://github.com/voxpupuli/puppet-mlocate/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/voxpupuli/puppet-mlocate.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-mlocate)\n[![Code Coverage](https://coveralls.io/repos/github/voxpupuli/puppet-mlocate/badge.svg?branch=master)](https://coveralls.io/github/voxpupuli/puppet-mlocate)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/mlocate.svg)](https://forge.puppetlabs.com/puppet/mlocate)\n[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/mlocate.svg)](https://forge.puppetlabs.com/puppet/mlocate)\n[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/mlocate.svg)](https://forge.puppetlabs.com/puppet/mlocate)\n[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/mlocate.svg)](https://forge.puppetlabs.com/puppet/mlocate)\n\n#### Table of Contents\n\n1. [Module Description - What the module does and why it is useful](#module-description)\n1. [Setup - The basics of getting started with ntp](#setup)\n\n\u003ca id=\"module-description\"\u003e\u003c/a\u003e\n## Module Description\n\n* Install mlocate or plocate package\n* Configures `/etc/updatedb.conf`\n* Maintains a cron or timer to run mlocate or plocate.\n\n\u003ca id=\"setup\"\u003e\u003c/a\u003e\n## Setup\n\nInstall mlocate or plocate and configure with default configuration.\n```puppet\ninclude mlocate\n```\n\nFedora 37 and newer will install plocate always since mlocate will\nbe obsoleted by the plocate RPM allways.\n\nConfigure everything we can.\n```puppet\nclass{'mlocate':\n  ensure            =\u003e true,\n  locate            =\u003e 'plocate',\n  prunefs           =\u003e ['9p', 'afs', 'autofs', 'bdev'],\n  prune_bind_mounts =\u003e true,\n  prunenames        =\u003e ['.git', 'CVS'],\n  prunepaths        =\u003e ['/afs', 'mnt' ],\n  period            =\u003e 'daily',\n  force_updatedb    =\u003e true,\n}\n```\n\nThe parameters `prunefs`, `prunenames` and `prunepaths` are configured with\na `unique` merge strategy within hiera so the defaults can be easily extended.\n\n```yaml\n---\nmlocate::prunefs:\n  - winnt\nmlocate::prunenames:\n  - .cache\nmlocate::prunepaths:\n  - /cvmfs\n```\n\nTo override all values and set and exact parameter the `lookup_options` will need to be re-defined\n\n```yaml\nlookup_options:\n  mlocate::prunepaths:\n    merge: unique\n\nmocate::prunepaths:\n  - /set/prunepaths/to/this/path/and/drop/defaults\n```\n\nor just set via parameters:\n\n```puppet\nclass{ 'mlocate':\n  prunepaths =\u003e ['just', 'this'],\n}\n```\n\nIf you wish to switch to `plocate` instead you can use the `locate` parameter to switch to that implementation instead.\n\n```yaml\n---\nmlocate::locate: plocate\n```\n\nUsing plocate is the default for Archlinux, Debian 11 and newer, Fedora 37 and newer and RHEL 10 and newer\n\n* mlocate is the default for RHEL 7, 8 and 9 and also Fedora 36.\n* plocate is the default for Debian and any newer Fedoras or RHELs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-mlocate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-mlocate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-mlocate/lists"}