<commit_before>
node.set[:vagrant][:url] = "https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb"
node.set[:vagrant][:checksum] = "9d7f1c587134011e2d5429eb21b6c0e95487f52e6d6d47c03ecc82cbeee73968"

include_recipe "vagrant"

install_vagrant_plugin "vagrant-cachier", "1.1.0"
install_vagrant_plugin "vagrant-berkshelf", "4.0.2"
install_vagrant_plugin "vagrant-omnibus", "1.4.1"
install_vagrant_plugin "vagrant-toplevel-cookbooks", "0.2.3"
install_vagrant_plugin "vagrant-lxc", "1.0.1"

# vagrant-lxc setup
%w{ lxc lxc-templates cgroup-lite redir }.each do |pkg|
  package pkg
end
bash_profile "set-vagrant-default-provider" do
  user devbox_user
  content "export VAGRANT_DEFAULT_PROVIDER=lxc"
end
bash "add vagrant-lxc sudoers permissions" do
  environment devbox_user_env
  code "vagrant lxc sudoers"
  not_if { ::File.exists? "/etc/sudoers.d/vagrant-lxc" }
end

template "#{devbox_userhome}/.vagrant.d/Vagrantfile" do
  source "Vagrantfile.erb"
  owner devbox_user
  group devbox_group
  mode "0644"
end
<commit_msg>update to vagrant-lxc 1.1.0 and install brigde-utils for private networking support with vagrant-lxc<commit_after>
node.set[:vagrant][:url] = "https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb"
node.set[:vagrant][:checksum] = "9d7f1c587134011e2d5429eb21b6c0e95487f52e6d6d47c03ecc82cbeee73968"

include_recipe "vagrant"

install_vagrant_plugin "vagrant-cachier", "1.1.0"
install_vagrant_plugin "vagrant-berkshelf", "4.0.2"
install_vagrant_plugin "vagrant-omnibus", "1.4.1"
install_vagrant_plugin "vagrant-toplevel-cookbooks", "0.2.3"
install_vagrant_plugin "vagrant-lxc", "1.1.0"

# vagrant-lxc setup
%w{ lxc lxc-templates cgroup-lite redir bridge-utils }.each do |pkg|
  package pkg
end
bash_profile "set-vagrant-default-provider" do
  user devbox_user
  content "export VAGRANT_DEFAULT_PROVIDER=lxc"
end
bash "add vagrant-lxc sudoers permissions" do
  environment devbox_user_env
  code "vagrant lxc sudoers"
  not_if { ::File.exists? "/etc/sudoers.d/vagrant-lxc" }
end

template "#{devbox_userhome}/.vagrant.d/Vagrantfile" do
  source "Vagrantfile.erb"
  owner devbox_user
  group devbox_group
  mode "0644"
end

{'fraction_non_alphanumeric': 0.12037037037037036, 'fraction_numerical': 0.06342592592592593, 'mean_word_length': 5.8386075949367084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '188267', 'n_tokens_mistral': 1006, 'n_tokens_neox': 940, 'n_words': 157}