This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /path/to/rails-quick-start | |
$ bundle install --gemfile rails-quick-start.gemfile | |
--install-path /tmp/rqs/ckbks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle install --gemfile rails-quick-start.gemfile | |
--install-path ~/chef/chef-repo/rails-quick-start/cookbooks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat <<-EOT >/local/stacks/wordpress.gemfile | |
gem "cc-wordpress", :git => "git://github.com/cookbooks/cc-wordpress.git", | |
:ref => 'eb0203133d14587e90f4' | |
gem "cc-mysql", :git => "git://github.com/cookbooks/cc-mysql.git", | |
gem "cc-apache2", :git => "git://github.com/cookbooks/cc-apache2.git" | |
gem "cc-php", :git => "git://github.com/cookbooks/cc-php.git", | |
:branch => "qa" | |
gem "cc-openssl", :git =&> "git://github.com/cookbooks/cc-openssl.git" | |
EOT | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: Processing template[/usr/bin/update_hostname] on chefserver | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: template[/usr/bin/update_hostname] using Chef::Provider::Template | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: looking for template update_hostname.erb in cookbook :hosts | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: Current content's checksum: | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: Rendered content's checksum: f9f61259a32471193a6ccd22d76abcc84377e8a3071ddb314d954125267e379f | |
[Thu, 16 Dec 2010 16:04:53 -0800] INFO: Writing updated content for template[/usr/bin/update_hostname] to /usr/bin/update_hostname | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: setting mode on /tmp/chef-rendered-template20101216-833-1nfiozc-0 to 755 | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: Processing execute[update_hostname] on chefserver | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: execute[update_hostname] using Chef::Provider::Execute | |
[Thu, 16 Dec 2010 16:04:53 -0800] DEBUG: Executing /usr/bin/update_hostname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTNAME=<%= @node_name %> | |
echo "Take one: $CHEF_NODE_NAME" | |
echo "Take two: $HOSTNAME" | |
DOMAIN=taqtik.com | |
hostname $HOSTNAME | |
echo $HOSTNAME> /etc/hostname | |
IPADDR=`ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'` | |
echo $IPADDR >/tmp/ip_current | |
sed -i "s/127.0.0.1[[:space:]]localhost/127.0.0.1 localhost\n$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME\n/g" /etc/hosts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
@cs_box = "chefserver" | |
@cs_nodename = "chefserver" | |
@cs_tld = "domain.com" | |
@cs_ip = "192.168.1.1" # Host-only networking | |
@cs_port = 4000 | |
@cs_ssh_port = 2222 | |
@cs_webui_port = 4040 | |
@cs_kitchen = "/home/hedge/chef/kitchens/ironchef" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
@cs_box = "chefserver" | |
@cs_nodename = "chefserver" | |
@cs_tld = "domain.com" | |
@cs_ip = "192.168.1.1" # Host-only networking | |
@cs_port = 4000 | |
@cs_ssh_port = 2222 | |
@cs_webui_port = 4040 | |
@cs_kitchen = "/home/hedge/chef/kitchens/ironchef" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant provision | |
[chefserver] Provisioning enabled with chef_solo... | |
[chefserver] Provisioning enabled with chef_server... | |
[chefserver] Running provisioner: Vagrant::Provisioners::ChefSolo... | |
[chefserver] Generating chef JSON and uploading... | |
[chefserver] Running chef-solo... | |
[chefserver] stdin: is not a tty | |
: stderr | |
[chefserver] [Wed, 09 Feb 2011 00:49:15 -0800] INFO: Setting the run_list to ["recipe[hosts::chefserver]", "recipe[apt]", "recipe[build-essential]", "recipe[chef::bootstrap_server]"] from JSON | |
[Wed, 09 Feb 2011 00:49:15 -0800] INFO: Starting Chef Run (Version 0.9.12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "apt", | |
:git => "git://github.com/cookbooks/apt.git", | |
:tag => 'qa-latest', :git_decorate => false | |
gem "build-essential", | |
:git => "git://github.com/cookbooks/build-essential.git", | |
:tag => 'qa-latest', :git_decorate => false | |
gem "chef", | |
:git => "git://github.com/cookbooks/chef.git", | |
:tag => 'qa-latest', :git_decorate => false | |
gem "java", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant::Config.run do |config| | |
@cs_box = "chefserver" | |
@cs_nodename = "chefserver" | |
@cs_tld = "taqtik.com" | |
@cs_ip = "192.168.1.1" # Host-only networking | |
@cs_port = 4000 | |
@cs_ssh_port = 2222 | |
@cs_webui_port = 4040 | |
@cs_kitchen = "~/chef/kitchens/ironchef" |