I was recently looking for a solution to the following question:
How can I get my iPhone to always connect to my VPN except when at home?
This led to this article from Thomas Witt discussing how to do this with a profile.
This in turn linked to this very simple github repository with a generator for L2TP profiles.
Have generated, installed and tested - and it works just as I want it to :)