diff --git a/CHANGELOG.md b/CHANGELOG.md index 3867ddc..b1db735 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## TBC - Next + +- Adds `cleanup` task + + ## 2018-10-14 Release 0.5.0 - Update package install error handling for compatbility with diff --git a/README.md b/README.md index e4426d0..8be4209 100644 --- a/README.md +++ b/README.md @@ -314,6 +314,16 @@ using the correct locale. Overrides the detection of the operating system on Sabayon systems to `Sabayon`. +### Tasks + +This module includes tasks for ad-hoc use with Puppet Bolt or Choria. + +### `cleanup` + +This task executes `equo cleanup` command on the target nodes, which frees up +disk space used by cached package downloads. It does not accept any parameters, +and does not support running noop mode. + ## Limitations This module is actively used by the developer against current Sabayon versions. diff --git a/tasks/cleanup.json b/tasks/cleanup.json new file mode 100644 index 0000000..b3e1a03 --- /dev/null +++ b/tasks/cleanup.json @@ -0,0 +1,7 @@ +{ + "puppet_task_version": 1, + "supports_noop": false, + "description": "Run `equo cleanup` on target nodes to free up disk space used by downloaded packages", + "parameters": { + } +} diff --git a/tasks/cleanup.sh b/tasks/cleanup.sh new file mode 100644 index 0000000..c9de99b --- /dev/null +++ b/tasks/cleanup.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/bin/equo cleanup +