added a section to run cloud-setup-management - in the course of doing that I added an ensure file present for the database directory, and then wrapped cloud-setup-management with a requires on the file. That should make cloud-setup-databases run first, and then permit cloud-setup-management to run. I also created a creates on the management setup log file - this is less than ideal because it assumes that the management server was configured right the first time, and won't require subsequent runnings. I suppose that's perhaps a valid assumption at least for our purposes
added a section to run cloud-setup-management - in the course of doing that I added an ensure file present for the database directory, and then wrapped cloud-setup-management with a requires on the file. That should make cloud-setup-databases run first, and then permit cloud-setup-management to run. I also created a creates on the management setup log file - this is less than ideal because it assumes that the management server was configured right the first time, and won't require subsequent runnings. I suppose that's perhaps a valid assumption at least for our purposes

tuxmea/puppet-cloudstack,ke4qqq/puppet-cloudstack