Sha256: 9f034d921db5f605b6c3fd799c0d4dddc6e5408dec3d8afd6d483bc9ed53aa2c

Contents?: true

Size: 924 Bytes

Versions: 11

Compression:

Stored size: 924 Bytes

Contents

bash -c '
(
cat <<EOP
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.ipv4 = 192.168.10.10/24
EOP
) > /etc/lxc/controller

lxc-create -n controller -f /etc/lxc/controller -t lucid-chef

(
cat <<EOP

log_level        :info
log_location     STDOUT
chef_server_url  "<%= @config[:chef_server_url] %>"
validation_client_name "<%= @config[:validation_client_name] %>"
<% if @config[:chef_node_name] == nil %>
# Using default node name"
<% else %>
node_name "<%= @config[:chef_node_name] %>"
<% end %>
EOP
) > /var/lib/lxc/controller/rootfs/etc/chef/client.rb

cat <<EOP
{ "run_list": [ "recipe[cucumber-chef::controller]" ] }
EOP
) > /var/lib/lxc/controller/rootfs/etc/chef/first-boot.json

chroot /var/lib/lxc/controller/rootfs /bin/bash -c "chef-client -j /etc/chef/first-boot.json > /dev/null 2>&1"
lxc-start -d -n controller && sleep 5 && lxc-start -d -n controller'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cucumber-chef-1.0.3 lib/cucumber/chef/templates/controller.erb
cucumber-chef-1.0.2 lib/cucumber/chef/templates/controller.erb
cucumber-chef-1.0.1 lib/cucumber/chef/templates/controller.erb
cucumber-chef-1.0.0 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.5.2 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.5.1 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.5.0 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.4.4 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.4.2 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.4.1 lib/cucumber/chef/templates/controller.erb
cucumber-chef-0.4.0 lib/cucumber/chef/templates/controller.erb