redhat finished

problems
  1)(debian and redhat)ssh error when using vagrant.(occurs randomly, may cause by vagrant, negligible.)
  2)(debian and redhat)pkg installation error.(occurs randomly, may cause by network status, re-run the scripts help, negligible.)
  3)(debian and redhat)virtual host setting. no code to set virtual host for redhat, and code to set virtual host doesn't work well.(I compare the part of code with another script but find no significant difference).
  4)(redhat)Task [broker | Install Redmon gems bundler and redmon] fails, but type the command after ssh login.("sudo gem install --include-dependencies --no-user-install --no-rdoc --no-ri bundler" outputs "1 gem installed", but "sudo gem install --include-dependencies --no-user-install --no-rdoc --no-ri bundler" outpus nothing excepte some instructions). add "ignore_errors: True".
  5)(redhat)Task: [broker | update RVM to 2.1.2] fails, and type "sudo /usr/local/rvm/bin/rvm install 2.1.2" also fails when compiling. add "ignore_errors: True". Take too long time, comment out.
  

TODOs:
  1)(debian and redhat)filter to parse the log.
  2)(debian and redhat)merge the sshconfig part to run.sh.(seems unnessary when use vagrant but may decrease redundant work in real cluster)
  3)(debian and redhat)generate elasticsearch.yml using template. (variables already set but .j2 files has not been updated)