chef-lxc
chef-lxc copied to clipboard
Create & manage containers inside chef recipes
Hi @ranjib
Thank you for this great work. I'm trying to create and manage containers using chef-lxc. I have one question : how do I change the template options from the recipe? If I use the example you provided like this:
require 'chef/lxc'
lxc "web" do
template "download"
action [:create, :start]
end
I get trusty/amd64 containers. What if I want to change that? is there away to do it using the same recipe?
Regards, Jafar
I did dig into the sources and found it could be done like this:
template 'download' do
args ['-d', 'ubuntu', '-r', 'trusty', '-a', 'amd64']
end
Thanks!