Giter VIP home page Giter VIP logo

puppet-incron's Introduction

incron

This incron module allows you to define incron jobs just like you would cronjobs using a resource type.

Package installation is possible by including the incron class, but not mandatory. This is to accomodate the various ways organisations manage installing packages.

As opposed to the cron resource type, incron resource names must be unique system wide.

Due to incrons inability to handle comments, it will log the following error when changes are made to an incrontab file. This error is harmless however: access denied on # - events will be discarded silently

incron_allowuser and incron_denyuser allow for incron.allow/deny file management.

Usage Example

include incron # Not needed if the package was installed through other means.

incron {'test1':
  user    => 'wleese',
  command => 'touch /tmp/1',
  path    => '/home/wleese/',
  mask    => ['IN_CREATE'],
}

# Optional, only if you need to manage allowed users
incron_allowuser { 'wleese':
  ensure => present,
}

Valid values for the mask parameter are:

IN_ACCESS
IN_MODIFY
IN_ATTRIB
IN_CLOSE_WRITE
IN_CLOSE_NOWRITE
IN_OPEN
IN_MOVED_FROM
IN_MOVED_TO
IN_MOVE_SELF
IN_CREATE
IN_DELETE
IN_DELETE_SELF
IN_UNMOUNT
IN_Q_OVERFLOW
IN_IGNORED
IN_CLOSE
IN_MOVE
IN_ISDIR
IN_DONT_FOLLOW
IN_ONESHOT
IN_ONLYDIR
IN_ALL_EVENT
IN_NO_LOOP

Support

If you recieve the error "Error: Could not find a suitable provider for incron", please install the incron package or add 'include incron' to your puppet code.

Feel free to suggest improvements!

puppet-incron's People

Contributors

alexgoodchild avatar ipanousis avatar justin8 avatar msutter avatar wleese avatar

Watchers

 avatar  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.