Permalink
Browse files

first commit

  • Loading branch information...
1 parent 5de1ac9 commit e9cc832ddb61b3096cb276ab5a50793de10d9056 @maukoquiroga maukoquiroga committed Sep 28, 2012
Showing with 5,783 additions and 0 deletions.
  1. +34 −0 .rvmrc
  2. +11 −0 Cheffile
  3. +23 −0 Cheffile.lock
  4. +4 −0 Gemfile
  5. +74 −0 Gemfile.lock
  6. +4 −0 Vagrantfile
  7. 0 data_bags/.gitkeep
  8. 0 nodes/.gitkeep
  9. +109 −0 nodes/localhost.json.example
  10. 0 roles/.gitkeep
  11. 0 site-cookbooks/.gitkeep
  12. +44 −0 site-cookbooks/nginx/CHANGELOG.md
  13. +29 −0 site-cookbooks/nginx/CONTRIBUTING
  14. +201 −0 site-cookbooks/nginx/LICENSE
  15. +85 −0 site-cookbooks/nginx/README.md
  16. +239 −0 site-cookbooks/nginx/attributes/default.rb
  17. +30 −0 site-cookbooks/nginx/attributes/geoip.rb
  18. +34 −0 site-cookbooks/nginx/attributes/source.rb
  19. +23 −0 site-cookbooks/nginx/attributes/upload_progress.rb
  20. +35 −0 site-cookbooks/nginx/definitions/nginx_site.rb
  21. +8 −0 site-cookbooks/nginx/files/default/disable_favicon_logging.conf
  22. +6 −0 site-cookbooks/nginx/files/default/disable_hidden.conf
  23. +8 −0 site-cookbooks/nginx/files/default/disable_robots_logging.conf
  24. +73 −0 site-cookbooks/nginx/files/default/mime.types
  25. +260 −0 site-cookbooks/nginx/metadata.json
  26. +18 −0 site-cookbooks/nginx/metadata.rb
  27. +31 −0 site-cookbooks/nginx/providers/app.rb
  28. +32 −0 site-cookbooks/nginx/providers/site.rb
  29. +15 −0 site-cookbooks/nginx/recipes/apps.rb
  30. +41 −0 site-cookbooks/nginx/recipes/authorized_ips.rb
  31. +65 −0 site-cookbooks/nginx/recipes/commons.rb
  32. +107 −0 site-cookbooks/nginx/recipes/default.rb
  33. +26 −0 site-cookbooks/nginx/recipes/disable.rb
  34. +103 −0 site-cookbooks/nginx/recipes/http_geoip_module.rb
  35. +23 −0 site-cookbooks/nginx/recipes/http_gzip_static_module.rb
  36. +46 −0 site-cookbooks/nginx/recipes/http_realip_module.rb
  37. +23 −0 site-cookbooks/nginx/recipes/http_ssl_module.rb
  38. +36 −0 site-cookbooks/nginx/recipes/http_stub_status_module.rb
  39. +32 −0 site-cookbooks/nginx/recipes/ohai_plugin.rb
  40. +8 −0 site-cookbooks/nginx/recipes/proxy.rb
  41. +7 −0 site-cookbooks/nginx/recipes/real_ip.rb
  42. +81 −0 site-cookbooks/nginx/recipes/source.rb
  43. +8 −0 site-cookbooks/nginx/recipes/ssl.rb
  44. +26 −0 site-cookbooks/nginx/recipes/status.rb
  45. +47 −0 site-cookbooks/nginx/recipes/upload_progress_module.rb
  46. +19 −0 site-cookbooks/nginx/resources/app.rb
  47. +9 −0 site-cookbooks/nginx/resources/site.rb
  48. +111 −0 site-cookbooks/nginx/templates/default/default-site.erb
  49. +3 −0 site-cookbooks/nginx/templates/default/global.proxy.conf.erb
  50. +1 −0 site-cookbooks/nginx/templates/default/global.ssl.conf.erb
  51. +6 −0 site-cookbooks/nginx/templates/default/modules/authorized_ip.erb
  52. +4 −0 site-cookbooks/nginx/templates/default/modules/http_geoip.conf.erb
  53. +4 −0 site-cookbooks/nginx/templates/default/modules/http_realip.conf.erb
  54. +14 −0 site-cookbooks/nginx/templates/default/modules/nginx_status.erb
  55. +77 −0 site-cookbooks/nginx/templates/default/nginx.conf.erb
  56. +96 −0 site-cookbooks/nginx/templates/default/nginx.init.erb
  57. +15 −0 site-cookbooks/nginx/templates/default/nginx.pill.erb
  58. +1 −0 site-cookbooks/nginx/templates/default/nginx.sysconfig.erb
  59. +29 −0 site-cookbooks/nginx/templates/default/nxdissite.erb
  60. +38 −0 site-cookbooks/nginx/templates/default/nxensite.erb
  61. +66 −0 site-cookbooks/nginx/templates/default/plugins/nginx.rb.erb
  62. +42 −0 site-cookbooks/nginx/templates/default/proxy.conf.erb
  63. +4 −0 site-cookbooks/nginx/templates/default/real_ip.conf.erb
  64. +10 −0 site-cookbooks/nginx/templates/default/status.erb
  65. +2 −0 site-cookbooks/nginx/templates/default/sv-nginx-log-run.erb
  66. +3 −0 site-cookbooks/nginx/templates/default/sv-nginx-run.erb
  67. +21 −0 site-cookbooks/nginx/templates/default/uwsgi.app.conf.erb
  68. +6 −0 site-cookbooks/postgresql/.gitignore
  69. +1 −0 site-cookbooks/postgresql/.ruby-version
  70. +20 −0 site-cookbooks/postgresql/LICENSE.txt
  71. +501 −0 site-cookbooks/postgresql/README.md
  72. +351 −0 site-cookbooks/postgresql/attributes/default.rb
  73. +61 −0 site-cookbooks/postgresql/definitions/pg_database.rb
  74. +45 −0 site-cookbooks/postgresql/definitions/pg_user.rb
  75. +18 −0 site-cookbooks/postgresql/metadata.rb
  76. +8 −0 site-cookbooks/postgresql/recipes/client.rb
  77. +8 −0 site-cookbooks/postgresql/recipes/contrib.rb
  78. +8 −0 site-cookbooks/postgresql/recipes/dbg.rb
  79. +13 −0 site-cookbooks/postgresql/recipes/default.rb
  80. +8 −0 site-cookbooks/postgresql/recipes/doc.rb
  81. +9 −0 site-cookbooks/postgresql/recipes/libpq.rb
  82. +8 −0 site-cookbooks/postgresql/recipes/postgis.rb
  83. +88 −0 site-cookbooks/postgresql/recipes/server.rb
  84. +11 −0 site-cookbooks/postgresql/templates/default/environment.erb
  85. +5 −0 site-cookbooks/postgresql/templates/default/pg_ctl.conf.erb
  86. +100 −0 site-cookbooks/postgresql/templates/default/pg_hba.conf.erb
  87. +46 −0 site-cookbooks/postgresql/templates/default/pg_ident.conf.erb
  88. +556 −0 site-cookbooks/postgresql/templates/default/postgresql.conf.erb
  89. +9 −0 site-cookbooks/postgresql/templates/default/start.conf.erb
  90. +60 −0 site-cookbooks/ruby/README.rdoc
  91. +78 −0 site-cookbooks/ruby/definitions/ruby_packages.rb
  92. +42 −0 site-cookbooks/ruby/definitions/ruby_symlinks.rb
  93. +72 −0 site-cookbooks/ruby/metadata.json
  94. +23 −0 site-cookbooks/ruby/metadata.rb
  95. +20 −0 site-cookbooks/ruby/recipes/1.8.rb
  96. +20 −0 site-cookbooks/ruby/recipes/1.9.1.rb
  97. +20 −0 site-cookbooks/ruby/recipes/1.9.rb
  98. +20 −0 site-cookbooks/ruby/recipes/default.rb
  99. +20 −0 site-cookbooks/ruby/recipes/symlinks.rb
  100. +7 −0 site-cookbooks/sudo/CHANGELOG.md
  101. +29 −0 site-cookbooks/sudo/CONTRIBUTING
  102. +201 −0 site-cookbooks/sudo/LICENSE
  103. +155 −0 site-cookbooks/sudo/README.md
  104. +23 −0 site-cookbooks/sudo/attributes/default.rb
  105. +4 −0 site-cookbooks/sudo/files/default/README.sudoers
  106. +118 −0 site-cookbooks/sudo/metadata.json
  107. +45 −0 site-cookbooks/sudo/metadata.rb
  108. +143 −0 site-cookbooks/sudo/providers/default.rb
  109. +52 −0 site-cookbooks/sudo/recipes/default.rb
  110. +37 −0 site-cookbooks/sudo/resources/default.rb
  111. +24 −0 site-cookbooks/sudo/templates/default/sudoers.erb
  112. +6 −0 solo.rb
