mofa 0.3.35 → 0.3.37
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 +5 -3
- data/lib/mofa/version.rb +1 -1
- metadata +2 -2
data/lib/mofa/provision_cmd.rb
CHANGED
@@ -206,11 +206,13 @@ class ProvisionCmd < MofaCmd
|
|
206
206
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
207
207
|
out = ssh_exec!(ssh, "echo #{chef_solo_runs[hostname]['status']}| sudo tee /var/lib/mofa/last_status")
|
208
208
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
209
|
-
out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/
|
209
|
+
out = ssh_exec!(ssh, "echo '#!/bin/bash' | sudo tee /usr/bin/mofa_log && echo 'cat /var/lib/mofa/last_run/log' | sudo tee -a /usr/bin/mofa_log && sudo chmod 755 /usr/bin/mofa_log")
|
210
210
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
211
|
-
out = ssh_exec!(ssh, "sudo
|
211
|
+
out = ssh_exec!(ssh, "sudo find #{solo_dir} -type d | xargs chmod 700")
|
212
212
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
213
|
-
out = ssh_exec!(ssh, "
|
213
|
+
out = ssh_exec!(ssh, "sudo find #{solo_dir} -type f | xargs chmod 600")
|
214
|
+
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
215
|
+
out = ssh_exec!(ssh, "date '+%Y-%m-%d %H:%M:%S' | sudo tee -a /var/lib/mofa/last_timestamp")
|
214
216
|
puts "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
215
217
|
end
|
216
218
|
end
|
data/lib/mofa/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.37
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-03-
|
12
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|