https://github.com/projectweekend/pi-fab
Fabric script for automating various tasks on the Raspberry Pi.
https://github.com/projectweekend/pi-fab
Last synced: 6 months ago
JSON representation
Fabric script for automating various tasks on the Raspberry Pi.
- Host: GitHub
- URL: https://github.com/projectweekend/pi-fab
- Owner: projectweekend
- License: mit
- Created: 2016-02-02T02:46:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-09T03:24:41.000Z (over 10 years ago)
- Last Synced: 2025-02-01T19:29:53.160Z (over 1 year ago)
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Fabric](http://www.fabfile.org/) script for automating various tasks on the Raspberry Pi.
### Usage
```
fab --hosts=ip_or_hostname_for_pi name_of_task
```
### Tasks
* `update_upgrade` - Performs `sudo apt-get update` then `sudo apt-get upgrade -y`.
* `reboot` - Reboot
* `halt` - Halt
* `install_node:node_version:pi_version` - Download and install [Node.js](https://nodejs.org). `node_version` is the version of Node.js to install. Example: `4.2.6`. `pi_version` is the version of the Raspberry Pi board. Use a `2` for the [Raspberry Pi 2 Model B](https://www.raspberrypi.org/products/raspberry-pi-2-model-b/), otherwise leave blank for older boards.
### Docker
This project includes a [Dockerfile](https://docs.docker.com/engine/reference/builder/) and [docker-compose.yml](https://docs.docker.com/compose/compose-file/) to use this project without having to install Fabric locally.
```
docker-compose run fab --hosts=ip_or_hostname_for_pi name_of_task
```