diff --git a/tasks/ubuntu.rake b/tasks/ubuntu.rake new file mode 100755 index 0000000..0a2cea7 --- /dev/null +++ b/tasks/ubuntu.rake @@ -0,0 +1,9 @@ +#!/usr/bin/env rake + +desc 'Invoke itamae command for the first time' +task :ubuntu do + node = `ls -1 nodes/*.json | xargs -I % basename % .json | fzf` + node.chomp! + + sh "ITAMAE_PASSWORD=musashi bundle ex itamae ssh -u ubuntu -i ~/.ssh/amazon.pem --host #{node} -j nodes/#{node}.json entrypoint.rb" +end