- deploy:
- lockfile.
- check for sudo config at the remote site.
- - facts: filter transient states such as uptime.
- compile:
- per-node compiled file.
- backups: automatic definitions for per-node backup::users.
+- plugins support using lookup paths.
if [ "$1" == "local" ]; then
$SUDO facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml
elif [ "$1" == "remote" ]; then
- $HYDRA_CONNECT $FQDN sudo facter --yaml > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml
+ $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" \
+ > $HYDRA_FOLDER/puppet/config/facts/$FQDN.yaml
# Check result
if [ "$?" != "0" ]; then