Adapted the code to new new salt cloud configuration approach.