File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
spec/acceptance/peadm_spec/plans Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 44 $t = get_targets(' *' )
55 wait_until_available($t )
66
7- parallelize($t ) |$target | {
8- $fqdn = run_command(' hostname -f' , $target )
9- $target .set_var(' certname' , $fqdn .first[' stdout' ].chomp)
10- $command = " yq eval '(.groups[].targets[] | select(.uri == \" ${target.uri}\" ).name) = \" ${target.vars['certname']}\" ' -i ${inventory_file} "
11- run_command($command , ' localhost' )
12- }
7+ await(
8+ parallelize($t ) |$target | {
9+ $fqdn = run_command(' hostname -f' , $target )
10+ $target .set_var(' certname' , $fqdn .first[' stdout' ].chomp)
11+ $command = " yq eval '(.groups[].targets[] | select(.uri == \" ${target.uri}\" ).name) = \" ${target.vars['certname']}\" ' -i ${inventory_file} "
12+ run_command($command , ' localhost' )
13+ }
14+ )
15+ notify { 'Inventory updated' : }
1316}
You can’t perform that action at this time.
0 commit comments