Sha256: 29e351120c120ccde7fc02fa64397fe0cf69bc0bed0970352a7d3710fb2681ef
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 KB
Contents
directory "/root/.ssh" do owner "root" mode "0600" end cookbook_file "/root/.ssh/git-key.rsa" do source "git-private-key" end cookbook_file "/root/.ssh/config" do source "permissive-ssh-config" end cookbook_file "/root/.ssh/id_rsa" do source "cucumber-private-key" mode "0600" owner "root" end cookbook_file "/root/.bashrc" do source "add-git-identity" end cookbook_file "/etc/lxc/controller" do source "lxc-controller-network-config" end execute "lxc-create -n controller -f /etc/lxc/controller -t lucid-chef" do not_if {File.exists?("/var/lib/lxc/controller")} end template "/var/lib/lxc/controller/rootfs/etc/chef/client.rb" do source "controller-client.erb" variables( :orgname => node["cucumber-chef"]["orgname"] ) end cookbook_file "/var/lib/lxc/controller/rootfs/etc/chef/first-boot.json" do source "controller-first-boot" end execute 'chroot /var/lib/lxc/controller/rootfs /bin/bash -c "chef-client -j /etc/chef/first-boot.json > /dev/null 2>&1"' do action :run # TODO: Make idempotent perhaps with a node search end execute 'lxc-start -d -n controller' do status = %x[lxc-info -n #{name} 2>&1] not_if {status.include?("RUNNING")} end
Version data entries
5 entries across 5 versions & 1 rubygems