Skip to content

Commit

Permalink
Use Ansible plugin to wait for SSH readiness
Browse files Browse the repository at this point in the history
This, uh, replaces the other timeout setting we just added.
  • Loading branch information
LRitzdorf committed Jun 28, 2024
1 parent dd9be0a commit d4cdb91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ FROM rockylinux:8.9
LABEL org.opencontainers.image.authors="Lucas Ritzdorf <[email protected]>"

# Define API base URLs
## Ansible connection timeout; this will vary by system
ENV ANSIBLE_TIMEOUT=300
## OPAAL server for auth token provisioning
ENV OPAAL_URL=http://opaal:3333
## SMD server for node inventory retrieval
Expand Down
8 changes: 8 additions & 0 deletions ansible/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@
- name: securely push cloud-init jwt to nodes
hosts: all
gather_facts: false
tasks:
- name: wait for node ssh setup
hosts: all
ansible.builtin.wait_for_connection:
connect_timeout: 300
delay: 30
sleep: 5
timeout: 300
roles:
- role: tpm_secrets
vars:
Expand Down

0 comments on commit d4cdb91

Please sign in to comment.