diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-06-24 09:24:01 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-06-24 09:24:01 -0300 |
commit | 8c5dbc6258cfee9685eccc391ed505d9e8d5eca1 (patch) | |
tree | 272c34cc81186f22be1bf239f967658da2f0755b /lib | |
parent | 0da1b5282d18982e28e8648c40e0e9e014782962 (diff) | |
download | hydra-8c5dbc6258cfee9685eccc391ed505d9e8d5eca1.tar.gz hydra-8c5dbc6258cfee9685eccc391ed505d9e8d5eca1.tar.bz2 |
Deploy: run facter as root
This gathers more info and also excludes information about the
regular user who's running it.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/deploy | 4 |
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 } |