Change in $facts variable.

For compatibility with the new $facts hash, changed the old $facts in $foreman_facts
See:
http://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#the-facts-hash