aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-22 10:23:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-22 10:23:09 -0300
commit326cfa5a6150d669fdfbd961f5fac75c4779c542 (patch)
treec00a2b6f6a064e86fcd7da34aa64d23485a6237c /lib
parent47f31714fbd99d24178125d5a66768c3e1dec21f (diff)
downloadhydra-326cfa5a6150d669fdfbd961f5fac75c4779c542.tar.gz
hydra-326cfa5a6150d669fdfbd961f5fac75c4779c542.tar.bz2
Change hydra_deploy_facts_collect regexps
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/deploy8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index dd26199..7e2d40b 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -245,10 +245,10 @@ function hydra_deploy_facts_collect {
$SUDO facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml
elif [ "$1" == "remote" ]; then
$HYDRA_CONNECT $FQDN sudo facter --yaml | \
- grep -v -e "^ seconds" -e "^ hours" -e "^ days" -e "^ uptime" \
- -e "^ uptime" -e "^ system_uptime" -e "^ memoryfree" -e "^ swapfree_mb" \
- -e "^ memorysize" -e "^ swapfree" -e "^ seconds" -e "^ hours" \
- -e "^ days" -e "^ uptime_" -e "^ macaddress" \
+ grep -v -e '^ *seconds' -e '^ *hours' -e '^ *days' -e '^ *uptime' \
+ -e '^ *uptime' -e '^ *system_uptime' -e '^ *memoryfree' -e '^ *swapfree_mb' \
+ -e '^ *memorysize' -e '^ *swapfree' -e '^ *seconds' -e '^ *hours' \
+ -e '^ *days' -e '^ *uptime_' -e '^ *macaddress' \
> $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml
# Check result