{"id":18727600,"url":"https://github.com/chartbeat-labs/puppet-cron","last_synced_at":"2026-07-08T10:31:21.095Z","repository":{"id":13465018,"uuid":"16154841","full_name":"chartbeat-labs/puppet-cron","owner":"chartbeat-labs","description":"Puppet Module to manage Cron on Debian","archived":false,"fork":false,"pushed_at":"2018-06-13T17:18:20.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-28T20:13:41.432Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chartbeat-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-22T22:34:17.000Z","updated_at":"2018-06-13T17:17:58.000Z","dependencies_parsed_at":"2022-09-23T13:20:33.619Z","dependency_job_id":null,"html_url":"https://github.com/chartbeat-labs/puppet-cron","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chartbeat-labs/puppet-cron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartbeat-labs%2Fpuppet-cron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartbeat-labs%2Fpuppet-cron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartbeat-labs%2Fpuppet-cron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartbeat-labs%2Fpuppet-cron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chartbeat-labs","download_url":"https://codeload.github.com/chartbeat-labs/puppet-cron/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartbeat-labs%2Fpuppet-cron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35262336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"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":[],"created_at":"2024-11-07T14:18:14.252Z","updated_at":"2026-07-08T10:31:21.054Z","avatar_url":"https://github.com/chartbeat-labs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cron\n\nPuppet module for cron.\n\n[![Build Status](https://travis-ci.org/chartbeat-labs/puppet-cron.png)](https://travis-ci.org/chartbeat-labs/puppet-cron)\n\n## Example usage\n\nInclude with default parameters:\n```puppet\ninclude cron\n```\n\nInclude with the singleton pattern:\n```puppet\nclass { '::cron': }\n```\n\nLog both start and end of cronjobs\n```puppet\nclass { '::cron':\n  extra_opts =\u003e '-L 2'\n}\n```\n\n### Cron Jobs\n\nCronjobs are placed in /etc/cron.d. If you want cronjobs to be removed\nautomatically when they are removed from a manifest, instead of having\nto 'ensure =\u003e absent', specify purge_dot_d =\u003e true when instantiating\nthe cron class\n\n```puppet\nclass { '::cron':\n  purge_dot_dir =\u003e true,\n}\n```\n\n*Please note that this is destructive to existing unmanaged cronjobs in\n/etc/cron.d! See Below.*\n\nExample cronjob\n```puppet\ncron::job { 'disk usage':\n  command =\u003e 'df -h',\n  minute =\u003e '0',\n  hour =\u003e '2',\n  environment =\u003e [ 'MAILTO=admin@example.com' ]\n  comment =\u003e \"Send disk usage stats every hour\"\n}\n```\n\n### Purging /etc/cron.d\n\nIf you enable purging of files in /etc/cron.d but you don't want puppet to\npurge cronjobs installed by packages. It is enough that somewhere in your\nmanifest, you specify a file resource for the cronjob in question and ensure\nthat it's present. You don't need to specify any other parameters to the\nfile resource, nor do you need to manage its content.\n\nExample:\n\n```puppet\ninclude foo\n\n# Ensure foo's cronjob isn't purged\nfile { \"${::cron::dot_dir}/foojob\" :\n  ensure =\u003e 'present',\n}\n```\n\n## License\n\nSee [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartbeat-labs%2Fpuppet-cron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchartbeat-labs%2Fpuppet-cron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartbeat-labs%2Fpuppet-cron/lists"}