scheduled_task
Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
Start using this module
Add this module to your Puppetfile:
mod 'puppetlabs-scheduled_task', '4.0.1'
Learn more about managing modules with a PuppetfileDocumentation
scheduled_task
Table of Contents
- Description
- Setup - The basics of getting started with scheduled_task
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- License
- Development - Guide for contributing to the module
Description
This module adds a new scheduled_task provider capable of using the more modern Version 2 Windows API for task management. The legacy API does not receive improvements or new features, meaning that if you want to take advantage of improvements to scheduled tasks on Windows you need to use the V2 API.
Setup
Beginning with scheduled_task
The scheduledtask module adapts the Puppet scheduled_task resource to run using a modern API.
To get started, install the module and any existing scheduled_task
resources will use the V2 API by default.
If you want to continue using the provider for the legacy API you will _need to declare that in your manifests.
For example:
scheduled_task { 'Run Notepad':
command => "notepad.exe",
...
provider => 'win32_taskscheduler',
}
Usage
Scheduled tasks are commonly used to kick off a script either once or on a regular cadence. In this first example we schedule a cleanup script to run this one time.
scheduled_task { 'Disk Cleanup': # Unique name for the scheduled task
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true', # This is the default, but including it is good practice. Flip to 'false' to disable the task.
trigger => [{
schedule => 'once', # Defines the trigger type; required.
start_time => '23:20', # Defines the time the task should run; required.
start_date => '2018-01-01' # Defaults to the current date; not required.
}],
}
If we need to have the cleanup script run every night we can use a daily trigger.
Just changing the trigger schedule from once
to daily
will do the trick.
Note that we removed the start_date
from the trigger - it isn't required and, for this task, isn't important.
scheduled_task { 'Disk Cleanup Nightly':
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
schedule => 'daily',
start_time => '23:20'
}],
}
You can also set your scheduled tasks to repeat during a set time block. Using the cleanup script again, this scheduled task begins at the same time every day and runs once an hour from seven in the morning to seven at night as the SYSTEM account.
scheduled_task { 'Disk Cleanup Daily Repeating':
ensure => 'present',
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
'schedule' => 'daily',
'start_time' => '07:00',
'minutes_duration' => '720', # Specifies the length of time, in minutes, the task is active
'minutes_interval' => '60' # Causes the task to run every hour
}],
user => 'system', # Specifies the account to run the task as
}
The downside to that task is that it causes the cleanup script to run every day, even on the weekends when there is no activity. We can instead use a weekly trigger to fix this:
scheduled_task { 'Disk Cleanup Weekly Repeating':
ensure => 'present',
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
'schedule' => 'weekly',
'start_time' => '07:00',
'day_of_week' => ['mon', 'tues', 'wed', 'thurs', 'fri'], # Note the absence of Saturday and Sunday
'minutes_interval' => '60',
'minutes_duration' => '720'
}],
user => 'system',
}
Similarly, we can schedule our cleanup script to run monthly if we decide the cleanup script doesn't need to run as often or is particularly resource intensive. The following example sets the scheduled task to run at 0700 on the first day of the month every month:
scheduled_task { 'Disk Cleanup Monthly First Day':
ensure => 'present',
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
'schedule' => 'monthly',
'start_time' => '07:00',
'on' => [1] # Run every month on the first day of the month.
}],
user => 'system',
}
With the monthly trigger above there is no guarantee that the first day of the month is on a weekend. This means that there's a reasonable chance that the script will execute during working hours and impact productivity. We can specify the trigger to run on the task on the first saturday of the month instead of the first day:
scheduled_task { 'Disk Cleanup Monthly First Saturday':
ensure => 'present',
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
'schedule' => 'monthly',
'start_time' => '07:00',
'day_of_week' => 'sat', # Specify the day of the week to trigger on
'which_occurence' => 'first' # Specify which occurance to trigger on, up to fifth
}],
user => 'system',
}
You might also want a task to run every time the computer boots.
scheduled_task { 'Disk Cleanup On Restart':
ensure => 'present',
compatibility => 2,
command => "$::system32\\WindowsPowerShell\\v1.0\\powershell.exe",
arguments => '-File "C:\\Scripts\\Clear-DiskSpace.ps1"',
enabled => 'true',
trigger => [{
'schedule' => 'boot',
'minutes_interval' => '60',
'minutes_duration' => '720'
}],
user => 'system',
}
- Note: Duration properties like
minutes_duration
andminutes_interval
must havecompatibility => 2
or higher specified forboot
triggers. Windows does not support those options at the "Windows XP or Windows Server 2003 computer" compatibility level which is the default when compatibility is left unspecified.
If you want a task to run at logon, use the logon
trigger:
scheduled_task { 'example_notepad':
compatibility => 2,
command => 'C:\\Windows\\System32\\notepad.exe',
trigger => [{
schedule => 'logon',
user_id => 'MyDomain\\SomeUser'
}],
}
Reference
Provider
- win32_taskscheduler: This legacy provider manages scheduled tasks on Windows imitating the legacy API.
- taskscheduler_api2: Adapts the Puppet scheduled_task resource to use the modern Version 2 API.
Type
scheduled_task
Installs and manages Windows Scheduled Tasks.
All attributes except name
, command
, and trigger
are optional; see the description of the trigger
attribute for details on setting schedules.
name
The name assigned to the scheduled task.
This will uniquely identify the task on the system.
If specifying a scheduled task inside of subfolder(s), specify the path from root, such as subfolder\\mytaskname
.
This will create the scheduled task mytaskname
in the container named subfolder
.
You can only specify a taskname inside of subfolders if the compatibility is set to 2 or higher and when using the taskscheduler2_api provider.
ensure
The basic property that the resource should be in.
Valid values are present
, absent
.
arguments
Any arguments or flags that should be passed to the command. Multiple arguments should be specified as a space-separated string.
command
The full path to the application to run, without any arguments.
description
The description of the scheduled task.
enabled
Whether the triggers for this task should be enabled. This attribute affects every trigger for the task; triggers cannot be enabled or disabled individually.
Valid values are true
, false
.
password
The password for the user specified in the 'user' attribute. This is only used if specifying a user other than 'SYSTEM'. This parameter will not be used to determine if a scheduled task is in sync or not because there is no way to retrieve the password used to set the account information for a task.
compatibility
This provider feature is only available with the taskscheduler_api2
provider.
The compatibility level associated with the task. Defaults to 1 for backward compatibility. Can be set to:
1
for compatibility with tasks on a Windows XP or Windows Server 2003 computer2
for compatibility with tasks on a Windows 2008 computer3
for compatibility with new features for tasks introduced in Windows 7 and 2008R24
for compatibility with new features for tasks introduced in Windows 8, Server 2012R2 and Server 20166
for compatibility with new features for tasks introduced in Windows 10- NOTE: This compatibility setting is not documented and we recommend that you do not use it.
See the Microsoft documentation on compatibility levels and their differences for more information.
provider
The specific backend to use for this scheduled_task resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.
Available providers are:
win32_taskscheduler
This legacy provider manages scheduled tasks on Windows using the v2 api but only manages scheduled tasks whose compatibility level is set to 1 (Windows XP or Windows Server 2003). It is a backward compatible update and replaces the provider of the same name in Puppet core.
taskscheduler_api2
This provider manages scheduled tasks on Windows using the v2 api and can manage scheduled tasks of any compatibility level.
- Default for
operatingsystem
==windows
.
trigger
One or more triggers defining when the task should run. A single trigger is represented as a hash, and multiple triggers can be specified with an array of hashes.
A trigger can contain the following keys:
For all triggers:
schedule
(Required) — What kind of trigger this is. Valid values aredaily
,weekly
,monthly
,once
,boot
, orlogon
. Each kind of trigger is configured with a different set of keys; see the sections below (once triggers only need a start time/date.)start_time
(Required except forboot
) — The time of day when the trigger should first become active. Several time formats will work, but we suggest 24-hour time formatted as HH:MM.start_date
— The date when the trigger should first become active. Defaults to the current date. You should format dates as YYYY-MM-DD, although other date formats may work (under the hood, this uses Date.parse).minutes_interval
— The repeat interval in minutes.minutes_duration
— The duration in minutes, needs to be greater than the minutes_interval.- For daily triggers:
every
— How often the task should run, as a number of days. Defaults to 1. "2" means every other day, "3" means every three days, etc.
- For weekly triggers:
every
— How often the task should run, as a number of weeks. Defaults to 1. "2" means every other week, "3" means every three weeks, etc.day_of_week
— Which days of the week the task should run, as an array. Defaults to all days. Each day must be one ofmon
,tues
,wed
,thurs
,fri
,sat
,sun
, orall
.
- For monthly (by date) triggers:
months
— Which months the task should run, as an array. Defaults to all months. Each month must be an integer between 1 and 12.on
(Required) — Which days of the month the task should run, as an array. Each day must be an integer between 1 and 31.- The string
last
may be used in the array for this property to trigger a task to run on the last day of each selected month. This feature is only available for tasks with compatibility level2
or higher.
- The string
- For monthly (by weekday) triggers:
months
— Which months the task should run, as an array. Defaults to all months. Each month must be an integer between 1 and 12.day_of_week
(Required) — Which day of the week the task should run, as an array with only one element. Each day must be one ofmon
,tues
,wed
,thurs
,fri
,sat
,sun
, orall
.which_occurrence
(Required) — The occurrence of the chosen weekday when the task should run. Must be one offirst
,second
,third
,fourth
, orlast
.
- For
logon
triggers:user_id
--- Theuser_id
specifies which user this task will trigger for when they logon. If unspecified, or if specified asundef
or an empty string, the task will trigger whenever any user logs on. This property can be specified in one of the following formats:- Local User:
"Administrator"
- Domain User:
"MyDomain\\MyUser"
- SID:
"S-15-..."
- Any User:
''
orundef
- Local User:
user
The user to run the scheduled task as. Defaults to 'SYSTEM'.
Please also note that Puppet must be running as a privileged user in order to manage scheduled_task
resources.
Running as an unprivileged user will result in 'access denied' errors.
working_dir
The full path of the directory in which to start the command.
Limitations
For a full list of supported OS, check metadata.json.
License
This codebase is licensed under the Apache2.0 licensing, however due to the nature of the codebase the open source dependencies may also use a combination of AGPL, BSD-2, BSD-3, GPL2.0, LGPL, MIT and MPL Licensing.
Development
Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can't access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve, therefore want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. If you would like to contribute to this module, please follow the rules in the CONTRIBUTING.md. For more information, see our module contribution guide..
Reference
Table of Contents
Resource types
scheduled_task
: Installs and manages Windows Scheduled Tasks.
Resource types
scheduled_task
Installs and manages Windows Scheduled Tasks.
- Note All attributes except
name
,command
, andtrigger
are optional; see the description of thetrigger
attribute for details on setting schedules."
Properties
The following properties are available in the scheduled_task
type.
arguments
Any arguments or flags that should be passed to the command. Multiple arguments should be specified as a space-separated string.
command
The full path to the application to run, without any arguments.
compatibility
Valid values: 1
, 2
, 3
, 4
, 5
, 6
The compatibility level associated with the task. May currently be set to 1 for compatibility with tasks on a Windows XP or Windows Server 2003 computer, 2 for compatibility with tasks on a Windows 2008 computer, 3 for compatibility with new features for tasks introduced in Windows 7 and 2008R2, 4 for compatibility with new features for tasks introduced in Windows 8, Server 2012R2 and Server 2016, or 5 / 6 for compatibility with new features for tasks introduced in Windows 10
Default value: 1
description
The description of the scheduled task.
enabled
Valid values: true
, false
Whether the triggers for this task should be enabled. This attribute affects every trigger for the task; triggers cannot be enabled or disabled individually.
Default value: true
ensure
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
trigger
One or more triggers defining when the task should run. A single trigger is represented as a hash, and multiple triggers can be specified with an array of hashes.
A trigger can contain the following keys:
- For all triggers:
schedule
(Required) --- What kind of trigger this is. Valid values aredaily
,weekly
,monthly
, oronce
. Each kind of trigger is configured with a different set of keys; see the sections below. (once
triggers only need a start time/date.)start_time
(Required) --- The time of day when the trigger should first become active. Several time formats will work, but we suggest 24-hour time formatted as HH:MM.start_date
--- The date when the trigger should first become active. Defaults to the current date. You should format dates as YYYY-MM-DD, although other date formats may work. (Under the hood, this usesDate.parse
.)minutes_interval
--- The repeat interval in minutes.minutes_duration
--- The duration in minutes, needs to be greater than the minutes_interval.disable_time_zone_synchronization
--- Whether or not to disable thesynchronise across time zones
function. Due to difficulties with the api this is non idempotent. Defaults to false
- For
daily
triggers:every
--- How often the task should run, as a number of days. Defaults to 1. ("2" means every other day, "3" means every three days, etc.)
- For
weekly
triggers:every
--- How often the task should run, as a number of weeks. Defaults to 1. ("2" means every other week, "3" means every three weeks, etc.)day_of_week
--- Which days of the week the task should run, as an array. Defaults to all days. Each day must be one ofmon
,tues
,wed
,thurs
,fri
,sat
,sun
, orall
.
- For
monthly
(by date) triggers:months
--- Which months the task should run, as an array. Defaults to all months. Each month must be an integer between 1 and 12.on
(Required) --- Which days of the month the task should run, as an array. Each day must be an integer between 1 and 31 or the stringlast
. The stringlast
is only supported for tasks with level 2 compatibility or higher.
- For
monthly
(by weekday) triggers:months
--- Which months the task should run, as an array. Defaults to all months. Each month must be an integer between 1 and 12.day_of_week
(Required) --- Which day of the week the task should run, as an array with only one element. Each day must be one ofmon
,tues
,wed
,thurs
,fri
,sat
,sun
, orall
.which_occurrence
(Required) --- The occurrence of the chosen weekday when the task should run. Must be one offirst
,second
,third
,fourth
, orfifth
.
- For
logon
triggers:user_id
--- Theuser_id
specifies which user this task will trigger for when they logon. If unspecified, or if specified asundef
or an empty string, the task will trigger whenever any user logs on. This property can be specified in one of the following formats:- Local User:
"Administrator"
- Domain User:
"MyDomain\\MyUser"
- SID:
"S-15-..."
- Any User:
''
orundef
- Local User:
Examples:
# Run once on January 1, 2018, at 11:20PM
trigger => {
schedule => 'once',
start_time => '23:20', # Defines the time the task should run; required.
start_date => '2018-01-01' # Defaults to the current date; not required.
}
# Run daily at 11:20PM
trigger => {
schedule => 'daily',
start_time => '23:20'
}
# Run every day at 7:00AM and once per hour until 7:00PM
trigger => {
'schedule' => 'daily',
'start_time' => '07:00',
'minutes_duration' => '720', # Specifies the length of time, in minutes, the task is active
'minutes_interval' => '60' # Causes the task to run every hour
}
# Run every weekday at 7:00AM and once per hour until 7:00PM
# Will NOT run on Saturday/Sunday
trigger => {
'schedule' => 'weekly',
'start_time' => '07:00',
'day_of_week' => ['mon', 'tues', 'wed', 'thu', 'fri'], # Note the absence of Sunday and Monday
'minutes_interval' => '60',
'minutes_duration' => '720'
}
# Run on the first of every month at 7:00AM
trigger => {
'schedule' => 'monthly',
'start_time' => '07:00',
'on' => [1] # Run every month on the first day of the month.
}
# Run on the first _Saturday_ of every month at 7:00AM
trigger => {
'schedule' => 'monthly',
'start_time' => '07:00',
'day_of_week' => 'sat', # Specify the day of the week to trigger on
'which_occurence' => 'first' # Specify which occurance to trigger on, up to fifth
}
# Run on boot, then once per hour for 12 hours
trigger => {
'schedule' => 'boot',
'minutes_interval' => '60', # This setting in can only be used with compatibility 2 or higher
'minutes_duration' => '720' # This setting in can only be used with compatibility 2 or higher
}
# Run whenever MyDomain\\SomeUser logs onto the computer
trigger => {
schedule => 'logon',
user_id => 'MyDomain\\SomeUser'
}
user
The user to run the scheduled task as. Please note that not all security configurations will allow running a scheduled task as 'SYSTEM', and saving the scheduled task under these conditions will fail with a reported error of 'The operation completed successfully'. It is recommended that you either choose another user to run the scheduled task, or alter the security policy to allow v1 scheduled tasks to run as the 'SYSTEM' account. Defaults to 'SYSTEM'.
Please also note that Puppet must be running as a privileged user
in order to manage scheduled_task
resources. Running as an
unprivileged user will result in 'access denied' errors.
If a user is specified without an accompanying password, and the
user does not end with a dollar sign ($
) signifying a Group
Managed Service Account (gMSA), the task will be created with
Run only when user is logged on
specified.
Default value: system
working_dir
The full path of the directory in which to start the command.
Parameters
The following parameters are available in the scheduled_task
type.
name
namevar
The name assigned to the scheduled task. This will uniquely
identify the task on the system. If specifying a scheduled task
inside of subfolder(s), specify the path from root, such as
subfolder/mytaskname
. This will create the scheduled task
mytaskname
in the container named subfolder
. You can only
specify a taskname inside of subfolders if the compatibility is
set to 2 or higher and when using the taskscheduler2_api provider.
password
The password for the user specified in the 'user' attribute. This is only used if specifying a user other than 'SYSTEM'. Since there is no way to retrieve the password used to set the account information for a task, this parameter will not be used to determine if a scheduled task is in sync or not.
provider
The specific backend to use for this scheduled_task
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v4.0.1 - 2024-12-17
Fixed
- (CAT-2180) Upgrade rexml to address CVE-2024-49761 #260 (amitkarsale)
v4.0.0 - 2023-04-18
Changed
v3.2.0 - 2023-03-24
Added
- Control scheduled task description field #220 (dwjvaughan)
v3.1.1 - 2022-10-03
Fixed
- (MAINT) Dropped support for Windows(7,8,8.1, 2008 Server and 2008 R2 Server) #215 (jordanbreen28)
v3.1.0 - 2022-05-17
Added
- Make disable_time_zone_synchronization idempotent #207 (omolenkamp)
- pdksync - (FM-8922) - Add Support for Windows 2022 #204 (david22swan)
v3.0.1 - 2021-06-14
Fixed
v3.0.0 - 2021-03-03
Changed
- pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0 #180 (carabasdaniel)
v2.3.1 - 2020-12-18
Fixed
- (MODULES-10893) Fix Last Day Of Month Trigger #175 (RandomNoun7)
v2.3.0 - 2020-12-16
Added
- pdksync - (feat) - Add support for Puppet 7 #169 (daianamezdrea)
Fixed
v2.2.1 - 2020-08-26
Fixed
- (bugfix) - fix
disable_time_zone_synchronization
so that it correctly disables functionality when set to true #161 (david22swan)
v2.2.0 - 2020-08-24
Added
- pdksync - (IAC-973) - Update travis/appveyor to run on new default branch
main
#154 (david22swan) - (IAC-732) - implement `Run only when user is logged on #150 (david22swan)
Fixed
- (MODULES-10783) Add back empty? check for
datetime_string
value #158 (sanfrancrisko)
v2.1.0 - 2020-07-24
Added
- (IAC-918) -
disable_time_zone_synchronization
function implemented #145 (david22swan)
v2.0.1 - 2020-02-12
Fixed
- (MODULES-10101) Use RunOnLastWeekOfMonth for which_occurrence = last #119 (sanfrancrisko)
v2.0.0 - 2019-08-15
Changed
- (MODULES-9370) Raise Supported Puppet lower bound from 4.9.0 to 5.5.10 #88 (michaeltlombardi)
Added
- (MODULES-7203) Support nonroot task folders #83 (michaeltlombardi)
1.0.1 - 2019-03-04
Added
- (FM-7693) Add Windows Server 2019 #75 (glennsarti)
Fixed
1.0.0 - 2018-09-10
0.4.0 - 2018-08-23
Added
Fixed
- (MODULES-7240) Setting User For A Task Fails #60 (RandomNoun7)
0.3.0 - 2018-05-25
Added
- (MODULES-6267) Implement Boot Trigger #42 (RandomNoun7)
Fixed
0.2.0 - 2018-05-08
Changed
Added
- (MODULES-6526) Confine compatibility to a feature #30 (michaeltlombardi)
- (MODULES-6526) Add setter for compatibility #25 (michaeltlombardi)
- (MODULES-6526) Add compatibility in task type #24 (michaeltlombardi)
- (MODULES-6844) Add v2-only helper #22 (michaeltlombardi)
Fixed
- (MODULES-7026) Ensure timezones other than UTC work #33 (Iristyle)
- (MODULES-6268) Fix error when switching monthly trigger types #17 (glennsarti)
- (MODULES-6398) Fix error message on invalid day_of_week trigger #16 (glennsarti)
Other
- (MODULES-7071) Remove random_minutes_interval #29 (Iristyle)
- (MODULES-6895) Fix Trigger require / autoload reloading #28 (Iristyle)
- (MODULES-6845) Allow provider to read / modify V2 tasks #27 (Iristyle)
- (MODULES-6895) Refactor provider code to Trigger #21 (Iristyle)
- (MODULES-6591) Restore v1 type / provider, make v2 provider default for v1 types #14 (Iristyle)
- (MODULES-6843) Refactor Trigger code from V1 -> V2 adapter class #13 (Iristyle)
- (MODULES-6362) Update tests for Server 2016 Core #10 (glennsarti)
0.1.0 - 2018-01-12
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Quality checks
We run a couple of automated scans to help you assess a module’s quality. Each module is given a score based on how well the author has formatted their code and documentation and select modules are also checked for malware using VirusTotal.
Please note, the information below is for guidance only and neither of these methods should be considered an endorsement by Puppet.
Malware scan results
The malware detection service on Puppet Forge is an automated process that identifies known malware in module releases before they’re published. It is not intended to replace your own virus scanning solution.
Learn more about malware scans- Module name:
- puppetlabs-scheduled_task
- Module version:
- 4.0.1
- Scan initiated:
- December 16th 2024, 22:24:25
- Detections:
- 0 / 61
- Scan stats:
- 61 undetected
- 0 harmless
- 0 failures
- 0 timeouts
- 0 malicious
- 0 suspicious
- 15 unsupported
- Scan report:
- View the detailed scan report