WiP: cron and mode change

This commit is contained in:
thomashaw
2018-03-21 22:44:50 +00:00
parent 13e2f89c3f
commit c889b2f2bb
2 changed files with 7 additions and 11 deletions

View File

@@ -172,15 +172,14 @@ class OVirtFunctions
vms = []
ovirt_vm_names = build_ovirt_names(scenario_path, username, vm_names)
Print.std "Searching for VMs owned by #{username}"
Print.std "Searching for VMs owned by #{username} #{ovirt_vm_names}"
ovirt_vm_names.each do |vm_name|
vms << vms_service(ovirt_connection).list(search: "name=#{vm_name}")
end
Print.std "Found VMs: #{vms}"
vms.each do |vm_list|
vm_list.each do |vm|
Print.std " VM: #{vm.name}"
Print.std " Found VM: #{vm.name}"
# find the service that manages that vm
vm_service = vms_service(ovirt_connection).vm_service(vm.id)

View File

@@ -20,10 +20,7 @@
$params += '&language='
end
-%>
if [ ! -f /wps ]; then
curl -L <%= @https ? '-k ': '' %><%= $url_base %>
sleep 10
curl -L --data '<%= $params %>' <%= @https ? '-k ': '' %><%= $url_base %>/wp-admin/install.php?step=2
sleep 10
touch /wps
fi
curl -L <%= @https ? '-k ': '' %><%= $url_base %>
sleep 10
curl -L --data '<%= $params %>' <%= @https ? '-k ': '' %><%= $url_base %>/wp-admin/install.php?step=2
sleep 10