Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #########################################
  2. # SECURITY CONNECTION TO MASTER SERVERS #
  3. #########################################
  4. cookbook_file "/home/ubuntu/.ssh/id_rsa" do
  5. source "id_rsa"
  6. mode "0600"
  7. end
  8.  
  9. execute "Find & clone dta files" do
  10. user "ubuntu"
  11. data_bag_name = node[:data_bag_name]
  12. master_webserver = data_bag_item(data_bag_name, 'master_webserver')
  13. master_ws_adress = master_webserver['hostname'].to_s
  14. puts master_ws_adress
  15. #command "rsync -e -i /home/ubuntu/.ssh/id_rsa 'ssh -o StrictHostKeyChecking=no' -av ubuntu@"+master_ws_adress+":/var/www/website/sharedassets/data /tmp/dta/"
  16. command "rsync -ave 'ssh -i /home/ubuntu/.ssh/id_rsa -o StrictHostKeyChecking=no' ubuntu@"+master_ws_adress+":/var/www/website/sharedassets/data /usr/local/clubgalactik/externalresources/items/dta"
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement