Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #########################################
- # SECURITY CONNECTION TO MASTER SERVERS #
- #########################################
- cookbook_file "/home/ubuntu/.ssh/id_rsa" do
- source "id_rsa"
- mode "0600"
- end
- execute "Find & clone dta files" do
- user "ubuntu"
- data_bag_name = node[:data_bag_name]
- master_webserver = data_bag_item(data_bag_name, 'master_webserver')
- master_ws_adress = master_webserver['hostname'].to_s
- puts master_ws_adress
- #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/"
- 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"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement