Sha256: 6e41a4831089e55a824e315a649c3ca7f3f294e1df8e418648d5b3454e5b715b

Contents?: true

Size: 359 Bytes

Versions: 10

Compression:

Stored size: 359 Bytes

Contents

# create the containers defined in the ['lxc']['containers'] hash

include_recipe "lxc"

node['lxc']['containers'].each do | name, container |
  Chef::Log.info "Creating LXC container name:#{name}"
  lxc_container name do
    container.each do |meth, param|
      self.send(meth, param)
    end
    action :create unless container.has_key?(:action)
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagabond-0.2.8 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.2.6 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.2.4 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.2.2 lib/vagabond/cookbooks/lxc/recipes/containers.rb
elecksee-1.0.2 lib/elecksee/vendor/lxc/recipes/containers.rb
elecksee-1.0.0 lib/elecksee/vendor/lxc/recipes/containers.rb
vagabond-0.2.0 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.1.4 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.1.2 lib/vagabond/cookbooks/lxc/recipes/containers.rb
vagabond-0.1.0 lib/vagabond/cookbooks/lxc/recipes/containers.rb