You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tasks/README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Puppet Task Spec (Version 1)
1
+
# Puppet Task Spec (version 1, revision 4)
2
2
3
3
The Puppet Task ecosystem allows users to execute actions on target systems. A **Task** is the smallest component of this system capturing a single action that can be taken on a target and is - in its simplest form - an executable file. It is packaged and distributed as Puppet modules which are made available to the task runner.
4
4
@@ -17,14 +17,25 @@ The Puppet Task ecosystem allows users to execute actions on target systems. A *
17
17
18
18
## Puppet Task Spec Versioning
19
19
20
-
The task spec has a version and a revision. Changes that would break existing tasks will increment the version of the task spec. The revision of the task spec functions as a minor version and will be incremented for new features. The spec will document which revision a feature was added in.
21
-
22
-
Orchestrator shipped in PE 2017.3 supports version 1 rev 1. [Bolt] supports version 1 rev 2.
20
+
The task spec has a version and a revision. Changes that break existing tasks increment the version of the task spec. Revisions function as a minor version and are incremented for new features. This spec indicates in parentheticals the revision number for new features, for example "Running remote tasks (rev 4)."
23
21
24
22
Older versions of the task runner may not support tasks that rely on newer features of the task spec. The task spec version is not intended to capture this now. Authors should use the `puppet_task_version` field in the module's metadata to document such incompatibilities for users.
25
23
26
24
Task Runners should document which version and revision of the task spec they support.
27
25
26
+
### Revision history
27
+
28
+
These are the revisions to this version of the task spec.
29
+
30
+
**Note**: Bolt generally uses the latest version and revision of the task spec. Puppet Enterprise versions use a specific version and revision of the task spec, indicated below.
31
+
32
+
| Revision | Changes |
33
+
|----------|--------------------------|
34
+
| 1 ||
35
+
| 2 | Cross-platform tasks. |
36
+
| 3 | Multiple files per task. |
37
+
| 4 | Hide private tasks. |
38
+
28
39
## Task packaging and file
29
40
30
41
Tasks are packaged and distributed in the `/tasks` directory of a Puppet module. Any file in the top level of that directory with a valid name is considered a task. In addition to tasks, task authors may create a metadata file for the task with the same name and a `.json` extension.
0 commit comments