Skip to content

Instantly share code, notes, and snippets.

@someara
Last active Aug 29, 2015
Embed
What would you like to do?
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
laptop:~/src cd myface
derpy:~/src/myface$ ls -laR
total 8
drwxr-xr-x 4 someara staff 136 Mar 16 19:20 .
drwxr-xr-x 7 someara staff 238 Mar 16 19:19 ..
-rw-r--r-- 1 someara staff 100 Mar 16 19:20 metadata.rb
drwxr-xr-x 5 someara staff 170 Mar 16 19:22 recipes
./recipes:
total 24
drwxr-xr-x 5 someara staff 170 Mar 16 19:22 .
drwxr-xr-x 4 someara staff 136 Mar 16 19:20 ..
-rw-r--r-- 1 someara staff 32 Mar 16 19:22 databass.rb
-rw-r--r-- 1 someara staff 31 Mar 16 19:22 metrics.rb
-rw-r--r-- 1 someara staff 117 Mar 16 19:22 webserver.rb
laptop:~/example/myface$ cat recipes/webserver.rb
node.default['apache2']['listen_ports'] = ['80','81','82']
include_recipe 'apache2'
include_recipe 'mysql::client'
laptop:~/example/myface$ cat recipes/databass.rb
include_recipe 'mysql::server'
laptop:~/example/myface$ cat recipes/metrics.rb
include_recipe 'munin::server'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment