macos

brew install findutils
export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"

sshj

By default should already be set from keys. On new node it won't be set until keys are monted.

FACTER_SSHJ_SPEC=something ./run

coding snippets

case $::os['name'] {
  'Archlinux': {
    file { '/etc/pacman.conf':
      source => 'puppet:///modules/kpi/pacman.conf',
    }
    exec {"pacman -Sy":
      provider => shell,
      user => 'root',
      onlyif => '[ $(( $(date +%s) - $(stat -c %Y /var/lib/pacman/sync) )) -gt 1000 ]',
    }
  }
}