From 8c5dbc6258cfee9685eccc391ed505d9e8d5eca1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Jun 2016 09:24:01 -0300 Subject: Deploy: run facter as root This gathers more info and also excludes information about the regular user who's running it. --- lib/hydra/deploy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/hydra/deploy b/lib/hydra/deploy index 7a8f2e3..87cc8cf 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -205,8 +205,8 @@ function hydra_deploy_facts_collect { echo "Collecting facts from remote system..." if [ "$1" == "local" ]; then - facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml + $SUDO facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml elif [ "$1" == "remote" ]; then - $HYDRA_CONNECT $FQDN facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml + $HYDRA_CONNECT $FQDN sudo facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml fi } -- cgit v1.2.3