Revision history [back]

Please check cloud-init documentation & it will be helpful. It does exactly what you are looking for.