set layout as an env var for userdata

So that I can used it from the Puppetfile to restrict
what modules are installed for what layouts. Otherwise,
I want to limit the modules that are used.

Also centralizes default code so that we don't have to
specify it multiple times.