auto is ser2net client and server

This commit is contained in:
do
2020-11-10 13:53:30 +01:00
parent 2cfc782a27
commit fc73f02ad3
5 changed files with 160 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
ser2net_server-pkgs:
pkg.installed:
- pkgs:
- ser2net
ser2net-conf:
file.managed:
- name: /etc/ser2net.conf
- user: root
- mode: 0644
- contents: |
#SALT managed
3333:raw:0:/dev/ttyAMA0:115200 8DATABITS NONE 1STOPBIT
ser2net-service:
service.running:
- name: ser2net
- enable: True
- reload: True
- require:
- file: /etc/ser2net.conf
- watch:
- file: /etc/ser2net.conf