hw-cookbooks / lxc

Linux Containers via Chef
58 stars 49 forks source link

Allow lxc.aa_profile #38

Closed MSch closed 11 years ago

MSch commented 11 years ago

I want to be able to set lxc.aa_profile for a container. Currently there's not way to do that.

Maybe you could expose a way to add arbitrary config lines?

chrisroberts commented 11 years ago
lxc_container 'fubar' do
  ...
  config do
    aa_profile 'my_profile'
  end
end

That should get you there!

MSch commented 11 years ago

@chrisroberts Thanks that works fine!

One more question though, I need to also set lxc.hook.mount, I didn't find any way to set hook properties.

Is there one?