Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am someara on github.
  • I am someara (https://keybase.io/someara) on keybase.
  • I have a public key ASApYXGkBHJu7BQuP5jJ2sFdG12cug2Mo2zgx7kvu_39Xgo

To claim this, I am signing this object:

View two_restarts.rb
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
View gist:24edc8b969207fb55d7b
# container A
template '/some/Dockerfile' do
action :create
end
template '/some/file' do
action :create
end
docker_image 'databass' do
View gist:051553d2e8c36cb96fc1
Community cookbooks are important to me
How long have you been using Chef?
I expect Community cookbooks to "just work"
I expect the Chef Software maintained cookbooks to "just work"
I tried to reuse Community cookbooks as part of the evaluation process
Community cookbooks have positively affected my decision to adopt Chef
Community cookbooks have negatively affected my decision to adopt Chef
View gist:9591343
laptop:~/src ls -la
total 0
drwxr-xr-x 7 someara staff 238 Mar 16 19:19 .
drwxr-xr-x 210 someara staff 7140 Mar 16 19:20 ..
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 apache2
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 munin
drwxr-xr-x 3 someara staff 102 Mar 16 19:20 myface
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 mysql
drwxr-xr-x 2 someara staff 68 Mar 16 19:19 selinx
laptop:~/src
View gist:9107832
[root@default-centos-58-someara-derpy ~]# rpm -qa | grep centos-release
centos-release-notes-5.8-0
centos-release-5-8.el5.centos
[root@default-centos-58-someara-derpy ~]# curl -L 'http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os'
http://mirror.linux.duke.edu/pub/centos/5.10/os/x86_64/
http://mirror.nsc.liu.se/CentOS/5.10/os/x86_64/
http://mirrors.kernel.org/centos/5.10/os/x86_64/
http://ftp.osuosl.org/pub/centos/5.10/os/x86_64/
http://centoss5.centos.org/centos/5.10/os/x86_64/
http://centosu5.centos.org/centos/5.10/os/x86_64/
View gist:9083529
derpy:~/src/opscode-cookbooks/sudo$ b kitchen converge create-centos-64
-----> Starting Kitchen (v1.2.1)
-----> Creating <create-centos-64>...
Digital Ocean instance <1176786> created.
..................... (server ready)
(ssh ready)
Finished creating <create-centos-64> (0m38.55s).
-----> Converging <create-centos-64>...
Preparing files for transfer
View gist:8918731
derpy:~$ cat wtf.txt
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
View gist:6179945
{
"languages": {
"ruby": {
"platform": "arm-linux-eabihf",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-unknown-linux-gnueabihf",
"target_cpu": "arm",
"target_vendor": "unknown",
"target_os": "linux-eabihf",
View gist:5670945
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
end