Skip to content

Instantly share code, notes, and snippets.

@alexharv074
Created December 11, 2013 04:52
Show Gist options
  • Save alexharv074/7905234 to your computer and use it in GitHub Desktop.
Save alexharv074/7905234 to your computer and use it in GitHub Desktop.
[root@master ~]# export FACTER_operatingsystem=blah
[root@master ~]# puppet apply -e 'notify { "${::osfamily}": }'
Notice: Linux
Notice: /Stage[main]//Notify[Linux]/message: defined 'message' as 'Linux'
Notice: Finished catalog run in 0.24 seconds
[root@master ~]# unset FACTER_operatingsystem
[root@master ~]# puppet apply -e 'notify { "${::osfamily}": }'
Notice: RedHat
Notice: /Stage[main]//Notify[RedHat]/message: defined 'message' as 'RedHat'
Notice: Finished catalog run in 0.23 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment