lobot 0.10.3 → 1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (696) hide show
  1. data/.gitignore +1 -0
  2. data/.gitmodules +3 -0
  3. data/.rvmrc +1 -1
  4. data/Gemfile +1 -0
  5. data/README.md +26 -28
  6. data/Rakefile +3 -1
  7. data/chef/cookbooks/pivotal_ci/attributes/git.rb +4 -0
  8. data/chef/cookbooks/pivotal_ci/attributes/jenkins.rb +3 -0
  9. data/{lib/generators/lobot/templates/chef → chef}/cookbooks/pivotal_ci/attributes/nginx.rb +0 -0
  10. data/chef/cookbooks/pivotal_ci/attributes/ssl.rb +5 -0
  11. data/chef/cookbooks/pivotal_ci/files/default/jenkins-ci.org.key +112 -0
  12. data/{lib/generators/lobot/templates/chef → chef}/cookbooks/pivotal_ci/libraries/ci_config.rb +0 -0
  13. data/chef/cookbooks/pivotal_ci/recipes/default.rb +6 -0
  14. data/chef/cookbooks/pivotal_ci/recipes/fonts.rb +5 -0
  15. data/chef/cookbooks/pivotal_ci/recipes/git_config.rb +17 -0
  16. data/{lib/generators/lobot/templates/chef → chef}/cookbooks/pivotal_ci/recipes/id_rsa.rb +18 -8
  17. data/chef/cookbooks/pivotal_ci/recipes/jenkins.rb +26 -0
  18. data/chef/cookbooks/pivotal_ci/recipes/jenkins_config.rb +52 -0
  19. data/chef/cookbooks/pivotal_ci/recipes/limited_travis_ci_environment.rb +35 -0
  20. data/chef/cookbooks/pivotal_ci/recipes/nginx.rb +17 -0
  21. data/chef/cookbooks/pivotal_ci/recipes/ssl_certificate.rb +44 -0
  22. data/chef/cookbooks/pivotal_ci/recipes/teamcity.rb +42 -0
  23. data/{lib/generators/lobot/templates/chef → chef}/cookbooks/pivotal_ci/templates/default/jenkins-job-config.xml.erb +7 -3
  24. data/chef/cookbooks/pivotal_ci/templates/default/nginx-conf.erb +58 -0
  25. data/{lib/generators/lobot/templates/chef/cookbooks/pivotal_server → chef/cookbooks/pivotal_ci}/templates/default/nginx-htaccess.erb +0 -0
  26. data/{lib/generators/lobot/templates/chef → chef}/cookbooks/pivotal_ci/templates/default/teamcity-initd.erb +1 -1
  27. data/chef/travis-cookbooks/.gitignore +7 -0
  28. data/chef/travis-cookbooks/LICENSE +23 -0
  29. data/chef/travis-cookbooks/README.md +28 -0
  30. data/chef/travis-cookbooks/ci_environment/.gitignore +1 -0
  31. data/chef/travis-cookbooks/ci_environment/ant/README.md +51 -0
  32. data/chef/travis-cookbooks/ci_environment/ant/metadata.rb +14 -0
  33. data/chef/travis-cookbooks/ci_environment/ant/recipes/default.rb +41 -0
  34. data/chef/travis-cookbooks/ci_environment/apt/README.md +109 -0
  35. data/chef/travis-cookbooks/ci_environment/apt/attributes/default.rb +1 -0
  36. data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-cacher +9 -0
  37. data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-cacher.conf +144 -0
  38. data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-proxy-v2.conf +50 -0
  39. data/chef/travis-cookbooks/ci_environment/apt/metadata.json +34 -0
  40. data/chef/travis-cookbooks/ci_environment/apt/metadata.rb +13 -0
  41. data/chef/travis-cookbooks/ci_environment/apt/providers/repository.rb +73 -0
  42. data/chef/travis-cookbooks/ci_environment/apt/recipes/cacher-client.rb +37 -0
  43. data/chef/travis-cookbooks/ci_environment/apt/recipes/cacher.rb +45 -0
  44. data/chef/travis-cookbooks/ci_environment/apt/recipes/default.rb +54 -0
  45. data/chef/travis-cookbooks/ci_environment/apt/resources/repository.rb +31 -0
  46. data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-10.04/sources.list.erb +31 -0
  47. data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-11.04/sources.list.erb +31 -0
  48. data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-11.10/sources.list.erb +31 -0
  49. data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-12.04/sources.list.erb +31 -0
  50. data/chef/travis-cookbooks/ci_environment/bazaar/recipes/default.rb +26 -0
  51. data/chef/travis-cookbooks/ci_environment/bison/attributes/default.rb +7 -0
  52. data/chef/travis-cookbooks/ci_environment/bison/recipes/default.rb +48 -0
  53. data/chef/travis-cookbooks/ci_environment/build-essential/README.md +24 -0
  54. data/chef/travis-cookbooks/ci_environment/build-essential/metadata.rb +10 -0
  55. data/chef/travis-cookbooks/ci_environment/build-essential/recipes/default.rb +47 -0
  56. data/chef/travis-cookbooks/ci_environment/cassandra/attributes/default.rb +25 -0
  57. data/chef/travis-cookbooks/ci_environment/cassandra/recipes/datastax.rb +43 -0
  58. data/chef/travis-cookbooks/ci_environment/cassandra/recipes/package.rb +43 -0
  59. data/chef/travis-cookbooks/ci_environment/cassandra/recipes/tarball.rb +154 -0
  60. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-cli.erb +60 -0
  61. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-env.sh.erb +159 -0
  62. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-limits.conf.erb +2 -0
  63. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra.init.erb +231 -0
  64. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra.yaml.erb +567 -0
  65. data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/log4j-server.properties.yml +43 -0
  66. data/chef/travis-cookbooks/ci_environment/chromium/recipes/default.rb +26 -0
  67. data/chef/travis-cookbooks/ci_environment/clang/attributes/tarball.rb +11 -0
  68. data/chef/travis-cookbooks/ci_environment/clang/metadata.rb +11 -0
  69. data/chef/travis-cookbooks/ci_environment/clang/recipes/default.rb +26 -0
  70. data/chef/travis-cookbooks/ci_environment/clang/recipes/tarball.rb +75 -0
  71. data/chef/travis-cookbooks/ci_environment/cmake/README.md +21 -0
  72. data/chef/travis-cookbooks/ci_environment/cmake/metadata.rb +10 -0
  73. data/chef/travis-cookbooks/ci_environment/cmake/recipes/default.rb +23 -0
  74. data/chef/travis-cookbooks/ci_environment/composer/recipes/default.rb +21 -0
  75. data/chef/travis-cookbooks/ci_environment/composer/templates/default/composer.erb +3 -0
  76. data/chef/travis-cookbooks/ci_environment/couchdb/recipes/default.rb +33 -0
  77. data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ppa.rb +37 -0
  78. data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu-12.04.rb +39 -0
  79. data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1110_ppa.rb +27 -0
  80. data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1204_ppa.rb +27 -0
  81. data/chef/travis-cookbooks/ci_environment/elasticsearch/attributes/default.rb +3 -0
  82. data/chef/travis-cookbooks/ci_environment/elasticsearch/recipes/default.rb +64 -0
  83. data/chef/travis-cookbooks/ci_environment/emacs/metadata.rb +11 -0
  84. data/chef/travis-cookbooks/ci_environment/emacs/recipes/default.rb +21 -0
  85. data/chef/travis-cookbooks/ci_environment/emacs/recipes/nox.rb +32 -0
  86. data/chef/travis-cookbooks/ci_environment/erlang/attributes/default.rb +1 -0
  87. data/chef/travis-cookbooks/ci_environment/erlang/metadata.rb +11 -0
  88. data/chef/travis-cookbooks/ci_environment/erlang/recipes/default.rb +27 -0
  89. data/chef/travis-cookbooks/ci_environment/firefox/recipes/default.rb +29 -0
  90. data/chef/travis-cookbooks/ci_environment/git/README.rdoc +37 -0
  91. data/chef/travis-cookbooks/ci_environment/git/files/default/git_1.7.5.4-1+github5_amd64.deb +0 -0
  92. data/chef/travis-cookbooks/ci_environment/git/files/default/git_1.7.5.4-1+github5_i386.deb +0 -0
  93. data/chef/travis-cookbooks/ci_environment/git/metadata.rb +15 -0
  94. data/chef/travis-cookbooks/ci_environment/git/recipes/custom.git +65 -0
  95. data/chef/travis-cookbooks/ci_environment/git/recipes/default.rb +23 -0
  96. data/chef/travis-cookbooks/ci_environment/git/recipes/ppa.rb +37 -0
  97. data/chef/travis-cookbooks/ci_environment/git/templates/default/sv-git-daemon-log-run.erb +2 -0
  98. data/chef/travis-cookbooks/ci_environment/git/templates/default/sv-git-daemon-run.erb +3 -0
  99. data/chef/travis-cookbooks/ci_environment/golang/README.md +35 -0
  100. data/chef/travis-cookbooks/ci_environment/golang/attributes/default.rb +11 -0
  101. data/chef/travis-cookbooks/ci_environment/golang/recipes/default.rb +20 -0
  102. data/chef/travis-cookbooks/ci_environment/golang/recipes/multi.rb +55 -0
  103. data/chef/travis-cookbooks/ci_environment/golang/recipes/ppa.rb +32 -0
  104. data/chef/travis-cookbooks/ci_environment/gradle/README.md +33 -0
  105. data/chef/travis-cookbooks/ci_environment/gradle/attributes/tarball.rb +9 -0
  106. data/chef/travis-cookbooks/ci_environment/gradle/files/default/etc/profile.d/gradle.sh +1 -0
  107. data/chef/travis-cookbooks/ci_environment/gradle/recipes/tarball.rb +65 -0
  108. data/chef/travis-cookbooks/ci_environment/gvm/files/ubuntu/gvm.sh +3 -0
  109. data/chef/travis-cookbooks/ci_environment/gvm/recipes/default.rb +44 -0
  110. data/chef/travis-cookbooks/ci_environment/haskell/attributes/ghc.rb +4 -0
  111. data/chef/travis-cookbooks/ci_environment/haskell/attributes/platform.rb +5 -0
  112. data/chef/travis-cookbooks/ci_environment/haskell/files/default/cabal.sh +3 -0
  113. data/chef/travis-cookbooks/ci_environment/haskell/recipes/default.rb +38 -0
  114. data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_package.rb +28 -0
  115. data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_source.rb +78 -0
  116. data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_package.rb +52 -0
  117. data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_ppa.rb +68 -0
  118. data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_source.rb +67 -0
  119. data/chef/travis-cookbooks/ci_environment/haskell/recipes/source.rb +25 -0
  120. data/chef/travis-cookbooks/ci_environment/hbase/recipes/cdh4.rb +49 -0
  121. data/chef/travis-cookbooks/ci_environment/htop/recipes/default.rb +4 -0
  122. data/chef/travis-cookbooks/ci_environment/imagemagick/README.rdoc +33 -0
  123. data/chef/travis-cookbooks/ci_environment/imagemagick/metadata.rb +12 -0
  124. data/chef/travis-cookbooks/ci_environment/imagemagick/recipes/default.rb +37 -0
  125. data/chef/travis-cookbooks/ci_environment/iptables/files/default/iptables_rules +13 -0
  126. data/chef/travis-cookbooks/ci_environment/iptables/metadata.rb +10 -0
  127. data/chef/travis-cookbooks/ci_environment/iptables/recipes/default.rb +48 -0
  128. data/chef/travis-cookbooks/ci_environment/iptables/templates/default/iptables_load.erb +3 -0
  129. data/chef/travis-cookbooks/ci_environment/java/README.md +102 -0
  130. data/chef/travis-cookbooks/ci_environment/java/attributes/default.rb +41 -0
  131. data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/java.seed +14 -0
  132. data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/load_jdk_switcher.sh +7 -0
  133. data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/oraclejdk7.jinfo +44 -0
  134. data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/oraclejdk8.jinfo +44 -0
  135. data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/startssl_root_ca_installer.sh +48 -0
  136. data/chef/travis-cookbooks/ci_environment/java/metadata.rb +16 -0
  137. data/chef/travis-cookbooks/ci_environment/java/recipes/default.rb +30 -0
  138. data/chef/travis-cookbooks/ci_environment/java/recipes/multi.rb +30 -0
  139. data/chef/travis-cookbooks/ci_environment/java/recipes/openjdk6.rb +27 -0
  140. data/chef/travis-cookbooks/ci_environment/java/recipes/openjdk7.rb +27 -0
  141. data/chef/travis-cookbooks/ci_environment/java/recipes/oraclejdk7.rb +78 -0
  142. data/chef/travis-cookbooks/ci_environment/java/recipes/oraclejdk8.rb +71 -0
  143. data/chef/travis-cookbooks/ci_environment/java/templates/ubuntu/etc/profile.d/java_home.sh.erb +3 -0
  144. data/chef/travis-cookbooks/ci_environment/kerl/README.md +3 -0
  145. data/chef/travis-cookbooks/ci_environment/kerl/attributes/default.rb +1 -0
  146. data/chef/travis-cookbooks/ci_environment/kerl/attributes/source.rb +2 -0
  147. data/chef/travis-cookbooks/ci_environment/kerl/metadata.rb +6 -0
  148. data/chef/travis-cookbooks/ci_environment/kerl/recipes/default.rb +19 -0
  149. data/chef/travis-cookbooks/ci_environment/kerl/recipes/source.rb +96 -0
  150. data/chef/travis-cookbooks/ci_environment/kestrel/attributes/tarball.rb +15 -0
  151. data/chef/travis-cookbooks/ci_environment/kestrel/files/default/config/development.scala +33 -0
  152. data/chef/travis-cookbooks/ci_environment/kestrel/recipes/tarball.rb +134 -0
  153. data/chef/travis-cookbooks/ci_environment/kestrel/templates/ubuntu/kestrel-limits.conf.erb +2 -0
  154. data/chef/travis-cookbooks/ci_environment/kestrel/templates/ubuntu/kestrel.init.erb +208 -0
  155. data/chef/travis-cookbooks/ci_environment/leiningen/README.rdoc +5 -0
  156. data/chef/travis-cookbooks/ci_environment/leiningen/attributes/default.rb +5 -0
  157. data/chef/travis-cookbooks/ci_environment/leiningen/files/default/profiles.clj +1 -0
  158. data/chef/travis-cookbooks/ci_environment/leiningen/metadata.json +32 -0
  159. data/chef/travis-cookbooks/ci_environment/leiningen/metadata.rb +8 -0
  160. data/chef/travis-cookbooks/ci_environment/leiningen/recipes/default.rb +23 -0
  161. data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein1x.rb +68 -0
  162. data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein2x.rb +82 -0
  163. data/chef/travis-cookbooks/ci_environment/libffi/recipes/default.rb +34 -0
  164. data/chef/travis-cookbooks/ci_environment/libgdbm/recipes/default.rb +27 -0
  165. data/chef/travis-cookbooks/ci_environment/libncurses/recipes/default.rb +31 -0
  166. data/chef/travis-cookbooks/ci_environment/libossp-uuid/recipes/default.rb +27 -0
  167. data/chef/travis-cookbooks/ci_environment/libqt4/recipes/default.rb +5 -0
  168. data/chef/travis-cookbooks/ci_environment/libreadline/recipes/default.rb +34 -0
  169. data/chef/travis-cookbooks/ci_environment/libssl/recipes/098.rb +28 -0
  170. data/chef/travis-cookbooks/ci_environment/libssl/recipes/default.rb +24 -0
  171. data/chef/travis-cookbooks/ci_environment/libxml/recipes/default.rb +30 -0
  172. data/chef/travis-cookbooks/ci_environment/libyaml/recipes/default.rb +6 -0
  173. data/chef/travis-cookbooks/ci_environment/lighttpd/attributes/default.rb +3 -0
  174. data/chef/travis-cookbooks/ci_environment/lighttpd/recipes/default.rb +39 -0
  175. data/chef/travis-cookbooks/ci_environment/lighttpd/templates/default/lighttpd.conf.erb +166 -0
  176. data/chef/travis-cookbooks/ci_environment/maven3/attributes/default.rb +3 -0
  177. data/chef/travis-cookbooks/ci_environment/maven3/files/default/settings.xml +136 -0
  178. data/chef/travis-cookbooks/ci_environment/maven3/recipes/default.rb +53 -0
  179. data/chef/travis-cookbooks/ci_environment/maven3/recipes/package.rb +27 -0
  180. data/chef/travis-cookbooks/ci_environment/maven3/recipes/ppa.rb +44 -0
  181. data/chef/travis-cookbooks/ci_environment/maven3/recipes/tarball.rb +37 -0
  182. data/chef/travis-cookbooks/ci_environment/maven3/templates/ubuntu-11.04/install_maven3.sh.erb +32 -0
  183. data/chef/travis-cookbooks/ci_environment/memcached/README.rdoc +52 -0
  184. data/chef/travis-cookbooks/ci_environment/memcached/attributes/default.rb +5 -0
  185. data/chef/travis-cookbooks/ci_environment/memcached/attributes/ppa.rb +3 -0
  186. data/chef/travis-cookbooks/ci_environment/memcached/definitions/memcached_instance.rb +32 -0
  187. data/chef/travis-cookbooks/ci_environment/memcached/metadata.rb +33 -0
  188. data/chef/travis-cookbooks/ci_environment/memcached/recipes/default.rb +60 -0
  189. data/chef/travis-cookbooks/ci_environment/memcached/recipes/ppa.rb +34 -0
  190. data/chef/travis-cookbooks/ci_environment/memcached/templates/default/memcached.conf.erb +54 -0
  191. data/chef/travis-cookbooks/ci_environment/memcached/templates/default/memcached.default.erb +2 -0
  192. data/chef/travis-cookbooks/ci_environment/memcached/templates/default/sv-memcached-log-run.erb +2 -0
  193. data/chef/travis-cookbooks/ci_environment/memcached/templates/default/sv-memcached-run.erb +3 -0
  194. data/chef/travis-cookbooks/ci_environment/mercurial/recipes/default.rb +26 -0
  195. data/chef/travis-cookbooks/ci_environment/mingw32/README.md +21 -0
  196. data/chef/travis-cookbooks/ci_environment/mingw32/metadata.rb +10 -0
  197. data/chef/travis-cookbooks/ci_environment/mingw32/recipes/default.rb +23 -0
  198. data/chef/travis-cookbooks/ci_environment/mongodb/.gitignore +1 -0
  199. data/chef/travis-cookbooks/ci_environment/mongodb/README.md +0 -0
  200. data/chef/travis-cookbooks/ci_environment/mongodb/attributes/mongodb.rb +67 -0
  201. data/chef/travis-cookbooks/ci_environment/mongodb/files/default/mongodb.list +1 -0
  202. data/chef/travis-cookbooks/ci_environment/mongodb/files/default/mongodb.sysvinit.sh +261 -0
  203. data/chef/travis-cookbooks/ci_environment/mongodb/metadata.rb +235 -0
  204. data/chef/travis-cookbooks/ci_environment/mongodb/recipes/apt.rb +65 -0
  205. data/chef/travis-cookbooks/ci_environment/mongodb/recipes/default.rb +23 -0
  206. data/chef/travis-cookbooks/ci_environment/mongodb/recipes/server.rb +43 -0
  207. data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongod.upstart.erb +16 -0
  208. data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.conf.erb +5 -0
  209. data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.init.10gen.erb +74 -0
  210. data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.init.erb +268 -0
  211. data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.list.erb +1 -0
  212. data/chef/travis-cookbooks/ci_environment/mysql/README.md +141 -0
  213. data/chef/travis-cookbooks/ci_environment/mysql/attributes/default.rb +3 -0
  214. data/chef/travis-cookbooks/ci_environment/mysql/attributes/server.rb +69 -0
  215. data/chef/travis-cookbooks/ci_environment/mysql/attributes/server_on_ramfs.rb +1 -0
  216. data/chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb +19 -0
  217. data/chef/travis-cookbooks/ci_environment/mysql/libraries/helpers.rb +33 -0
  218. data/chef/travis-cookbooks/ci_environment/mysql/metadata.rb +76 -0
  219. data/chef/travis-cookbooks/ci_environment/mysql/providers/database.rb +81 -0
  220. data/chef/travis-cookbooks/ci_environment/mysql/recipes/client.rb +60 -0
  221. data/chef/travis-cookbooks/ci_environment/mysql/recipes/default.rb +20 -0
  222. data/chef/travis-cookbooks/ci_environment/mysql/recipes/server.rb +125 -0
  223. data/chef/travis-cookbooks/ci_environment/mysql/recipes/server_on_ramfs.rb +83 -0
  224. data/chef/travis-cookbooks/ci_environment/mysql/resources/database.rb +27 -0
  225. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/debian.cnf.erb +12 -0
  226. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/grants.sql.erb +33 -0
  227. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/init/mysql.conf.erb +49 -0
  228. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/my.cnf.erb +184 -0
  229. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/mysql-server.seed.erb +10 -0
  230. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/port_mysql.erb +3 -0
  231. data/chef/travis-cookbooks/ci_environment/mysql/templates/default/ramfs/my.cnf.erb +177 -0
  232. data/chef/travis-cookbooks/ci_environment/neo4j-server/.gitignore +4 -0
  233. data/chef/travis-cookbooks/ci_environment/neo4j-server/README.md +47 -0
  234. data/chef/travis-cookbooks/ci_environment/neo4j-server/attributes/tarball.rb +32 -0
  235. data/chef/travis-cookbooks/ci_environment/neo4j-server/recipes/tarball.rb +140 -0
  236. data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-limits.conf.erb +2 -0
  237. data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-server.properties.erb +75 -0
  238. data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-wrapper.conf.erb +26 -0
  239. data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j.init.erb +55 -0
  240. data/chef/travis-cookbooks/ci_environment/networking_basic/recipes/default.rb +36 -0
  241. data/chef/travis-cookbooks/ci_environment/nodejs/attributes/multi.rb +3 -0
  242. data/chef/travis-cookbooks/ci_environment/nodejs/files/default/nvm.sh +281 -0
  243. data/chef/travis-cookbooks/ci_environment/nodejs/files/default/profile_entry.sh +3 -0
  244. data/chef/travis-cookbooks/ci_environment/nodejs/recipes/multi.rb +79 -0
  245. data/chef/travis-cookbooks/ci_environment/nodejs/templates/default/nvm.sh.erb +3 -0
  246. data/chef/travis-cookbooks/ci_environment/openssh/files/default/ssh_init.sh +181 -0
  247. data/chef/travis-cookbooks/ci_environment/openssh/files/default/sshd_config +56 -0
  248. data/chef/travis-cookbooks/ci_environment/openssh/recipes/default.rb +42 -0
  249. data/chef/travis-cookbooks/ci_environment/openssl/README.md +37 -0
  250. data/chef/travis-cookbooks/ci_environment/openssl/libraries/secure_password.rb +37 -0
  251. data/chef/travis-cookbooks/ci_environment/openssl/metadata.rb +8 -0
  252. data/chef/travis-cookbooks/ci_environment/openssl/recipes/default.rb +19 -0
  253. data/chef/travis-cookbooks/ci_environment/perlbrew/attributes/default.rb +0 -0
  254. data/chef/travis-cookbooks/ci_environment/perlbrew/attributes/multi.rb +7 -0
  255. data/chef/travis-cookbooks/ci_environment/perlbrew/files/default/perlbrew.sh +7 -0
  256. data/chef/travis-cookbooks/ci_environment/perlbrew/metadata.rb +11 -0
  257. data/chef/travis-cookbooks/ci_environment/perlbrew/recipes/default.rb +26 -0
  258. data/chef/travis-cookbooks/ci_environment/perlbrew/recipes/multi.rb +41 -0
  259. data/chef/travis-cookbooks/ci_environment/phantomjs/attributes/default.rb +10 -0
  260. data/chef/travis-cookbooks/ci_environment/phantomjs/files/ubuntu/etc/profile.d/phantomjs.sh +1 -0
  261. data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/default.rb +24 -0
  262. data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/tarball.rb +68 -0
  263. data/chef/travis-cookbooks/ci_environment/php/README.md +5 -0
  264. data/chef/travis-cookbooks/ci_environment/php/attributes/default.rb +2 -0
  265. data/chef/travis-cookbooks/ci_environment/php/metadata.rb +10 -0
  266. data/chef/travis-cookbooks/ci_environment/php/recipes/multi.rb +25 -0
  267. data/chef/travis-cookbooks/ci_environment/phpbuild/attributes/default.rb +19 -0
  268. data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.2.17 +16 -0
  269. data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.3.3 +5 -0
  270. data/chef/travis-cookbooks/ci_environment/phpbuild/metadata.rb +5 -0
  271. data/chef/travis-cookbooks/ci_environment/phpbuild/providers/build.rb +56 -0
  272. data/chef/travis-cookbooks/ci_environment/phpbuild/recipes/default.rb +124 -0
  273. data/chef/travis-cookbooks/ci_environment/phpbuild/resources/build.rb +7 -0
  274. data/chef/travis-cookbooks/ci_environment/phpbuild/templates/default/default_configure_options.erb +38 -0
  275. data/chef/travis-cookbooks/ci_environment/phpbuild/templates/default/travis.ini.erb +9 -0
  276. data/chef/travis-cookbooks/ci_environment/phpenv/files/default/phpenv.sh +5 -0
  277. data/chef/travis-cookbooks/ci_environment/phpenv/metadata.rb +5 -0
  278. data/chef/travis-cookbooks/ci_environment/phpenv/recipes/default.rb +29 -0
  279. data/chef/travis-cookbooks/ci_environment/postgresql/README.rdoc +49 -0
  280. data/chef/travis-cookbooks/ci_environment/postgresql/attributes/default.rb +74 -0
  281. data/chef/travis-cookbooks/ci_environment/postgresql/metadata.rb +13 -0
  282. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/client.rb +28 -0
  283. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/default.rb +20 -0
  284. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server.rb +83 -0
  285. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_debian.rb +73 -0
  286. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_on_ramfs.rb +32 -0
  287. data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_redhat.rb +84 -0
  288. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/30-shared-memory.conf.erb +2 -0
  289. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/debian.pg_hba.conf.erb +83 -0
  290. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/debian.postgresql.conf.erb +234 -0
  291. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/ramfs.init.erb +50 -0
  292. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/redhat.pg_hba.conf.erb +74 -0
  293. data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/redhat.postgresql.conf.erb +502 -0
  294. data/chef/travis-cookbooks/ci_environment/pypy/attributes/default.rb +21 -0
  295. data/chef/travis-cookbooks/ci_environment/pypy/files/default/etc/profile.d/pypy.sh +1 -0
  296. data/chef/travis-cookbooks/ci_environment/pypy/recipes/ppa.rb +39 -0
  297. data/chef/travis-cookbooks/ci_environment/pypy/recipes/tarball.rb +54 -0
  298. data/chef/travis-cookbooks/ci_environment/python/README.md +162 -0
  299. data/chef/travis-cookbooks/ci_environment/python/attributes/default.rb +22 -0
  300. data/chef/travis-cookbooks/ci_environment/python/files/default/virtualenv_settings.sh +1 -0
  301. data/chef/travis-cookbooks/ci_environment/python/metadata.json +52 -0
  302. data/chef/travis-cookbooks/ci_environment/python/metadata.rb +17 -0
  303. data/chef/travis-cookbooks/ci_environment/python/providers/pip.rb +146 -0
  304. data/chef/travis-cookbooks/ci_environment/python/providers/virtualenv.rb +79 -0
  305. data/chef/travis-cookbooks/ci_environment/python/recipes/default.rb +21 -0
  306. data/chef/travis-cookbooks/ci_environment/python/recipes/multi.rb +150 -0
  307. data/chef/travis-cookbooks/ci_environment/python/recipes/package.rb +36 -0
  308. data/chef/travis-cookbooks/ci_environment/python/recipes/pip.rb +38 -0
  309. data/chef/travis-cookbooks/ci_environment/python/recipes/virtualenv.rb +32 -0
  310. data/chef/travis-cookbooks/ci_environment/python/resources/pip.rb +26 -0
  311. data/chef/travis-cookbooks/ci_environment/python/resources/virtualenv.rb +28 -0
  312. data/chef/travis-cookbooks/ci_environment/rabbitmq/README.md +86 -0
  313. data/chef/travis-cookbooks/ci_environment/rabbitmq/attributes/default.rb +8 -0
  314. data/chef/travis-cookbooks/ci_environment/rabbitmq/metadata.rb +63 -0
  315. data/chef/travis-cookbooks/ci_environment/rabbitmq/providers/user.rb +66 -0
  316. data/chef/travis-cookbooks/ci_environment/rabbitmq/providers/vhost.rb +34 -0
  317. data/chef/travis-cookbooks/ci_environment/rabbitmq/recipes/default.rb +63 -0
  318. data/chef/travis-cookbooks/ci_environment/rabbitmq/recipes/with_management_plugin.rb +15 -0
  319. data/chef/travis-cookbooks/ci_environment/rabbitmq/resources/user.rb +25 -0
  320. data/chef/travis-cookbooks/ci_environment/rabbitmq/resources/vhost.rb +22 -0
  321. data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/doterlang.cookie.erb +1 -0
  322. data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq-env.conf.erb +10 -0
  323. data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq.config.erb +5 -0
  324. data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq_cluster.config.erb +5 -0
  325. data/chef/travis-cookbooks/ci_environment/ragel/recipes/custom.rb +56 -0
  326. data/chef/travis-cookbooks/ci_environment/ragel/recipes/default.rb +28 -0
  327. data/chef/travis-cookbooks/ci_environment/ramfs/attributes/default.rb +1 -0
  328. data/chef/travis-cookbooks/ci_environment/ramfs/recipes/default.rb +27 -0
  329. data/chef/travis-cookbooks/ci_environment/rebar/README.md +3 -0
  330. data/chef/travis-cookbooks/ci_environment/rebar/attributes/default.rb +2 -0
  331. data/chef/travis-cookbooks/ci_environment/rebar/metadata.rb +7 -0
  332. data/chef/travis-cookbooks/ci_environment/rebar/recipes/default.rb +26 -0
  333. data/chef/travis-cookbooks/ci_environment/redis/attributes/default.rb +7 -0
  334. data/chef/travis-cookbooks/ci_environment/redis/recipes/default.rb +65 -0
  335. data/chef/travis-cookbooks/ci_environment/redis/recipes/ppa.rb +42 -0
  336. data/chef/travis-cookbooks/ci_environment/riak/.gitignore +1 -0
  337. data/chef/travis-cookbooks/ci_environment/riak/README.md +161 -0
  338. data/chef/travis-cookbooks/ci_environment/riak/attributes/api.rb +21 -0
  339. data/chef/travis-cookbooks/ci_environment/riak/attributes/bitcask.rb +22 -0
  340. data/chef/travis-cookbooks/ci_environment/riak/attributes/control.rb +23 -0
  341. data/chef/travis-cookbooks/ci_environment/riak/attributes/core.rb +41 -0
  342. data/chef/travis-cookbooks/ci_environment/riak/attributes/default.rb +32 -0
  343. data/chef/travis-cookbooks/ci_environment/riak/attributes/dets.rb +20 -0
  344. data/chef/travis-cookbooks/ci_environment/riak/attributes/eleveldb.rb +6 -0
  345. data/chef/travis-cookbooks/ci_environment/riak/attributes/erlang.rb +30 -0
  346. data/chef/travis-cookbooks/ci_environment/riak/attributes/err.rb +21 -0
  347. data/chef/travis-cookbooks/ci_environment/riak/attributes/innostore.rb +28 -0
  348. data/chef/travis-cookbooks/ci_environment/riak/attributes/kernel.rb +22 -0
  349. data/chef/travis-cookbooks/ci_environment/riak/attributes/kv.rb +62 -0
  350. data/chef/travis-cookbooks/ci_environment/riak/attributes/lager.rb +31 -0
  351. data/chef/travis-cookbooks/ci_environment/riak/attributes/merge.rb +22 -0
  352. data/chef/travis-cookbooks/ci_environment/riak/attributes/netdev.rb +22 -0
  353. data/chef/travis-cookbooks/ci_environment/riak/attributes/package.rb +30 -0
  354. data/chef/travis-cookbooks/ci_environment/riak/attributes/sasl.rb +25 -0
  355. data/chef/travis-cookbooks/ci_environment/riak/attributes/search.rb +19 -0
  356. data/chef/travis-cookbooks/ci_environment/riak/attributes/sysmon.rb +25 -0
  357. data/chef/travis-cookbooks/ci_environment/riak/libraries/riak_template_helper.rb +180 -0
  358. data/chef/travis-cookbooks/ci_environment/riak/metadata.rb +32 -0
  359. data/chef/travis-cookbooks/ci_environment/riak/providers/cluster.rb +80 -0
  360. data/chef/travis-cookbooks/ci_environment/riak/recipes/autoconf.rb +47 -0
  361. data/chef/travis-cookbooks/ci_environment/riak/recipes/config.rb +70 -0
  362. data/chef/travis-cookbooks/ci_environment/riak/recipes/default.rb +155 -0
  363. data/chef/travis-cookbooks/ci_environment/riak/recipes/innostore.rb +74 -0
  364. data/chef/travis-cookbooks/ci_environment/riak/recipes/iptables.rb +25 -0
  365. data/chef/travis-cookbooks/ci_environment/riak/resources/cluster.rb +27 -0
  366. data/chef/travis-cookbooks/ci_environment/riak/templates/default/app.config.erb +2 -0
  367. data/chef/travis-cookbooks/ci_environment/riak/templates/default/iptables.erb +13 -0
  368. data/chef/travis-cookbooks/ci_environment/riak/templates/default/vm.args.erb +2 -0
  369. data/chef/travis-cookbooks/ci_environment/rvm/attributes/default.rb +1 -0
  370. data/chef/travis-cookbooks/ci_environment/rvm/attributes/multi.rb +4 -0
  371. data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/default.gems +1 -0
  372. data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/global.gems +2 -0
  373. data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/jruby/global.gems +4 -0
  374. data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/ruby/1.8.6/global.gems +2 -0
  375. data/chef/travis-cookbooks/ci_environment/rvm/files/default/rvm.sh +3 -0
  376. data/chef/travis-cookbooks/ci_environment/rvm/metadata.json +43 -0
  377. data/chef/travis-cookbooks/ci_environment/rvm/metadata.rb +25 -0
  378. data/chef/travis-cookbooks/ci_environment/rvm/recipes/default.rb +76 -0
  379. data/chef/travis-cookbooks/ci_environment/rvm/recipes/multi.rb +83 -0
  380. data/chef/travis-cookbooks/ci_environment/rvm/templates/default/dot_rvmrc.sh.erb +3 -0
  381. data/chef/travis-cookbooks/ci_environment/sbt/README.md +3 -0
  382. data/chef/travis-cookbooks/ci_environment/sbt/attributes/default.rb +10 -0
  383. data/chef/travis-cookbooks/ci_environment/sbt/metadata.json +32 -0
  384. data/chef/travis-cookbooks/ci_environment/sbt/metadata.rb +8 -0
  385. data/chef/travis-cookbooks/ci_environment/sbt/recipes/default.rb +69 -0
  386. data/chef/travis-cookbooks/ci_environment/scons/recipes/default.rb +3 -0
  387. data/chef/travis-cookbooks/ci_environment/sphinx/README.md +0 -0
  388. data/chef/travis-cookbooks/ci_environment/sphinx/attributes/default.rb +8 -0
  389. data/chef/travis-cookbooks/ci_environment/sphinx/metadata.rb +17 -0
  390. data/chef/travis-cookbooks/ci_environment/sphinx/recipes/all.rb +64 -0
  391. data/chef/travis-cookbooks/ci_environment/sphinx/recipes/default.rb +24 -0
  392. data/chef/travis-cookbooks/ci_environment/sqlite/metadata.rb +11 -0
  393. data/chef/travis-cookbooks/ci_environment/sqlite/recipes/default.rb +30 -0
  394. data/chef/travis-cookbooks/ci_environment/subversion/recipes/default.rb +24 -0
  395. data/chef/travis-cookbooks/ci_environment/sweeper/recipes/default.rb +45 -0
  396. data/chef/travis-cookbooks/ci_environment/sysctl/attributes/default.rb +5 -0
  397. data/chef/travis-cookbooks/ci_environment/sysctl/recipes/default.rb +6 -0
  398. data/chef/travis-cookbooks/ci_environment/sysctl/templates/default/sysctl.conf.erb +2 -0
  399. data/chef/travis-cookbooks/ci_environment/timezone/attributes/default.rb +1 -0
  400. data/chef/travis-cookbooks/ci_environment/timezone/metadata.json +35 -0
  401. data/chef/travis-cookbooks/ci_environment/timezone/metadata.rb +9 -0
  402. data/chef/travis-cookbooks/ci_environment/timezone/recipes/._default.rb +0 -0
  403. data/chef/travis-cookbooks/ci_environment/timezone/recipes/default.rb +38 -0
  404. data/chef/travis-cookbooks/ci_environment/timezone/templates/default/timezone.conf.erb +1 -0
  405. data/chef/travis-cookbooks/ci_environment/travis_build_environment/attributes/default.rb +18 -0
  406. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/dot_gemrc.yml +1 -0
  407. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/known_hosts +1 -0
  408. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/travis_environment.sh +27 -0
  409. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/etc/default/locale.sh +1 -0
  410. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/etc/sudoers/env_keep +1 -0
  411. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/root/dot_bashrc.sh +86 -0
  412. data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/root/recover_eth0.sh +8 -0
  413. data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/ci_user.rb +104 -0
  414. data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/default.rb +136 -0
  415. data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/root.rb +44 -0
  416. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/ci_user/ci_environment_metadata.yml.erb +2 -0
  417. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/ci_user/dot_bashrc.sh +115 -0
  418. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/apt/assumeyes.erb +1 -0
  419. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/apt/timeouts.erb +3 -0
  420. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/environment.sh.erb +11 -0
  421. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/hostname.erb +12 -0
  422. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/hosts.erb +30 -0
  423. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/security/limits.conf.erb +62 -0
  424. data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/root/dot_bashrc.sh.erb +88 -0
  425. data/chef/travis-cookbooks/ci_environment/unarchivers/recipes/default.rb +29 -0
  426. data/chef/travis-cookbooks/ci_environment/util-linux/recipes/default.rb +5 -0
  427. data/chef/travis-cookbooks/ci_environment/vim/README.md +39 -0
  428. data/chef/travis-cookbooks/ci_environment/vim/attributes/default.rb +20 -0
  429. data/chef/travis-cookbooks/ci_environment/vim/metadata.rb +6 -0
  430. data/chef/travis-cookbooks/ci_environment/vim/recipes/default.rb +24 -0
  431. data/chef/travis-cookbooks/ci_environment/xserver/files/default/etc/init.d/xvfb.sh +24 -0
  432. data/chef/travis-cookbooks/ci_environment/xserver/recipes/default.rb +37 -0
  433. data/chef/travis-cookbooks/ci_environment/zeromq/attributes/default.rb +7 -0
  434. data/chef/travis-cookbooks/ci_environment/zeromq/recipes/20x.rb +33 -0
  435. data/chef/travis-cookbooks/ci_environment/zeromq/recipes/default.rb +44 -0
  436. data/chef/travis-cookbooks/ci_environment/zookeeper/recipes/cdh4.rb +51 -0
  437. data/chef/travis-cookbooks/messaging_broker/build-essential/README.md +24 -0
  438. data/chef/travis-cookbooks/messaging_broker/build-essential/metadata.rb +10 -0
  439. data/chef/travis-cookbooks/messaging_broker/build-essential/recipes/default.rb +45 -0
  440. data/chef/travis-cookbooks/messaging_broker/emacs/metadata.rb +11 -0
  441. data/chef/travis-cookbooks/messaging_broker/emacs/recipes/default.rb +21 -0
  442. data/chef/travis-cookbooks/messaging_broker/erlang/attributes/default.rb +1 -0
  443. data/chef/travis-cookbooks/messaging_broker/erlang/metadata.rb +11 -0
  444. data/chef/travis-cookbooks/messaging_broker/erlang/recipes/default.rb +27 -0
  445. data/chef/travis-cookbooks/messaging_broker/git/README.rdoc +37 -0
  446. data/chef/travis-cookbooks/messaging_broker/git/metadata.rb +16 -0
  447. data/chef/travis-cookbooks/messaging_broker/git/recipes/default.rb +24 -0
  448. data/chef/travis-cookbooks/messaging_broker/git/recipes/server.rb +34 -0
  449. data/chef/travis-cookbooks/messaging_broker/git/templates/default/sv-git-daemon-log-run.erb +2 -0
  450. data/chef/travis-cookbooks/messaging_broker/git/templates/default/sv-git-daemon-run.erb +3 -0
  451. data/chef/travis-cookbooks/messaging_broker/haproxy/README.md +79 -0
  452. data/chef/travis-cookbooks/messaging_broker/haproxy/attributes/default.rb +22 -0
  453. data/chef/travis-cookbooks/messaging_broker/haproxy/metadata.rb +13 -0
  454. data/chef/travis-cookbooks/messaging_broker/haproxy/recipes/app_lb.rb +50 -0
  455. data/chef/travis-cookbooks/messaging_broker/haproxy/recipes/default.rb +42 -0
  456. data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy-app_lb.cfg.erb +34 -0
  457. data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy-default.erb +4 -0
  458. data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy.cfg.erb +27 -0
  459. data/chef/travis-cookbooks/messaging_broker/iptables/definitions/iptables_rule.rb +35 -0
  460. data/chef/travis-cookbooks/messaging_broker/iptables/files/default/rebuild-iptables +284 -0
  461. data/chef/travis-cookbooks/messaging_broker/iptables/metadata.rb +10 -0
  462. data/chef/travis-cookbooks/messaging_broker/iptables/recipes/default.rb +50 -0
  463. data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/all_established.erb +2 -0
  464. data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/all_icmp.erb +2 -0
  465. data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/iptables_load.erb +3 -0
  466. data/chef/travis-cookbooks/messaging_broker/openssl/README.md +37 -0
  467. data/chef/travis-cookbooks/messaging_broker/openssl/libraries/secure_password.rb +37 -0
  468. data/chef/travis-cookbooks/messaging_broker/openssl/metadata.rb +8 -0
  469. data/chef/travis-cookbooks/messaging_broker/openssl/recipes/default.rb +19 -0
  470. data/chef/travis-cookbooks/messaging_broker/rabbitmq/README.md +86 -0
  471. data/chef/travis-cookbooks/messaging_broker/rabbitmq/attributes/default.rb +10 -0
  472. data/chef/travis-cookbooks/messaging_broker/rabbitmq/metadata.rb +63 -0
  473. data/chef/travis-cookbooks/messaging_broker/rabbitmq/providers/user.rb +66 -0
  474. data/chef/travis-cookbooks/messaging_broker/rabbitmq/providers/vhost.rb +34 -0
  475. data/chef/travis-cookbooks/messaging_broker/rabbitmq/recipes/cluster.rb +35 -0
  476. data/chef/travis-cookbooks/messaging_broker/rabbitmq/recipes/default.rb +51 -0
  477. data/chef/travis-cookbooks/messaging_broker/rabbitmq/resources/user.rb +25 -0
  478. data/chef/travis-cookbooks/messaging_broker/rabbitmq/resources/vhost.rb +22 -0
  479. data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/doterlang.cookie.erb +1 -0
  480. data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/rabbitmq-env.conf.erb +10 -0
  481. data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/rabbitmq_cluster.config.erb +5 -0
  482. data/chef/travis-cookbooks/worker_host/.gitignore +1 -0
  483. data/chef/travis-cookbooks/worker_host/ant/README.md +51 -0
  484. data/chef/travis-cookbooks/worker_host/ant/metadata.rb +12 -0
  485. data/chef/travis-cookbooks/worker_host/ant/recipes/default.rb +36 -0
  486. data/chef/travis-cookbooks/worker_host/apt/README.md +109 -0
  487. data/chef/travis-cookbooks/worker_host/apt/files/default/apt-cacher +9 -0
  488. data/chef/travis-cookbooks/worker_host/apt/files/default/apt-cacher.conf +144 -0
  489. data/chef/travis-cookbooks/worker_host/apt/files/default/apt-proxy-v2.conf +50 -0
  490. data/chef/travis-cookbooks/worker_host/apt/metadata.json +34 -0
  491. data/chef/travis-cookbooks/worker_host/apt/metadata.rb +13 -0
  492. data/chef/travis-cookbooks/worker_host/apt/providers/repository.rb +72 -0
  493. data/chef/travis-cookbooks/worker_host/apt/recipes/cacher-client.rb +37 -0
  494. data/chef/travis-cookbooks/worker_host/apt/recipes/cacher.rb +45 -0
  495. data/chef/travis-cookbooks/worker_host/apt/recipes/default.rb +33 -0
  496. data/chef/travis-cookbooks/worker_host/apt/resources/repository.rb +30 -0
  497. data/chef/travis-cookbooks/worker_host/build-essential/README.md +24 -0
  498. data/chef/travis-cookbooks/worker_host/build-essential/metadata.rb +10 -0
  499. data/chef/travis-cookbooks/worker_host/build-essential/recipes/default.rb +45 -0
  500. data/chef/travis-cookbooks/worker_host/chef-client/CHANGELOG.md +29 -0
  501. data/chef/travis-cookbooks/worker_host/chef-client/CONTRIBUTING +29 -0
  502. data/chef/travis-cookbooks/worker_host/chef-client/LICENSE +201 -0
  503. data/chef/travis-cookbooks/worker_host/chef-client/README.md +265 -0
  504. data/chef/travis-cookbooks/worker_host/chef-client/attributes/default.rb +70 -0
  505. data/chef/travis-cookbooks/worker_host/chef-client/metadata.json +44 -0
  506. data/chef/travis-cookbooks/worker_host/chef-client/metadata.rb +15 -0
  507. data/chef/travis-cookbooks/worker_host/chef-client/recipes/config.rb +53 -0
  508. data/chef/travis-cookbooks/worker_host/chef-client/recipes/cron.rb +83 -0
  509. data/chef/travis-cookbooks/worker_host/chef-client/recipes/default.rb +20 -0
  510. data/chef/travis-cookbooks/worker_host/chef-client/recipes/delete_validation.rb +26 -0
  511. data/chef/travis-cookbooks/worker_host/chef-client/recipes/service.rb +242 -0
  512. data/chef/travis-cookbooks/worker_host/chef-client/templates/arch/conf.d/chef-client.conf.erb +5 -0
  513. data/chef/travis-cookbooks/worker_host/chef-client/templates/arch/rc.d/chef-client.erb +76 -0
  514. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/chef-client.pill.erb +14 -0
  515. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/client.rb.erb +36 -0
  516. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/default/chef-client.erb +4 -0
  517. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/init.d/chef-client.erb +185 -0
  518. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/init/chef-client.conf.erb +17 -0
  519. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/redhat/init.d/chef-client.erb +110 -0
  520. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/redhat/sysconfig/chef-client.erb +15 -0
  521. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/solaris/chef-client.erb +78 -0
  522. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/solaris/manifest.xml.erb +103 -0
  523. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/sv-chef-client-log-run.erb +2 -0
  524. data/chef/travis-cookbooks/worker_host/chef-client/templates/default/sv-chef-client-run.erb +4 -0
  525. data/chef/travis-cookbooks/worker_host/chef-client/templates/windows/chef-client.xml.erb +38 -0
  526. data/chef/travis-cookbooks/worker_host/chef_handler/CHANGELOG.md +12 -0
  527. data/chef/travis-cookbooks/worker_host/chef_handler/CONTRIBUTING +29 -0
  528. data/chef/travis-cookbooks/worker_host/chef_handler/LICENSE +201 -0
  529. data/chef/travis-cookbooks/worker_host/chef_handler/README.md +103 -0
  530. data/chef/travis-cookbooks/worker_host/chef_handler/attributes/default.rb +21 -0
  531. data/chef/travis-cookbooks/worker_host/chef_handler/files/default/handlers/README +1 -0
  532. data/chef/travis-cookbooks/worker_host/chef_handler/files/default/handlers/campfire_handler.rb +61 -0
  533. data/chef/travis-cookbooks/worker_host/chef_handler/metadata.json +29 -0
  534. data/chef/travis-cookbooks/worker_host/chef_handler/metadata.rb +6 -0
  535. data/chef/travis-cookbooks/worker_host/chef_handler/providers/default.rb +83 -0
  536. data/chef/travis-cookbooks/worker_host/chef_handler/recipes/campfire.rb +15 -0
  537. data/chef/travis-cookbooks/worker_host/chef_handler/recipes/default.rb +31 -0
  538. data/chef/travis-cookbooks/worker_host/chef_handler/recipes/json_file.rb +28 -0
  539. data/chef/travis-cookbooks/worker_host/chef_handler/resources/default.rb +34 -0
  540. data/chef/travis-cookbooks/worker_host/collectd-librato/.gitignore +1 -0
  541. data/chef/travis-cookbooks/worker_host/collectd-librato/README.md +22 -0
  542. data/chef/travis-cookbooks/worker_host/collectd-librato/attributes/collectd_librato.rb +4 -0
  543. data/chef/travis-cookbooks/worker_host/collectd-librato/metadata.rb +11 -0
  544. data/chef/travis-cookbooks/worker_host/collectd-librato/recipes/default.rb +41 -0
  545. data/chef/travis-cookbooks/worker_host/collectd/README.rdoc +85 -0
  546. data/chef/travis-cookbooks/worker_host/collectd/attributes/default.rb +33 -0
  547. data/chef/travis-cookbooks/worker_host/collectd/definitions/collectd_plugin.rb +52 -0
  548. data/chef/travis-cookbooks/worker_host/collectd/libraries/default.rb +47 -0
  549. data/chef/travis-cookbooks/worker_host/collectd/metadata.rb +15 -0
  550. data/chef/travis-cookbooks/worker_host/collectd/recipes/client.rb +33 -0
  551. data/chef/travis-cookbooks/worker_host/collectd/recipes/collectd_web.rb +49 -0
  552. data/chef/travis-cookbooks/worker_host/collectd/recipes/default.rb +90 -0
  553. data/chef/travis-cookbooks/worker_host/collectd/recipes/server.rb +24 -0
  554. data/chef/travis-cookbooks/worker_host/collectd/templates/default/collectd.conf.erb +23 -0
  555. data/chef/travis-cookbooks/worker_host/collectd/templates/default/collectd_web.conf.erb +32 -0
  556. data/chef/travis-cookbooks/worker_host/collectd/templates/default/collection.conf.erb +2 -0
  557. data/chef/travis-cookbooks/worker_host/collectd/templates/default/plugin.conf.erb +15 -0
  558. data/chef/travis-cookbooks/worker_host/collectd/templates/default/python_plugin.conf.erb +20 -0
  559. data/chef/travis-cookbooks/worker_host/collectd/templates/default/thresholds.conf.erb +37 -0
  560. data/chef/travis-cookbooks/worker_host/disks/attributes/default.rb +1 -0
  561. data/chef/travis-cookbooks/worker_host/disks/recipes/default.rb +15 -0
  562. data/chef/travis-cookbooks/worker_host/emacs/emacs/metadata.rb +11 -0
  563. data/chef/travis-cookbooks/worker_host/emacs/emacs/recipes/default.rb +21 -0
  564. data/chef/travis-cookbooks/worker_host/emacs/metadata.rb +11 -0
  565. data/chef/travis-cookbooks/worker_host/emacs/recipes/default.rb +21 -0
  566. data/chef/travis-cookbooks/worker_host/git/README.rdoc +37 -0
  567. data/chef/travis-cookbooks/worker_host/git/metadata.rb +11 -0
  568. data/chef/travis-cookbooks/worker_host/git/recipes/default.rb +24 -0
  569. data/chef/travis-cookbooks/worker_host/git/templates/default/sv-git-daemon-log-run.erb +2 -0
  570. data/chef/travis-cookbooks/worker_host/git/templates/default/sv-git-daemon-run.erb +3 -0
  571. data/chef/travis-cookbooks/worker_host/iptables/files/default/iptables_rules +13 -0
  572. data/chef/travis-cookbooks/worker_host/iptables/metadata.rb +10 -0
  573. data/chef/travis-cookbooks/worker_host/iptables/recipes/default.rb +48 -0
  574. data/chef/travis-cookbooks/worker_host/iptables/templates/default/iptables_load.erb +3 -0
  575. data/chef/travis-cookbooks/worker_host/java/README.md +102 -0
  576. data/chef/travis-cookbooks/worker_host/java/attributes/default.rb +29 -0
  577. data/chef/travis-cookbooks/worker_host/java/files/default/java.seed +11 -0
  578. data/chef/travis-cookbooks/worker_host/java/metadata.rb +16 -0
  579. data/chef/travis-cookbooks/worker_host/java/recipes/default.rb +61 -0
  580. data/chef/travis-cookbooks/worker_host/java/recipes/openjdk.rb +48 -0
  581. data/chef/travis-cookbooks/worker_host/java/recipes/sun.rb +49 -0
  582. data/chef/travis-cookbooks/worker_host/jruby/attributes/default.rb +5 -0
  583. data/chef/travis-cookbooks/worker_host/jruby/metadata.rb +8 -0
  584. data/chef/travis-cookbooks/worker_host/jruby/recipes/default.rb +23 -0
  585. data/chef/travis-cookbooks/worker_host/monit/attributes/default.rb +3 -0
  586. data/chef/travis-cookbooks/worker_host/monit/files/default/default.monit +1 -0
  587. data/chef/travis-cookbooks/worker_host/monit/recipes/default.rb +52 -0
  588. data/chef/travis-cookbooks/worker_host/monit/templates/default/alerts.erb +12 -0
  589. data/chef/travis-cookbooks/worker_host/monit/templates/default/filesystems.erb +6 -0
  590. data/chef/travis-cookbooks/worker_host/monit/templates/default/monitrc.erb +6 -0
  591. data/chef/travis-cookbooks/worker_host/monit/templates/default/system.erb +4 -0
  592. data/chef/travis-cookbooks/worker_host/networking_basic/README.rdoc +8 -0
  593. data/chef/travis-cookbooks/worker_host/networking_basic/metadata.json +35 -0
  594. data/chef/travis-cookbooks/worker_host/networking_basic/metadata.rb +10 -0
  595. data/chef/travis-cookbooks/worker_host/networking_basic/recipes/default.rb +38 -0
  596. data/chef/travis-cookbooks/worker_host/runit/CHANGELOG.md +3 -0
  597. data/chef/travis-cookbooks/worker_host/runit/CONTRIBUTING +29 -0
  598. data/chef/travis-cookbooks/worker_host/runit/LICENSE +201 -0
  599. data/chef/travis-cookbooks/worker_host/runit/README.md +226 -0
  600. data/chef/travis-cookbooks/worker_host/runit/attributes/default.rb +31 -0
  601. data/chef/travis-cookbooks/worker_host/runit/definitions/runit_service.rb +164 -0
  602. data/chef/travis-cookbooks/worker_host/runit/files/default/runit.seed +1 -0
  603. data/chef/travis-cookbooks/worker_host/runit/files/default/runsvdir +0 -0
  604. data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-6.10/runsvdir +6 -0
  605. data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-7.04/runsvdir +7 -0
  606. data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-7.10/runsvdir +7 -0
  607. data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-8.04/runsvdir +7 -0
  608. data/chef/travis-cookbooks/worker_host/runit/metadata.json +102 -0
  609. data/chef/travis-cookbooks/worker_host/runit/metadata.rb +37 -0
  610. data/chef/travis-cookbooks/worker_host/runit/recipes/default.rb +72 -0
  611. data/chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb +32 -0
  612. data/chef/travis-cookbooks/worker_host/rvm/attributes/default.rb +20 -0
  613. data/chef/travis-cookbooks/worker_host/rvm/attributes/install.rb +1 -0
  614. data/chef/travis-cookbooks/worker_host/rvm/attributes/ree.rb +1 -0
  615. data/chef/travis-cookbooks/worker_host/rvm/attributes/ruby_187.rb +2 -0
  616. data/chef/travis-cookbooks/worker_host/rvm/attributes/ruby_192.rb +2 -0
  617. data/chef/travis-cookbooks/worker_host/rvm/files/default/rvm.sh +1 -0
  618. data/chef/travis-cookbooks/worker_host/rvm/metadata.rb +27 -0
  619. data/chef/travis-cookbooks/worker_host/rvm/recipes/default.rb +27 -0
  620. data/chef/travis-cookbooks/worker_host/rvm/recipes/install.rb +36 -0
  621. data/chef/travis-cookbooks/worker_host/rvm/recipes/multi.rb +48 -0
  622. data/chef/travis-cookbooks/worker_host/rvm/recipes/ree.rb +6 -0
  623. data/chef/travis-cookbooks/worker_host/rvm/recipes/ruby_187.rb +7 -0
  624. data/chef/travis-cookbooks/worker_host/rvm/recipes/ruby_192.rb +7 -0
  625. data/chef/travis-cookbooks/worker_host/ssh/recipes/sshd.rb +12 -0
  626. data/chef/travis-cookbooks/worker_host/ssh/templates/default/sshd_config.erb +87 -0
  627. data/chef/travis-cookbooks/worker_host/sudo/attributes/sudoers.rb +2 -0
  628. data/chef/travis-cookbooks/worker_host/sudo/recipes/default.rb +14 -0
  629. data/chef/travis-cookbooks/worker_host/sudo/templates/default/sudoers.erb +19 -0
  630. data/chef/travis-cookbooks/worker_host/travis_worker/attributes/default.rb +13 -0
  631. data/chef/travis-cookbooks/worker_host/travis_worker/metadata.rb +6 -0
  632. data/chef/travis-cookbooks/worker_host/travis_worker/recipes/default.rb +130 -0
  633. data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/sv-travis-worker-log-run.erb +2 -0
  634. data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/sv-travis-worker-run.erb +4 -0
  635. data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/travis-worker.monitrc.erb +3 -0
  636. data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/worker.yml.erb +14 -0
  637. data/chef/travis-cookbooks/worker_host/travis_worker_collectd/metadata.rb +1 -0
  638. data/chef/travis-cookbooks/worker_host/travis_worker_collectd/recipes/default.rb +11 -0
  639. data/chef/travis-cookbooks/worker_host/users/attributes/default.rb +2 -0
  640. data/chef/travis-cookbooks/worker_host/users/metadata.rb +9 -0
  641. data/chef/travis-cookbooks/worker_host/users/recipes/default.rb +83 -0
  642. data/chef/travis-cookbooks/worker_host/users/templates/default/authorized_keys.pub +4 -0
  643. data/chef/travis-cookbooks/worker_host/vim/README.md +39 -0
  644. data/chef/travis-cookbooks/worker_host/vim/attributes/default.rb +20 -0
  645. data/chef/travis-cookbooks/worker_host/vim/metadata.rb +6 -0
  646. data/chef/travis-cookbooks/worker_host/vim/recipes/default.rb +24 -0
  647. data/chef/travis-cookbooks/worker_host/virtualbox/attributes/default.rb +0 -0
  648. data/chef/travis-cookbooks/worker_host/virtualbox/metadata.rb +11 -0
  649. data/chef/travis-cookbooks/worker_host/virtualbox/recipes/default.rb +13 -0
  650. data/ci_build.sh +20 -0
  651. data/docs/ci_yml.md +0 -3
  652. data/features/ci.feature +0 -16
  653. data/features/config/secrets.yml.example +0 -1
  654. data/features/step_definitions/ci_steps.rb +8 -17
  655. data/lib/generators/lobot/config_generator.rb +1 -2
  656. data/lib/generators/lobot/install_generator.rb +2 -18
  657. data/lib/generators/lobot/templates/ci.yml +1 -1
  658. data/lib/generators/lobot/templates/ci_build.sh +7 -7
  659. data/lib/generators/lobot/templates/soloistrc +12 -3
  660. data/lib/lobot.rb +1 -0
  661. data/lib/lobot/recipes/ci.rb +78 -0
  662. data/lib/lobot/tasks/ci.rake +13 -10
  663. data/lib/lobot/version.rb +2 -2
  664. data/lobot.gemspec +5 -5
  665. data/script/bootstrap_server.sh +32 -0
  666. data/spec/install_spec.rb +3 -60
  667. metadata +754 -74
  668. data/lib/generators/lobot/templates/bootstrap_server.sh +0 -58
  669. data/lib/generators/lobot/templates/capistrano-ci.rb +0 -74
  670. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/default.rb +0 -10
  671. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/fonts.rb +0 -5
  672. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/git_config.rb +0 -11
  673. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/jenkins.rb +0 -45
  674. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/teamcity.rb +0 -43
  675. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_ci/recipes/xvfb.rb +0 -7
  676. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/files/default/cacert.pem +0 -3721
  677. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/libraries/marker.rb +0 -42
  678. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/ca_cert.rb +0 -4
  679. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/curl_devel.rb +0 -3
  680. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/daemontools.rb +0 -15
  681. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/file.rb +0 -19
  682. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/imagemagick.rb +0 -45
  683. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/libxml_prereqs.rb +0 -12
  684. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/mongo_2_0.rb +0 -28
  685. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/mysql_5_1.rb +0 -108
  686. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/mysql_5_5.rb +0 -86
  687. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/nginx.rb +0 -65
  688. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/node_js.rb +0 -15
  689. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/postgres.rb +0 -80
  690. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/sqlite.rb +0 -20
  691. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/recipes/swap.rb +0 -17
  692. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/templates/default/my-conf.erb +0 -2
  693. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/templates/default/nginx-conf.erb +0 -42
  694. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/templates/default/nginx-mime-types.erb +0 -75
  695. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/templates/default/nginx-run-script.erb +0 -2
  696. data/lib/generators/lobot/templates/chef/cookbooks/pivotal_server/templates/default/postgres-run-script.erb +0 -2
