Add and configure foreman