Commit c3308df5 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] wait for frontend when configuring

Ansible allows us to wait for the node to become available, which should
allow us to launch the `configure` command as soon as `create --wait`

Uses default wait_for_connection module, which should poll for 10

Requires that we disable gather_fact, and reactivate it after the
connection succeeds.
parent 76694f1e
......@@ -146,7 +146,12 @@ def do_configure(argv):
confpath = os.path.join(mypath, 'ansible')
playbook = ('---\n'
'- hosts: all\n'
' gather_facts: no\n'
' tasks:\n'
' - name: Wait for frontend\n'
' wait_for_connection:\n'
' - name: Gather info about frontend\n'
' setup:\n'
' - name: Ensure dependencies are installed\n'
' package:\n'
' name: "{{ item }}"\n'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment