Skip to content

popsikle/chef-incron

 
 

Repository files navigation

chef-incron

Build Status

Installs the incron package and starts the incrond service.

About incron

Incron is an "inotify cron" system. It consists of a daemon and a table manipulator. You can use it a similar way as the regular cron. The difference is that the inotify cron handles filesystem events rather than time periods.

More information about incron

Attributes

default

default['incron']['allowed_users'] is an array of users allowed, defaults to ["root"] default['incron']['denied_users'] is an array of users denied, defaults to "[]" default['incron']['editor'] is the editor user editing a job via command line, defaults to vim default['incron']['service_name'] is the name of the system service, defaults to "incron" on debian and 'incrond' on rhel platforms

Recipes

default

This will install the incron package and start the service.

Resources

incron_d

This resource helps you create a system incron table.

incron_d "notify_home_changes" do
  path "/home"
  mask "IN_MODIFY"
  command "/usr/local/bin/abcd"
end

incron_user

This resource helps you manage the allow and deny list for incron.

incron_user "root" do
  action :allow
end

More information about syntax

License, Author and Contributor(s)

License: MIT

Author: David Radcliffe Contributor: Salvatore Poliandro III

About

Chef cookbook for incron

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%