Fail at first boot if time can't be synced

Fail at first boot if time can't be synced for some reasons.  It's
better to fail here than laster on because keystone can't authenticate
at the end of the deployment.

Change-Id: Ib4c139c76959271f12e795a7eef13e52dd0782d7
This commit is contained in:
David Hill 2022-03-22 09:08:49 -04:00
parent 89655ab8b4
commit 6d0033c958

View File

@ -71,7 +71,7 @@ resources:
str_replace: str_replace:
template: | template: |
#!/bin/bash #!/bin/bash
set -x set -xe
if [ "$service" = "chrony" ]; then if [ "$service" = "chrony" ]; then
if command -v chronyc >/dev/null; then if command -v chronyc >/dev/null; then
chronyc makestep chronyc makestep