diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-04-22 10:23:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-04-22 10:23:09 -0300 |
commit | 326cfa5a6150d669fdfbd961f5fac75c4779c542 (patch) | |
tree | c00a2b6f6a064e86fcd7da34aa64d23485a6237c | |
parent | 47f31714fbd99d24178125d5a66768c3e1dec21f (diff) | |
download | hydra-326cfa5a6150d669fdfbd961f5fac75c4779c542.tar.gz hydra-326cfa5a6150d669fdfbd961f5fac75c4779c542.tar.bz2 |
Change hydra_deploy_facts_collect regexps
-rw-r--r-- | lib/hydra/deploy | 8 |
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 |