From ee72b182a82158a54a2440dedb09ea89a4de232c Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 11 Jul 2020 17:57:40 +0100 Subject: [PATCH] sshd state as test Signed-off-by: Joe Groocock --- states/sshd/init.sls | 8 ++++++++ states/top.sls | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 states/sshd/init.sls create mode 100644 states/top.sls diff --git a/states/sshd/init.sls b/states/sshd/init.sls new file mode 100644 index 0000000..5008abc --- /dev/null +++ b/states/sshd/init.sls @@ -0,0 +1,8 @@ +openssh-client: + pkg.installed: + - version: latest + +sshd-service: + service.running: + - name: ssh + - enable: true diff --git a/states/top.sls b/states/top.sls new file mode 100644 index 0000000..f48bad7 --- /dev/null +++ b/states/top.sls @@ -0,0 +1,3 @@ +{{ saltenv }}: + '*': + - sshd