solidnerd / terraform-k8s-hcloud

A simple project to spin your k8s cluster with terraform, kubeadm on hcloud
MIT License
89 stars 37 forks source link

Dynamic wait for lockfile instead of 30s sleep #16

Closed fogs closed 4 years ago

fogs commented 4 years ago

Fixing #15

fogs commented 4 years ago

Actually, a similar improvement seems to be contained in #13 - so no need to merge this if you plan to merge the one from @tillepille.

janthurau commented 4 years ago

Actually this change doesn't fix it for me:

hcloud_server.node[1] (remote-exec): Checking Host Key: false hcloud_server.node[1] (remote-exec): Connected! hcloud_server.node[1] (remote-exec): waiting for lock file /var/lib/apt/lists/lock to be free.. done hcloud_server.node[1] (remote-exec): E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) hcloud_server.node[1] (remote-exec): E: Unable to lock directory /var/lib/apt/lists/

not sure why though, but I'm gonna try out if the change from #13 works for me

Edit: Jup, the other one works

fogs commented 4 years ago

Not sure why this is not working for you, but as #13 just has been rebased, we should get that one merged, so I am closing this PR.