View
@@ -0,0 +1,34 @@
+#!/usr/bin/env bash
+
+# This is an RVM Project .rvmrc file, used to automatically load the ruby
+# development environment upon cd'ing into the directory
+
+# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
+# Only full ruby name is supported here, for short names use:
+# echo "rvm use 1.9.3" > .rvmrc
+environment_id="ruby-1.9.3-p194@chef-rails"
+
+# Uncomment the following lines if you want to verify rvm version per project
+# rvmrc_rvm_version="1.15.8 ()" # 1.10.1 seams as a safe start
+# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
+# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
+# return 1
+# }
+
+# First we attempt to load the desired environment directly from the environment
+# file. This is very fast and efficient compared to running through the entire
+# CLI and selector. If you want feedback on which environment was used then
+# insert the word 'use' after --create as this triggers verbose mode.
+if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
+then
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+ [[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
+ \. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
+else
+ # If the environment file has not yet been created, use the RVM CLI to select.
+ rvm --create "$environment_id" || {
+ echo "Failed to create RVM environment '${environment_id}'."
+ return 1
+ }
+fi
View
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+#^syntax detection
+
+site 'http://community.opscode.com/api/v1'
+
+cookbook 'apt'
+cookbook 'build-essential'
+cookbook 'runit'
+cookbook 'ohai'
+cookbook 'git'
+cookbook 'openssl'
View
@@ -0,0 +1,23 @@
+SITE
+ remote: http://community.opscode.com/api/v1
+ specs:
+ apt (1.4.8)
+ build-essential (1.1.0)
+ dmg (1.0.0)
+ git (1.0.0)
+ dmg (>= 0.0.0)
+ runit (>= 0.0.0)
+ yum (>= 0.0.0)
+ ohai (1.1.2)
+ openssl (1.0.0)
+ runit (0.15.0)
+ yum (0.8.0)
+
+DEPENDENCIES
+ apt (>= 0)
+ build-essential (>= 0)
+ git (>= 0)
+ ohai (>= 0)
+ openssl (>= 0)
+ runit (>= 0)
+
View
@@ -0,0 +1,4 @@
+source :rubygems
+
+gem 'knife-solo'
+gem 'librarian'
View
@@ -0,0 +1,74 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ archive-tar-minitar (0.5.2)
+ bunny (0.7.9)
+ chef (10.14.2)
+ bunny (>= 0.6.0, < 0.8.0)
+ erubis
+ highline (>= 1.6.9)
+ json (>= 1.4.4, <= 1.6.1)
+ mixlib-authentication (>= 1.3.0)
+ mixlib-cli (>= 1.1.0)
+ mixlib-config (>= 1.1.2)
+ mixlib-log (>= 1.3.0)
+ mixlib-shellout
+ moneta
+ net-ssh (~> 2.2.2)
+ net-ssh-multi (~> 1.1.0)
+ ohai (>= 0.6.0)
+ rest-client (>= 1.0.4, < 1.7.0)
+ treetop (~> 1.4.9)
+ uuidtools
+ yajl-ruby (~> 1.1)
+ erubis (2.7.0)
+ highline (1.6.15)
+ ipaddress (0.8.0)
+ json (1.6.1)
+ knife-solo (0.0.14)
+ chef (>= 0.10.10)
+ librarian (~> 0.0.20)
+ net-ssh (>= 2.1.3, < 2.3.0)
+ librarian (0.0.24)
+ archive-tar-minitar (>= 0.5.2)
+ chef (>= 0.10)
+ highline
+ thor (~> 0.15)
+ mime-types (1.19)
+ mixlib-authentication (1.3.0)
+ mixlib-log
+ mixlib-cli (1.2.2)
+ mixlib-config (1.1.2)
+ mixlib-log (1.4.1)
+ mixlib-shellout (1.1.0)
+ moneta (0.6.0)
+ net-ssh (2.2.2)
+ net-ssh-gateway (1.1.0)
+ net-ssh (>= 1.99.1)
+ net-ssh-multi (1.1)
+ net-ssh (>= 2.1.4)
+ net-ssh-gateway (>= 0.99.0)
+ ohai (6.14.0)
+ ipaddress
+ mixlib-cli
+ mixlib-config
+ mixlib-log
+ systemu
+ yajl-ruby
+ polyglot (0.3.3)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ systemu (2.5.2)
+ thor (0.16.0)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ uuidtools (2.1.3)
+ yajl-ruby (1.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ knife-solo
+ librarian
View
@@ -0,0 +1,4 @@
+Vagrant::Config.run do |config|
+ config.vm.box = "chef-rails"
+ config.vm.forward_port 80, 8000
+end
View
No changes.
View
No changes.
@@ -0,0 +1,109 @@
+{
+ "run_list": [
+ "recipe[sudo]",
+ "recipe[apt]",
+ "recipe[build-essential]",
+ "recipe[ohai]",
+ "recipe[runit]",
+ "recipe[git]",
+ "recipe[postgresql::server]",
+ "recipe[nginx::default]",
+ "recipe[nginx::apps]",
+ "recipe[ruby]"
+ ],
+
+ "authorization": {
+ "sudo": {
+ "groups": ["admin", "wheel", "sysadmin"],
+ "users": ["vagrant"],
+ "passwordless": true
+ }
+ },
+
+ "postgresql": {
+ "users": [
+ {
+ "username" : "vagrant",
+ "password" : "asdf1234",
+ "superuser" : true,
+ "createdb" : true,
+ "login" : true
+ }
+ ],
+
+ "databases": [
+ {
+ "name" : "example",
+ "owner" : "vagrant",
+ "template" : "template0",
+ "encoding" : "utf8",
+ "locale" : "en_US.UTF8"
+ }
+ ],
+
+ "pg_hba": [
+ "local all all trust",
+ "host all all 127.0.0.1/32 md5",
+ "host all all ::1/128 md5"
+ ]
+ },
+
+ "nginx": {
+ "distribution": "oneiric",
+ "components": ["main"],
+ "default_site": false,
+ "apps": {
+ "app1": {
+ "listen" : [80],
+ "server_name": "app1.example.com",
+ "public_path": "/home/vagrant/public_html/app1/public",
+ "locations": [
+ {
+ "path": "/",
+ "directives": [
+ "proxy_set_header X-Forwarded-Proto $scheme;",
+ "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;",
+ "proxy_set_header X-Real-IP $remote_addr;",
+ "proxy_set_header Host $host;",
+ "proxy_redirect off;",
+ "proxy_http_version 1.1;",
+ "proxy_set_header Connection '';",
+ "proxy_pass http://localhost:8000;"
+ ]
+ }
+ ]
+ },
+ "app2": {
+ "listen" : [80],
+ "server_name": "app2.example.com",
+ "public_path": "/home/vagrant/public_html/app2/public",
+ "locations": [
+ {
+ "path": "/",
+ "directives": [
+ "proxy_set_header X-Forwarded-Proto $scheme;",
+ "proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;",
+ "proxy_set_header X-Real-IP $remote_addr;",
+ "proxy_set_header Host $host;",
+ "proxy_redirect off;",
+ "proxy_http_version 1.1;",
+ "proxy_set_header Connection '';",
+ "proxy_pass http://localhost:10000;"
+ ]
+ }
+ ]
+ }
+ }
+ },
+
+ "languages": {
+ "ruby": {
+ "default_version": "1.9.1"
+ }
+ }
+}
+
+
+
+
+
View
No changes.
No changes.
@@ -0,0 +1,44 @@
+## v0.101.6:
+
+Erroneous cookbook upload due to timeout.
+
+Version #'s are cheap.
+
+## v0.101.4:
+
+* [COOK-1280] - Improve RHEL family support and fix ohai_plugins
+ recipe bug
+* [COOK-1194] - allow installation method via attribute
+* [COOK-458] - fix duplicate nginx processes
+
+## v0.101.2:
+
+* [COOK-1211] - include the default attributes explicitly so version
+is available.
+
+## v0.101.0:
+
+**Attribute Change**: `node['nginx']['url']` -> `node['nginx']['source']['url']`; see the README.md.
+
+* [COOK-1115] - daemonize when using init script
+* [COOK-477] - module compilation support in nginx::source
+
+## v0.100.4:
+
+* [COOK-1126] - source version bump to 1.0.14
+
+## v0.100.2:
+
+* [COOK-1053] - Add :url attribute to nginx cookbook
+
+## v0.100.0:
+
+* [COOK-818] - add "application/json" per RFC.
+* [COOK-870] - bluepill init style support
+* [COOK-957] - Compress application/javascript.
+* [COOK-981] - Add reload support to NGINX service
+
+## v0.99.2:
+
+* [COOK-809] - attribute to disable access logging
+* [COOK-772] - update nginx download source location
@@ -0,0 +1,29 @@
+If you would like to contribute, please open a ticket in JIRA:
+
+* http://tickets.opscode.com
+
+Create the ticket in the COOK project and use the cookbook name as the
+component.
+
+For all code contributions, we ask that contributors sign a
+contributor license agreement (CLA). Instructions may be found here:
+
+* http://wiki.opscode.com/display/chef/How+to+Contribute
+
+When contributing changes to individual cookbooks, please do not
+modify the version number in the metadata.rb. Also please do not
+update the CHANGELOG.md for a new version. Not all changes to a
+cookbook may be merged and released in the same versions. Opscode will
+handle the version updates during the release process. You are welcome
+to correct typos or otherwise make updates to documentation in the
+README.
+
+If a contribution adds new platforms or platform versions, indicate
+such in the body of the commit message(s), and update the relevant
+COOK ticket. When writing commit messages, it is helpful for others if
+you indicate the COOK ticket. For example:
+
+ git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
+
+In the ticket itself, it is also helpful if you include log output of
+a successful Chef run, but this is not absolutely required.
Oops, something went wrong.

0 comments on commit e9cc832

Please sign in to comment.