aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/deploy4
1 files changed, 2 insertions, 2 deletions
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
}