@@ -0,0 +1,3 @@
1
+ ## v0.15.0:
2
+
3
+ * [COOK-1008] - Added parameters for names of different templates in runit
@@ -0,0 +1,29 @@
1
+ If you would like to contribute, please open a ticket in JIRA:
2
+
3
+ * http://tickets.opscode.com
4
+
5
+ Create the ticket in the COOK project and use the cookbook name as the
6
+ component.
7
+
8
+ For all code contributions, we ask that contributors sign a
9
+ contributor license agreement (CLA). Instructions may be found here:
10
+
11
+ * http://wiki.opscode.com/display/chef/How+to+Contribute
12
+
13
+ When contributing changes to individual cookbooks, please do not
14
+ modify the version number in the metadata.rb. Also please do not
15
+ update the CHANGELOG.md for a new version. Not all changes to a
16
+ cookbook may be merged and released in the same versions. Opscode will
17
+ handle the version updates during the release process. You are welcome
18
+ to correct typos or otherwise make updates documentation in the
19
+ README.
20
+
21
+ If a contribution adds new platforms or platform versions, indicate
22
+ such in the body of the commit message(s), and update the relevant
23
+ COOK ticket. When writing commit messages, it is helpful for others if
24
+ you indicate the COOK ticket. For example:
25
+
26
+ git commit -m '[COOK-1041] Updated pool resource to correctly delete.'
27
+
28
+ In the ticket itself, it is also helpful if you include log output of
29
+ a successful Chef run, but this is not absolutely required.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,226 @@
1
+ Description
2
+ ===========
3
+
4
+ Installs runit and provides `runit_service` definition for managing new
5
+ services under runit.
6
+
7
+ This cookbook does not use runit to replace system init, nor are there
8
+ plans to do so.
9
+
10
+ For more information about runit:
11
+
12
+ * http://smarden.org/runit/
13
+
14
+ Requirements
15
+ ============
16
+
17
+ ## Platform:
18
+
19
+ * Debian/Ubuntu
20
+ * Gentoo
21
+
22
+ Attributes
23
+ ==========
24
+
25
+ See `attributes/default.rb` for defaults.
26
+
27
+ * `node['runit']['sv_bin']` - Full path to the `sv` binary.
28
+ * `node['runit']['chpst_bin']` - Full path to the `chpst` binary.
29
+ * `node['runit']['service_dir']` - Full path to the default "services"
30
+ directory where enabled services are linked.
31
+ * `node['runit']['sv_dir']` - Full path to the directory where the
32
+ service lives, which gets linked to `service_dir`.
33
+
34
+ Recipes
35
+ =======
36
+
37
+ default
38
+ -------
39
+
40
+ Installs and sets up runit on the system. Assumes a package
41
+ installation, so native package must exist. This recipe will make sure
42
+ that the runsvdir process gets started, ensures that inittab is
43
+ updated with the SV entry. The package will be preseeded on
44
+ ubuntu/debian signal init, otherwise the appropriate action is chosen
45
+ to notify the runsvdir command.
46
+
47
+ Older versions of Ubuntu (<= 10.04) are supported, but support may be
48
+ removed in a future version.
49
+
50
+ Definitions
51
+ ===========
52
+
53
+ The definition in this cookbook will be deprecated by an LWRP in a
54
+ future version. See __Roadmap__.
55
+
56
+ runit\_service
57
+ --------------
58
+
59
+ This definition includes `recipe[runit]` to ensure it is installed
60
+ first. As LWRPs cannot use `include_recipe`, this will not be
61
+ available in future versions, so runit will need to be in a role or
62
+ node run list.
63
+
64
+ Sets up a new service to be managed and supervised by runit. It will
65
+ be created in the `node['runit']['sv_dir']` unless otherwise specified
66
+ in the `directory` parameter (see below).
67
+
68
+ ### Parameters:
69
+
70
+ * `name` - Name of the service. This will be used in the template file
71
+ names (see __Usage__), as well as the name of the service resource
72
+ created in the definition.
73
+ * `directory` - the directory where the service's configuration and
74
+ scripts should be located. Default is `node['runit']['sv_dir']`.
75
+ * `only_if` - unused, will be removed in a future version (won't be
76
+ present in lwrp). Default is false.
77
+ * `finish_script` - if true, a finish script should be created.
78
+ Default is false. For more information see: [Description of runsv](http://smarden.org/runit/runsv.8.html).
79
+ * `control` - Array of signals to create a control directory with
80
+ control scripts (e.g., `sv-SERVICE-control-SIGNAL.erb`, where
81
+ SERVICE is the name parameter for the service name, and SIGNAL is
82
+ the Unix signal to send. Default is an empty array. For more
83
+ information see:
84
+ [Customize Control](http://smarden.org/runit/runsv.8.html)
85
+ * `run_restart` - if true, the service resource will subscribe to
86
+ changes to the run script and restart itself when it is modified.
87
+ Default is true.
88
+ * `active_directory` - used for user-specific services. Default is
89
+ `node['runit']['service_dir']`.
90
+ * `owner` - userid of the owner for the service's files, and should be
91
+ used in the run template with chpst to ensure the service runs as
92
+ that user. Default is root.
93
+ * `group` - groupid of the group for the service's files, and should
94
+ be used in the run template with chpst to ensure the service runs as
95
+ that group. Default is root.
96
+ * `template_name` - specify an alternate name for the templates
97
+ instead of basing them on the name parameter. Default is the name parameter.
98
+ * `log_template_name` - specify an alternate name for the runit log template
99
+ instead of basing them on the template_name parameter. Default is the
100
+ template_name parameter.
101
+ * `control_template_names` - specify alternate names for runit control signal
102
+ templates instead of basing them on the template_name parameter. Default
103
+ is the template_name parameter.
104
+ * `finish_script_template_name` - specify an altername for the finish script
105
+ template. Default is the template_name parameter
106
+ * `start_command` - The command used to start the service in
107
+ conjunction with the `sv` command and the `service_dir` name.
108
+ Default is `start`.
109
+ * `stop_command` - The command used to stop the service in conjunction
110
+ with the `sv` command and the `service_dir` name. Default is `stop`.
111
+ * `restart_command` - The command used to restart the service in
112
+ conjunction with the `sv` command and the `service_dir` name. You
113
+ may need to modify this to send an alternate signal to restart the
114
+ service depending on the nature of the process. Default is `restart`
115
+ * `status_command` - The command used to check status for the service in
116
+ conjunction with the `sv` command and the `service_dir` name. This
117
+ is used by chef when checking the current resource state in managing
118
+ the service. Default is `status`.
119
+ * `options` - a Hash of variables to pass into the run and log/run
120
+ templates with the template resource `variables` parameter.
121
+ Available inside the template(s) as `@options`. Default is an empty Hash.
122
+ * `env` -
123
+
124
+ ### Examples:
125
+
126
+ Create templates for `sv-myservice-run.erb` and
127
+ `sv-myservice-log-run.erb` that have the commands for starting
128
+ myservice and its logger.
129
+
130
+ runit_service "myservice"
131
+
132
+ See __Usage__ for expanded examples.
133
+
134
+ Resources/Providers
135
+ ===================
136
+
137
+ None yet. See __Roadmap__.
138
+
139
+ Usage
140
+ =====
141
+
142
+ To get runit installed on supported platforms, use `recipe[runit]`.
143
+ Once it is installed, use the `runit_service` definition to set up
144
+ services to be managed by runit. Do note that once
145
+ [CHEF-154](http://tickets.opscode.com/browse/CHEF-154) is implemented,
146
+ some of the usage/implementation here will change. In order to use the
147
+ `runit_service` definition, two templates must be created for the
148
+ service, `cookbook_name/templates/default/sv-SERVICE-run.erb` and
149
+ `cookbook_name/templates/default/sv-SERVICE-log-run.erb`. Replace
150
+ `SERVICE` with the name of the service you're managing. For more usage,
151
+ see __Examples__.
152
+
153
+ Examples
154
+ --------
155
+
156
+ We'll set up `chef-client` to run as a service under runit, such as is
157
+ done in the `chef-client` cookbook. This example will be more simple
158
+ than in that cookbook. First, create the required run template,
159
+ `chef-client/templates/default/sv-chef-client-run.erb`.
160
+
161
+ #!/bin/sh
162
+ exec 2>&1
163
+ exec /usr/bin/env chef-client -i 1800 -s 30
164
+
165
+ Then create the required log/run template,
166
+ `chef-client/templates/default/sv-chef-client-run.erb`.
167
+
168
+ #!/bin/sh
169
+ exec svlogd -tt ./main
170
+
171
+ __Note__ This will cause output of the running process to go to
172
+ `/etc/sv/chef-client/log/main/current`.
173
+
174
+ Finally, set up the service in the `chef-client` recipe with:
175
+
176
+ runit_service "chef-client"
177
+
178
+ Next, let's set up memcached with some additional options. First, the
179
+ `memcached/templates/default/sv-memcached-run.erb` template:
180
+
181
+ #!/bin/sh
182
+ exec 2>&1
183
+ exec chpst -u <%= @options[:user] %> /usr/bin/memcached -v -m <%= @options[:memory] %> -p <%= @options[:port] %>
184
+
185
+ Note that the script uses chpst (which comes with runit) to set the
186
+ user option, then starts memcached on the specified memory and port
187
+ (see below).
188
+
189
+ The log/run template,
190
+ `memcached/templates/default/sv-memcached-log-run.erb`:
191
+
192
+ #!/bin/sh
193
+ exec svlogd -tt ./main
194
+
195
+ Finally, the `runit_service` in our recipe:
196
+
197
+ runit_service "memcached" do
198
+ options({
199
+ :memory => node[:memcached][:memory],
200
+ :port => node[:memcached][:port],
201
+ :user => node[:memcached][:user]}.merge(params)
202
+ )
203
+ end
204
+
205
+ This is where the user, port and memory options used in the run
206
+ template are used.
207
+
208
+ License and Author
209
+ ==================
210
+
211
+ Author:: Adam Jacob <adam@opscode.com>
212
+ Author:: Joshua Timberman <joshua@opscode.com>
213
+
214
+ Copyright:: 2008-2011, Opscode, Inc
215
+
216
+ Licensed under the Apache License, Version 2.0 (the "License");
217
+ you may not use this file except in compliance with the License.
218
+ You may obtain a copy of the License at
219
+
220
+ http://www.apache.org/licenses/LICENSE-2.0
221
+
222
+ Unless required by applicable law or agreed to in writing, software
223
+ distributed under the License is distributed on an "AS IS" BASIS,
224
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
225
+ See the License for the specific language governing permissions and
226
+ limitations under the License.