Skip to content

Commit

Permalink
sys: Retry certificate fetching (#57)
Browse files Browse the repository at this point in the history
* sys: Retry certificate fetching

* sys: cert-fetch wait for network
  • Loading branch information
hectorhuertas committed Dec 4, 2018
1 parent a705357 commit 142a519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cert-fetcher/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ data "ignition_systemd_unit" "cert-fetch-service" {
content = <<EOS
[Unit]
Description=Fetch new certificates from cfssl server
After=network-online.target
[Service]
Type=oneshot
ExecStart=/opt/bin/cfssl-new-cert
ExecStart=/bin/sh -c 'while ! /opt/bin/cfssl-new-cert; do echo "cfssl not ready, sleeping 5 seconds";sleep 5; done'
[Install]
WantedBy=multi-user.target
EOS
Expand Down

0 comments on commit 142a519

Please sign in to comment.