2
0
mirror of https://github.com/schnidrig/openhab-ansible synced 2026-01-12 00:48:46 +01:00
Files
openhab-ansible/README.md
Christian Schnidrig 3a665afb54 initial commit
2016-11-29 00:08:10 +01:00

43 lines
1017 B
Markdown

# openhab-ansible
Ansible playbooks to setup openhab on a raspberry pi. It'll install mosquitto and mqttwarn as well. Mqttwarn is configured to send data to graphite.
## Prepare Raspberry Pi
### Install raspian
Download it from [https://www.raspberrypi.org/downloads/raspbian/](https://www.raspberrypi.org/downloads/raspbian/)
Unzip and copy it onto an sdcard
e.g on a mac with sdcard reader that would be:
sudo dd bs=1m if=2016-09-23-raspbian-jessie-lite.img of=/dev/rdiskXYZ
Insert sdcard into rasberry pi and boot.
### Configure fixed ip address
Edit the file `/etc/dhcpcd.conf` and add the following lines (according to your network) and reboot.
interface eth0
static ip_address=192.168.1.5/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
### User setup
- Change password of user pi.
- Install ssh public key for user pi
## Run ansible playbook
Edit group_vars/all/vault.
Check/change other values in group_vars
ansible-playbook -i inventory raspi.yml