From 30feab01123c6cf77dd980b026ad045cba9c9d8a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 16 Jun 2016 16:49:49 -0300 Subject: Deploy: fix /etc/puppet permissions --- doc/todo.rst | 1 - lib/hydra/deploy | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/todo.rst b/doc/todo.rst index 21246c0..504248e 100644 --- a/doc/todo.rst +++ b/doc/todo.rst @@ -9,6 +9,5 @@ TODO - fact collection. - lockfile. - keys and certs. - - fix /etc/puppet permissions. - check hostname and required node configuration. - log applied version and date (in the node and so in the repo). diff --git a/lib/hydra/deploy b/lib/hydra/deploy index 70a8a67..748263c 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -12,6 +12,9 @@ function hydra_deploy_setup { # Ensure keystore existence mkdir -p $HYDRA_FOLDER/puppet/keys + # Fix puppet folder permissions + chmod 700 $HYDRA_FOLDER/puppet + if [ "$1" == "remote" ]; then # Deploy in a remote host if [ ! -z "$2" ]; then -- cgit v1.2.3