fixes #4280 - support for foreman_setup
fixes #4278 - policy for foreman_discovery