From c9a6ec3b6051647874cb656609891923f8beead6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 14 Nov 2017 09:09:22 +0000 Subject: [PATCH] Check pyenv permissions --- modules/common/manifests/init.pp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/common/manifests/init.pp b/modules/common/manifests/init.pp index 0b321b6..31ab40c 100644 --- a/modules/common/manifests/init.pp +++ b/modules/common/manifests/init.pp @@ -18,4 +18,8 @@ class common { command => 'archlinux-java set intellij-jdk', unless => 'archlinux-java get | grep intellij-jdk' } + exec {'pyenv directory permissions': + command => 'chown -R jake:users /opt/pyenv', + unless => 'getfacl /opt/pyenv | grep "owner: jake"' + } }