From 1a92fae0189b122869eb054059ea740ac474d267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iwan=20Cl=C3=A9ment?= Date: Sat, 28 Apr 2018 11:48:54 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20du=20r=C3=A9pertoire=20/root/.s?= =?UTF-8?q?sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linux/SSHPubKeys.sls | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/linux/SSHPubKeys.sls b/linux/SSHPubKeys.sls index 1e9271a..a0a04e8 100644 --- a/linux/SSHPubKeys.sls +++ b/linux/SSHPubKeys.sls @@ -1,3 +1,11 @@ +Creation of directory /root/.ssh: + directory.managed: + - name: /root/.ssh + - mode: '0700' + - user: root + - group: root + - makedirs: True + Creation of file /root/.ssh/authorized_keys: file.managed: - name: /root/.ssh/authorized_keys