certmonger: improve orchestration for puppet4
authorEmilien Macchi <emilien@redhat.com>
Tue, 20 Sep 2016 19:52:18 +0000 (15:52 -0400)
committerEmilien Macchi <emilien@redhat.com>
Tue, 20 Sep 2016 20:17:43 +0000 (16:17 -0400)
commit9b974df7a2a20741b64b72e8980bc47c13b6166c
tree0464cf063b303f367952ef4d93b5c39b6fc24a52
parent6a9429eeda549f85fdb7e3748188046d702852fb
certmonger: improve orchestration for puppet4

The extract-and-trust-ca actually needs /var/lib/certmonger/local/creds
file to be created, which is created when certmonger is started, not
when package is installed.
This patch change the exec dependency to run it only when service is
started.
Also, since the service create the file, let's relax the Exec a little
bit by allowing to retry 5 times after 1s break in case the Exec fails,
for example if service takes more than 5 seconds to create this file.
It will avoid us some race condition in the deployment.

Change-Id: I4cf4a04bddb8f042e8e8f7e1d1b69f846c533e3b
manifests/certmonger/ca/local.pp