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