mofa 0.3.11 → 0.3.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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