acaiafa / updatedb-cookbook

updatedb-cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UpdateDB Cookbook

License

Cookbook which configures UpdateDB.

Platforms

The following platforms are tested using Test Kitchen:

  • Ubuntu 12.04/14.04/16.04
  • CentOS (RHEL) 5/6/7

Basic Usage

The default recipe gives you the ability to pass attributes to tune all of the settings in the updatedb config file. There are currently defaults set in the attributes. You can modify these as you please.
You can tweak the settings in the Policefile.rb or directly using attributes. All UpdateDB specific settings should use underscores like the examples below.

Recipe

default['updatedb']['config']['settings']['prune_bind_mounts'] = 'yes'
default['updatedb']['config']['settings']['prunenames'] = '.git .bzr .hg .svn'
default['updatedb']['config']['settings']['prunefs'] = '/tmp /var/spool /media /home/.ecryptfs'
default['updatedb']['config']['settings']['prunepaths'] = 'NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs'

Policyfile

name 'updatdb'
default_source :community
cookbook 'updatedb', git: 'https://github.com/acaiafa/updatedb-cookbook'
run_list 'updatedb::default'
default['updatedb']['config']['settings']['prune_bind_mounts'] = 'yes'

override['updatedb']['config']['settings']['prunenames'] = '.git .bzr .hg .svn'
override['updatedb']['config']['settings']['prunefs'] = '/tmp /var/spool /media /home/.ecryptfs'
override['updatedb']['config']['settings']['prunepaths'] = 'NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre tmpfs usbfs udf fuse.glusterfs fuse.sshfs curlftpfs ecryptfs fusesmb devtmpfs'

About

updatedb-cookbook

License:Other


Languages

Language:Ruby 100.0%