Browse Source

Merge "Handle failed nodes when enabling ssh admin" into stable/queens

tags/8.7.1
Zuul 1 month ago
parent
commit
7b3dad2d0e
1 changed files with 7 additions and 3 deletions
  1. 7
    3
      workbooks/access.yaml

+ 7
- 3
workbooks/access.yaml View File

@@ -99,14 +99,18 @@ workflows:
99 99
     tasks:
100 100
       get_servers:
101 101
         action: nova.servers_list
102
-        on-success: create_admin
102
+        with-items: server in <% $.ssh_servers %>
103
+        input:
104
+          search_opts:
105
+            ip: <% $.server %>
103 106
         publish:
104
-          servers: <% let(root => $) -> task().result._info.where($.addresses.ctlplane.addr.any($ in $root.ssh_servers)) %>
107
+          servers: <% task().result._info %>
108
+        on-success: create_admin
105 109
 
106 110
       create_admin:
107 111
         workflow: tripleo.deployment.v1.deploy_on_server
108 112
         on-success: get_privkey
109
-        with-items: server in <% $.servers %>
113
+        with-items: server in <% $.servers.flatten() %>
110 114
         input:
111 115
           server_name: <% $.server.name %>
112 116
           server_uuid: <% $.server.id %>

Loading…
Cancel
Save