if cmd == :ssh
command = "#{ssh} #{node.name}"
elsif cmd == :mosh
- command = "mosh --ssh \"#{ssh}\" #{node.name}"
+ command = "MOSH_TITLE_NOPREFIX=1 mosh --ssh \"#{ssh}\" #{node.name}"
end
log 2, command
- title = "echo -n \"\\033]0;#{username}@#{node.domain.full}\007\""
- exec "#{title} && #{command}"
+ exec "#{command}"
end
end; end
\ No newline at end of file
task :install_prerequisites, :max_hosts => MAX_HOSTS do
leap.mkdirs LeapCli::PUPPET_DESTINATION
- run "locale-gen"
+ run "echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen; locale-gen"
leap.log :updating, "package list" do
run "apt-get update"
end