From 18629c52f8d3d411cc52208e74bfbfc5862996d4 Mon Sep 17 00:00:00 2001 From: Emil Renner Berthing Date: Thu, 4 Oct 2018 18:45:52 +0200 Subject: doorputer: add role to set up doorputer rpi --- roles/doorputer/files/eth0.network | 7 +++++++ roles/doorputer/files/lockserver.service | 15 +++++++++++++++ roles/doorputer/files/motd | 13 +++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 roles/doorputer/files/eth0.network create mode 100644 roles/doorputer/files/lockserver.service create mode 100644 roles/doorputer/files/motd (limited to 'roles/doorputer/files') diff --git a/roles/doorputer/files/eth0.network b/roles/doorputer/files/eth0.network new file mode 100644 index 0000000..601e041 --- /dev/null +++ b/roles/doorputer/files/eth0.network @@ -0,0 +1,7 @@ +[Match] +Name=eth0 + +[Network] +DHCP=yes +IPv6AcceptRA=yes +LLMNR=yes diff --git a/roles/doorputer/files/lockserver.service b/roles/doorputer/files/lockserver.service new file mode 100644 index 0000000..a09666d --- /dev/null +++ b/roles/doorputer/files/lockserver.service @@ -0,0 +1,15 @@ +[Unit] +Description=Lockserver + +[Service] +Type=simple +User=doorman +WorkingDirectory=/home/doorman +ExecStartPre=/home/doorman/lockserver/init.sh +ExecStart=/home/doorman/lockserver/lockd.py +StandardOutput=syslog +StandardError=inherit +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/roles/doorputer/files/motd b/roles/doorputer/files/motd new file mode 100644 index 0000000..5c83520 --- /dev/null +++ b/roles/doorputer/files/motd @@ -0,0 +1,13 @@ + + _ _ + | | | | + __| | ___ ___ _ __ _ __ _ _| |_ ___ _ __ + / _` |/ _ \ / _ \| '__| '_ \| | | | __/ _ \ '__| +| (_| | (_) | (_) | | | |_) | |_| | || __/ | + \__,_|\___/ \___/|_| | .__/ \__,_|\__\___|_| + | | + |_| + +Open da door: +$ sudo -i +# echo O > /dev/ttyUSB0 -- cgit v1.2.1