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
UID PID PPID C STIME TTY TIME CMD | |
root 1 0 0 21:32 ? 00:00:00 /sbin/init | |
root 2 0 0 21:32 ? 00:00:00 [kthreadd] | |
root 3 2 0 21:32 ? 00:00:00 [ksoftirqd/0] | |
root 6 2 0 21:32 ? 00:00:00 [migration/0] | |
root 7 2 0 21:32 ? 00:00:00 [watchdog/0] | |
root 8 2 0 21:32 ? 00:00:00 [migration/1] | |
root 10 2 0 21:32 ? 00:00:00 [ksoftirqd/1] | |
root 12 2 0 21:32 ? 00:00:00 [watchdog/1] | |
root 13 2 0 21:32 ? 00:00:00 [cpuset] |
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
chef:recipe > search(:role, "name:*") do |r| | |
chef:recipe > puts r.inspect | |
chef:recipe ?> end | |
=> true | |
chef:recipe > |
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
Welcome to MyFace! | |
<html><head><title>MyFace Users</title></head><body> | |
<?php | |
$db_host = 'localhost'; | |
$db_user = 'root'; | |
$db_pwd = '<%= node['mysql']['server_root_password'] %>'; | |
$database = 'myface'; | |
$table = 'users'; |
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
package 'foo' fo | |
action :install | |
end | |
template '/etc/foo' do | |
notifies :restart, 'service[foo]' | |
end | |
# this will be started, then restarted on the first chef-client run | |
service 'foo' do |
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:: myface | |
# Recipe:: default | |
# | |
# Copyright (C) 2012 Sean OMeara | |
# | |
# Apache 2 license | |
# | |
user 'myface' |
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
unless ::File.exists('/asdljasdljkasdlkajsd') do | |
file "/tmp/hello" do | |
content "hi there\n" | |
end | |
end | |
vs | |
file "/tmp/hello" do | |
content "hi there\n" |
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
hi |
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:~$ gem install vagrant | |
Building native extensions. This could take a while... | |
ERROR: Error installing vagrant: | |
ERROR: Failed to build gem native extension. | |
/Users/someara/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb | |
checking for re.h... no | |
checking for ruby/st.h... yes | |
creating Makefile |
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:~$ ssh ubuntu@176.34.36.150 | |
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-virtual i686) | |
* Documentation: https://help.ubuntu.com/ | |
System information as of Mon Sep 24 21:23:53 UTC 2012 | |
System load: 0.01 Processes: 66 | |
Usage of /: 9.0% of 9.99GB Users logged in: 1 | |
Memory usage: 14% IP address for eth0: 10.152.151.236 |
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 recipe is a unit of intent. | |
include_recipe "custom_app::torrent_thefile" | |
# testing for a condition it the compile phase... | |
# the is not normally necessary. | |
unless File.dirname(node['custom_app']['thefile']).exists? | |
include_recipe "custom_app::server" | |
end |