When you run certonly mode on a server that has never had SSL certs before, it doesn't work.
You have to manually reload apache and then run it again for it to to work.
I don't know why.
In this pull request, I have attempted to correct the ordering in the salt files but it still doesn't work.
I wonder if it's a timing problem; it seems to try and get the cert very soon after reloading apache. Do we need a delay before getting the cert?
However, sometimes I also seem to have manually reload apache myself before it works. Could it be the reload in the salt script isn't doing a proper reload?
When you run certonly mode on a server that has never had SSL certs before, it doesn't work.
You have to manually reload apache and then run it again for it to to work.
I don't know why.
In this pull request, I have attempted to correct the ordering in the salt files but it still doesn't work.
I wonder if it's a timing problem; it seems to try and get the cert very soon after reloading apache. Do we need a delay before getting the cert?
However, sometimes I also seem to have manually reload apache myself before it works. Could it be the reload in the salt script isn't doing a proper reload?