I wonder if we shouldn't add this into init.pp instead, and pin it between foreman::config and foreman::database.  At the moment it looks to be undefined as to whether it's before or after the DB.