Skip to content

Instantly share code, notes, and snippets.

@adrienthebo
Forked from binford2k/facter forkbomb
Created March 18, 2016 17:22
Show Gist options
  • Save adrienthebo/c5b814ffd21c2ab20c8e to your computer and use it in GitHub Desktop.
Save adrienthebo/c5b814ffd21c2ab20c8e to your computer and use it in GitHub Desktop.
root@master:/etc/puppetlabs/facter/facts.d # cat foo.sh
#! /bin/sh
FACT=$(facter hostname)
echo "foo=${FACT}"
root@master:/etc/puppetlabs/facter/facts.d # chmod +x foo.sh
root@master:/etc/puppetlabs/facter/facts.d # facter ipaddress
<hangs and explodes>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment