Provide the task to provision LXC containers.

This commit is contained in:
Kazuhiro MUSASHI 2024-11-03 12:11:14 +09:00
parent c02c9bbb1a
commit b5609d6edd
1 changed files with 9 additions and 0 deletions

9
tasks/lxc.rake Normal file
View File

@ -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