From 24497f4e7202d825b9037713f210a56abe9378d5 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 | 7 +++++++ states/top.sls | 3 +++ 2 files changed, 10 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..39b8862 --- /dev/null +++ b/states/sshd/init.sls @@ -0,0 +1,7 @@ +sshd: + pkg.installed: + - name: openssh-client + - version: latest + 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