{"id":15759375,"url":"https://github.com/pegasd/puppet-cron","last_synced_at":"2025-07-30T07:04:08.998Z","repository":{"id":57665030,"uuid":"79704253","full_name":"pegasd/puppet-cron","owner":"pegasd","description":"Puppet module to manage cron and related resources.","archived":false,"fork":false,"pushed_at":"2024-08-20T13:05:26.000Z","size":383,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T12:27:23.345Z","etag":null,"topics":["cron","freebsd","linux","puppet","puppet-module"],"latest_commit_sha":null,"homepage":"https://pegasd.github.io/puppet-cron/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pegasd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-01-22T08:20:39.000Z","updated_at":"2024-08-20T11:46:40.000Z","dependencies_parsed_at":"2024-08-01T18:00:31.131Z","dependency_job_id":"fe3f0de1-1f96-4843-8658-051885e20376","html_url":"https://github.com/pegasd/puppet-cron","commit_stats":{"total_commits":397,"total_committers":3,"mean_commits":"132.33333333333334","dds":0.05037783375314864,"last_synced_commit":"f1181e4ee466830c1f8ccd1cfa4cee42e6c20b7f"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/pegasd/puppet-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fpuppet-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fpuppet-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fpuppet-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fpuppet-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pegasd","download_url":"https://codeload.github.com/pegasd/puppet-cron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pegasd%2Fpuppet-cron/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267827337,"owners_count":24150345,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cron","freebsd","linux","puppet","puppet-module"],"created_at":"2024-10-04T10:04:58.779Z","updated_at":"2025-07-30T07:04:08.947Z","avatar_url":"https://github.com/pegasd.png","language":"Ruby","readme":"# Configure and manage cron jobs with focus on tidiness\n\n[![Build Status](https://github.com/pegasd/puppet-cron/actions/workflows/ci.yml/badge.svg?branch=main)](https://travis-ci.org/pegasd/puppet-cron)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/pegas/cron.svg)](https://forge.puppetlabs.com/pegas/cron)\n[![Puppet Forge - Downloads](https://img.shields.io/puppetforge/dt/pegas/cron.svg)](https://forge.puppetlabs.com/pegas/cron)\n[![Puppet Forge - Score](https://img.shields.io/puppetforge/f/pegas/cron.svg)](https://forge.puppetlabs.com/pegas/cron)\n\n## Table of Contents\n\n1. [Description](#description)\n1. [Setup - The basics of getting started with cron](#setup)\n1. [Usage - Configuration options and additional functionality](#usage)\n1. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n1. [Limitations - OS compatibility, etc.](#limitations)\n1. [Development - Guide for contributing to the module](#development)\n\n## Description\n\nThis module is an interface for cron jobs with the main idea to be tidy. That means that any jobs that are not managed\nshould not exist. Once you switch all cron jobs to this module, simply removing the definition is sufficient without\nworrying about setting `ensure =\u003e disable` and waiting for changes to propagate.\n\n## Setup\n\n### Beginning with cron\n\nTo start out with cron:\n```puppet\ninclude cron\n```\nThis will start purging all unmanaged cron resources and also make sure the 'cron' package is installed and the service is running.\n\n**WARNING**: All existing unmanaged cron jobs will be purged!\n\n## Usage\n\n### Also manage /etc/cron.d directory\n```puppet\nclass { 'cron':\n  purge_crond =\u003e true,\n}\n```\n\nSame result through Hiera:\n\n```yaml\ncron::purge_crond: true\n```\n\n### Wipe it all out\n```puppet\nclass { 'cron':\n  ensure =\u003e absent,\n}\n```\n\nSame result through Hiera:\n\n```yaml\ncron::ensure: absent\n```\n\n### cron::job example\n\n```puppet\ncron::job { 'backup':\n  user     =\u003e 'backup', # default: 'root'\n  minute   =\u003e '3-59/5',\n  hour     =\u003e '9-17',\n  monthday =\u003e '*/2',\n  month    =\u003e [ 4, 8, 12 ],\n  weekday  =\u003e '0-4',\n}\n```\n\n\n### cron::whitelist example\n\n```puppet\ncron::whitelist { 'pkg_backup': }\n```\nThis will make `/etc/cron.d/pkg_backup` immune, and keep the file's contents untouched.\n\n## Reference\n\n### Type Aliases\n\n* `Cron::Command` - Used for `cron::job::command` parameter. Does not allow newline characters (which breaks crontab).\n* `Cron::User` - Match username to fail early if invalid username is provided.\n* `Cron::Minute` - Stricter `cron::job::minute`.\n* `Cron::Hour` - Stricter `cron::job::hour`.\n* `Cron::Monthday` - Stricter `cron::job::monthday`.\n* `Cron::Month` - Stricter `cron::job::month`.\n* `Cron::Weekday` - Stricter `cron::job::weekday`.\n\n### Full reference\n\nCheck out [REFERENCE](REFERENCE.md) for up-to-date details.\n\n## Limitations\n\n* Made for and tested only on the following Ubuntu distributions:\n    * 18.04\n    * 20.04\n    * 22.04\n* Custom `Cron::*` time types are a lot stricter than builtin `cron` ones. Careful - this may break existing cron jobs\n  you are converting.\n* All cron jobs managed by built-in `cron` type are fair play. They won't be purged as long as they're in the catalog.\n  But using this module's `cron::job` type does have its advantages.\n\n## Development\n\nI'll be happy to know you're using this for one reason or the other. And if you want to\ncontribute - even better. Feel free to [submit an issue](https://github.com/pegasd/puppet-cron/issues) /\n[fire up a PR](https://github.com/pegasd/puppet-cron/pulls) / whatever.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegasd%2Fpuppet-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpegasd%2Fpuppet-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpegasd%2Fpuppet-cron/lists"}