Provide the task to provision LXC containers.
This commit is contained in:
parent
c02c9bbb1a
commit
b5609d6edd
|
@ -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
|
Loading…
Reference in New Issue