This file contains 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
derpy:~/kitchen/hadoop-demo/cookbooks/hadoop-demo$ berks upload | |
Using hadoop-demo (0.1.0) at path: '/Users/someara/kitchen/hadoop-demo/cookbooks/hadoop-demo' | |
Using hadoop (0.10.0) at path: '/Users/someara/src/hadoop' | |
Using fqdn (0.1.2) at path: '/Users/someara/src/fqdn' | |
Using yum (2.1.0) at path: '/Users/someara/src/yum' | |
Using java (1.9.2) at path: '/Users/someara/src/java' | |
Using emacs (0.8.4) | |
Using apt (1.9.0) | |
Using ohai (1.1.8) | |
Using line (0.2.9) |
This file contains 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
# Managed by Chef for <%= node['hostname'] %> | |
Alias / /srv/apache/myface/ | |
<Directory /srv/apache/myface > | |
Options FollowSymLinks +Indexes | |
Allow from All | |
</Directory> |
This file contains 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
/* A table for myface users */ | |
CREATE TABLE users | |
( | |
id CHAR (32) NOT NULL, | |
PRIMARY KEY(id), | |
user_name VARCHAR(64), | |
neck_beard INTEGER | |
); |
This file contains 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 up --no-provision BOXNAME | |
% vagrant ssh BOXNAME | |
vagrant$ export http_proxy="proxy.you.com:8000" | |
vagrant$ export https_proxy="proxy.you.com:8000" | |
vagrant$ echo "10.9.8.7 cher-server.your.lap chef-server >> /etc/hosts" | |
vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash | |
vagrant$ rm /tmp/chef*{rpm,deb} | |
vagrant$ exit | |
% vagrant package BOXNAME | |
% rm -rf ~/.vagrant.d/boxes/BOXNAME |
This file contains 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
root@localhost:~# shef -s | |
loading configuration: none (standalone shef session) | |
Session type: solo | |
Loading.[2013-01-19T19:22:31+00:00] INFO: Run List is [] | |
[2013-01-19T19:22:31+00:00] INFO: Run List expands to [] | |
done. | |
This is shef, the Chef shell. | |
Chef Version: 10.18.0 | |
http://www.opscode.com/chef |
This file contains 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
99/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_,------, | |
99/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_| /\_/\ | |
0/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-^|__( - .-) | |
0/99: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- "" "" |
This file contains 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
root@slackberry:~# time ohai | |
{ | |
"languages": { | |
"ruby": { | |
"platform": "arm-linux-eabi", | |
"version": "1.9.3", | |
"release_date": "2012-04-20", | |
"target": "arm-slackware-linux-gnueabi", | |
"target_cpu": "arm", | |
"target_vendor": "slackware", |
This file contains 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
template "/tmp/file1" do | |
action :create | |
# mode "00666" | |
notifies :create, 'template[/tmp/file2]' | |
end | |
template "/tmp/file2" do | |
action :nothing | |
notifies :run, 'execute[hack the planet]' | |
end |
This file contains 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
# | |
# Cookbook Name:: line | |
# Recipe:: default | |
# | |
# Copyright 2008-2009, Opscode, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains 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
[root@myface vagrant]# chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json --why-run --color | |
Starting Chef Client, version 10.16.2 | |
Compiling cookbooks | |
.................................done. | |
Converging 108 resources | |
108/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-__,------, | |
108/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-__| /\_/\ | |
0/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_~|_( - .-) | |
0/108: -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ "" "" |