10 lines
281 B
Ruby
10 lines
281 B
Ruby
|
#!/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
|