Add equo update task
This commit is contained in:
11
tasks/update.json
Normal file
11
tasks/update.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"puppet_task_version": 1,
|
||||
"supports_noop": false,
|
||||
"description": "Run `equo update` on target nodes to refresh repository definitions",
|
||||
"parameters": {
|
||||
"repo": {
|
||||
"description": "Restrict update to only this named repository",
|
||||
"type": "Optional[Pattern[/^[a-zA-Z0-9._-]+$/]]"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
tasks/update.sh
Normal file
7
tasks/update.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -z "${PT_repo}" ]; then
|
||||
/usr/bin/equo update "${PT_repo}"
|
||||
else
|
||||
/usr/bin/equo update
|
||||
fi
|
||||
Reference in New Issue
Block a user