Skip to content

Commit

Permalink
Merge branch 'main' into fix-fleet-server-tokens
Browse files Browse the repository at this point in the history
* main:
  chore: double wait time for SSH (elastic#2066)
  • Loading branch information
mdelapenya committed Jan 28, 2022
2 parents ad87b88 + a176d63 commit 5cffc9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def getMachineInfo(workspace, platform){
}

def ansible(workspace, run_id, args){
pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}")
withOtelEnv() {
pyrun("ansible-playbook --private-key=\"${workspace}/e2essh\" --extra-vars=\"workspace=${workspace}/ runId=${run_id} sshPublicKey=${workspace}/e2essh.pub\" --ssh-common-args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' ${workspace}/.ci/ansible/playbook.yml ${args}")
}
}


Expand Down
2 changes: 2 additions & 0 deletions .ci/ansible/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[defaults]
callbacks_enabled = community.general.opentelemetry
6 changes: 5 additions & 1 deletion .ci/ansible/tasks/wait_for_ssh.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
- name: Wait for SSH to come up
wait_for: host={{ inventory_hostname }} port=22 delay=10 timeout=60
wait_for:
host: "{{ inventory_hostname }}"
port: 22
delay: 10
timeout: 120

0 comments on commit 5cffc9f

Please sign in to comment.