Skip to content

Instantly share code, notes, and snippets.

View someara's full-sized avatar

Sean OMeara someara

View GitHub Profile
derpy:~$ cat wtf.txt
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222
3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333
4444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444
5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
8888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888888
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
[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/
@someara
someara / gist:9591343
Last active August 29, 2015 13:57
application cookbook pattern
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
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
request => {:path=>"/v1.0/512133/servers.json", :host=>"servers.api.rackspacecloud.com", :body=>"{\"server\":{\"name\":\"1-centos-rscloud.afistfulofservers.net\",\"imageId\":51,\"flavorId\":1}}", :method=>"POST", :expects=>202, :headers=>{"X-Auth-Token"=>"526f6b17-6e92-4024-b008-067f91166817", "Content-Type"=>"application/json", "Content-Length"=>86, "Host"=>"servers.api.rackspacecloud.com"}}
response => #<Excon::Response:0x101e5fbd0 @body="\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n <head>\n <title>503 Service Unavailable</title>\n </head>\n <body>\n <h1>Error 503 Service Unavailable</h1>\n <p>Service Unavailable</p>\n <h3>Guru Meditation:</h3>\n <p>XID: 272869562</p>\n <address>\n <a href=\"http://www.varnish-cache.org/\">Varnish</a>\n </address>\n </body>\n</html>\n", @status=503, @headers={"Retry-After"=>"0", "X-Varnish"=>"272869562", "Via"=>"1.
# container A
template '/some/Dockerfile' do
action :create
end
template '/some/file' do
action :create
end
docker_image 'databass' do
ec2-174-129-61-139.compute-1.amazonaws.com Package configuration
ec2-174-129-61-139.compute-1.amazonaws.com
ec2-174-129-61-139.compute-1.amazonaws.com
ec2-174-129-61-139.compute-1.amazonaws.com
e┌──────────────────────┤ Configuring rabbitmq-server ├──────────────────────┐
e│ │
e│ Upgrading from 1.5.4 and below. │
e│ │
e│ You are upgrading from a release prior to 1.6.0. When the RabbitMQ │
e│ server detects the presence of an old database, it moves it to a backup │
navi:~$ knife rackspace image list
ID Name Updated
29 Windows Server 2003 R2 SP2 x86 2010-01-26T12:07:32-06:00
41 Oracle EL JeOS Release 5 Update 3 2010-09-20T09:08:35-05:00
62 Red Hat Enterprise Linux 5.5 2010-09-27T10:58:11-05:00
53 Fedora 13 (Goddard) 2010-06-27T20:13:08-05:00
187811 CentOS 5.4 2009-12-16T01:02:17-06:00
4 Debian 5.0 (lenny) 2009-08-26T14:59:52-05:00
10 Ubuntu 8.04.2 LTS (hardy) 2009-08-26T14:59:54-05:00
17 Fedora 12 (Constantine) 2009-12-15T15:43:59-06:00
@someara
someara / gist:657414
Created November 1, 2010 01:09
knife.rb
log_level :info
log_location STDOUT
node_name 'chef-server/clients/something'
cache_type 'BasicFile'
cache_options( :path => "yourshithere/.chef/checksums" )
cookbook_path [ "yourshithere/cookbooks" ]
client_key '/create/on/chef-server-webui/something.pem'
chef_server_url "http://yourshithere:4000"