mofa 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/provision_cmd.rb +2 -0
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
data/lib/mofa/provision_cmd.rb
CHANGED
@@ -202,6 +202,8 @@ class ProvisionCmd < MofaCmd
|
|
202
202
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
203
203
|
out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']}| sudo tee /var/lib/mofa/last_status")
|
204
204
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
205
|
+
out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofalog && echo 'cat /var/lib/mofa/last_run' | sudo tee -a /usr/bin/mofalog && sudo chmod 755 /usr/bin/mofalog")
|
206
|
+
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
205
207
|
end
|
206
208
|
end
|
207
209
|
at_least_one_chef_solo_run_failed = true if chef_solo_runs[hostname]['status'] == 'FAIL'
|
data/lib/mofa/version.rb
CHANGED