https://github.com/ricco386/ansible-raspberry-pi
Ansible role to configure Raspberry Pi
https://github.com/ricco386/ansible-raspberry-pi
Last synced: 7 months ago
JSON representation
Ansible role to configure Raspberry Pi
- Host: GitHub
- URL: https://github.com/ricco386/ansible-raspberry-pi
- Owner: ricco386
- License: mit
- Created: 2019-12-19T18:07:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T17:53:42.000Z (over 4 years ago)
- Last Synced: 2024-12-28T05:23:21.016Z (over 1 year ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Ansible role for Raspberry Pi initial setup
===========================================
Ansible role for initial Raspberry Pi setup. Installing a monitor script for Raspberry Pi to find out Raspberry Pi specific parameters values. Role will install raspi-monitor script that can monitor:
* board version
* board revision
* board serialnumber
* firmware version
* cpu voltage
* cpu clock
* cpu memmory
* cpu temperature
* gpu memmory
Role Variables
--------------
Script deployment path:
``rpi_monitor_script: /usr/local/sbin/raspi-monitor``
UserParameters to be checked by Zabbix Agent:
``zabbix_agent_userparameters:
- {name: "rpi.boardversion", command: "sudo {{ rpi_monitor_script }} boardversion"}
- {name: "rpi.boardrevision", command: "sudo {{ rpi_monitor_script }} boardrevision"}
- {name: "rpi.boardserialnumber", command: "sudo {{ rpi_monitor_script }} boardserialnumber"}
- {name: "rpi.cpuvoltage", command: "sudo {{ rpi_monitor_script }} cpuvoltage"}
- {name: "rpi.cpuclock", command: "sudo {{ rpi_monitor_script }} cpuclock"}
- {name: "rpi.cpumem", command: "sudo {{ rpi_monitor_script }} cpumem"}
- {name: "rpi.firmwareversion", command: "sudo {{ rpi_monitor_script }} firmwareversion"}
- {name: "rpi.gpumem", command: "sudo {{ rpi_monitor_script }} gpumem"}
- {name: "rpi.temperature", command: "sudo {{ rpi_monitor_script }} temperature"}``
Dependencies
------------
None
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters):
.. code-block::
- hosts: all
roles:
- raspberry-pi-zabbix
Zabbix Template
---------------
Zabbix template ``raspberry-pi-zabbix_template.xml`` is stored in meta directory. You can import this template into your Zabbix in order to start monitoring your Raspberry Pi.
License
-------
MIT
Author Information
------------------
Created by Richard von Kellner (`@RicCo386 `_).
Contributing
------------
Contributions are welcome!
Submit issues, ideas or pull requests on GitHub at `https://github.com/ricco386/ansible-raspberry-pi`_.