Add cleanup task

This commit is contained in:
2019-05-08 22:10:09 +01:00
parent f95631312f
commit 0291282ee2
4 changed files with 25 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
## TBC - Next
- Adds `cleanup` task
## 2018-10-14 Release 0.5.0 ## 2018-10-14 Release 0.5.0
- Update package install error handling for compatbility with - Update package install error handling for compatbility with

View File

@@ -314,6 +314,16 @@ using the correct locale.
Overrides the detection of the operating system on Sabayon systems to `Sabayon`. 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 ## Limitations
This module is actively used by the developer against current Sabayon versions. This module is actively used by the developer against current Sabayon versions.

7
tasks/cleanup.json Normal file
View File

@@ -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": {
}
}

3
tasks/cleanup.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
/usr/bin/equo cleanup