Salt Stack based two-phase deployment system