Add recipes, tasks, and etc... for LXC containers. #27

Merged
kazu634 merged 3 commits from lxc-support into main 2024-11-03 03:13:16 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit b5609d6edd - Show all commits

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