<commit_before>%w{lxc bridge-utils debootstrap}.each do |pkg|
  package "#{pkg}"
end

bash "Set up networking" do
  code <<-EOH
brctl addbr br0
ifconfig br0 192.168.20.1 up
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1
EOH
  not_if "ip link ls dev br0"
end

directory "/cgroup" do
  action :create
end

mount "/cgroup" do
  device "cgroup"
  fstype "cgroup"
  pass 0
  action [:mount, :enable]
end

template "/usr/bin/lxc-lucid-chef" do
  source "lxc-lucid-chef.erb"
  mode "0755"
  variables( :orgname => node["cucumber-chef"]["orgname"] )
  action :create
end<commit_msg>consolidated lxc setup into the lxc recipe<commit_after>%w{lxc bridge-utils debootstrap}.each do |pkg|
  package "#{pkg}"
end

bash "Set up networking" do
  code <<-EOH
brctl addbr br0
ifconfig br0 192.168.20.1 up
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1
EOH
  not_if "ip link ls dev br0"
end

directory "/cgroup" do
  action :create
end

mount "/cgroup" do
  device "cgroup"
  fstype "cgroup"
  pass 0
  action [:mount, :enable]
end

directory "/etc/lxc"

cookbook_file "/etc/lxc/controller" do
  source "lxc-controller-network-config"
end

cookbook_file "/etc/lxc/install-chef.sh" do
  source "lxc-install-chef"
  mode "0755"
end

template "/usr/bin/lxc-lucid-chef" do
  source "lxc-lucid-chef.erb"
  mode "0755"
  variables(:orgname => node["cucumber-chef"]["orgname"])
  action :create
end
{'fraction_non_alphanumeric': 0.12629399585921325, 'fraction_numerical': 0.03036576949620428, 'mean_word_length': 3.849498327759197, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3417384', 'n_tokens_mistral': 619, 'n_tokens_neox': 591, 'n_words': 168}