diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-10-04 18:45:52 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2019-07-06 22:31:31 +0200 |
commit | 18629c52f8d3d411cc52208e74bfbfc5862996d4 (patch) | |
tree | 07a9d3249497d2ce8e905db78b5a3858db93c56c /roles/doorputer/files | |
parent | b0c93e842df6aecf1e07adcda3a8771e3f1e9e1e (diff) | |
download | labitat-ansible-18629c52f8d3d411cc52208e74bfbfc5862996d4.tar.gz labitat-ansible-18629c52f8d3d411cc52208e74bfbfc5862996d4.tar.xz labitat-ansible-18629c52f8d3d411cc52208e74bfbfc5862996d4.zip |
doorputer: add role to set up doorputer rpi
Diffstat (limited to 'roles/doorputer/files')
-rw-r--r-- | roles/doorputer/files/eth0.network | 7 | ||||
-rw-r--r-- | roles/doorputer/files/lockserver.service | 15 | ||||
-rw-r--r-- | roles/doorputer/files/motd | 13 |
3 files changed, 35 insertions, 0 deletions
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 |