https://github.com/teknoir/device_watchdog_patch
Teknoir Watchdog = Keep-alive scripts for the device
https://github.com/teknoir/device_watchdog_patch
Last synced: 7 months ago
JSON representation
Teknoir Watchdog = Keep-alive scripts for the device
- Host: GitHub
- URL: https://github.com/teknoir/device_watchdog_patch
- Owner: teknoir
- Created: 2023-01-10T15:41:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T07:04:43.000Z (over 2 years ago)
- Last Synced: 2025-01-30T08:43:02.148Z (8 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Teknoir Device Watchdog patch
Teknoir Watchdog = Keep-alive scripts for the device
The patch is applied with AnsibleFor Teknoir Ansible plugins see:
* https://github.com/teknoir/ansible (running from local)
* https://github.com/teknoir/ansible-notebook (running from notebook, already installed)
* https://github.com/teknoir/ansible-kubeflow (running from kubeflow)The patch is meant to be run with:
* https://github.com/teknoir/device-patch-workflowTo run:
1. Create a flow in a devstudio, starting with a "inject"-node to a "function"-node with:
```javascript
msg.payload = { "args": {
"playbook_git_repo": "https://github.com/teknoir/device_watchdog_patch.git",
"playbook_path": "playbook-watchdog_patch.yaml",
"ansible_limit": "rpi4-8gb-black",
"add_device_label": "watchdog=enabled"
}};
return msg;
```
2. Connect that to a run pipeline node where you select the "Device Patch Workflow"-pipeline.
3. Deploy the flow!
4. And trigger the job with the "inject"-node.## List devices
```bash
ansible --list-hosts all
```## Patch devices from a notebook
```bash
ansible-playbook -v -i inventory.py playbook-watchdog_patch.yaml --limit avangard_production-hd-vm-00016,avangard_production-hd-vm-00034,avangard_production-hd-vm-00078
```