ciborg 0.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ciborg might be problematic. Click here for more details.
- data/.gitignore +9 -16
- data/.gitmodules +3 -0
- data/.pairs +17 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +3 -1
- data/Guardfile +10 -0
- data/LICENSE.txt +17 -18
- data/README.md +152 -17
- data/Rakefile +16 -1
- data/Vagrantfile +18 -0
- data/bin/ciborg +5 -0
- data/chef/cookbooks/pivotal_ci/.gitignore +4 -0
- data/chef/cookbooks/pivotal_ci/Gemfile +3 -0
- data/chef/cookbooks/pivotal_ci/README.md +3 -0
- data/chef/cookbooks/pivotal_ci/attributes/git.rb +4 -0
- data/chef/cookbooks/pivotal_ci/attributes/jenkins.rb +3 -0
- data/chef/cookbooks/pivotal_ci/attributes/nginx.rb +1 -0
- data/chef/cookbooks/pivotal_ci/attributes/ssl.rb +5 -0
- data/chef/cookbooks/pivotal_ci/files/default/jenkins-ci.org.key +112 -0
- data/chef/cookbooks/pivotal_ci/files/default/tests/minitest/default_test.rb +75 -0
- data/chef/cookbooks/pivotal_ci/metadata.rb +32 -0
- data/chef/cookbooks/pivotal_ci/recipes/default.rb +6 -0
- data/chef/cookbooks/pivotal_ci/recipes/fonts.rb +5 -0
- data/chef/cookbooks/pivotal_ci/recipes/git_config.rb +17 -0
- data/chef/cookbooks/pivotal_ci/recipes/id_rsa.rb +32 -0
- data/chef/cookbooks/pivotal_ci/recipes/jenkins.rb +26 -0
- data/chef/cookbooks/pivotal_ci/recipes/jenkins_config.rb +48 -0
- data/chef/cookbooks/pivotal_ci/recipes/limited_travis_ci_environment.rb +39 -0
- data/chef/cookbooks/pivotal_ci/recipes/nginx.rb +19 -0
- data/chef/cookbooks/pivotal_ci/recipes/ssl_certificate.rb +44 -0
- data/chef/cookbooks/pivotal_ci/recipes/teamcity.rb +42 -0
- data/chef/cookbooks/pivotal_ci/templates/default/jenkins-job-config.xml.erb +79 -0
- data/chef/cookbooks/pivotal_ci/templates/default/nginx-conf.erb +58 -0
- data/chef/cookbooks/pivotal_ci/templates/default/nginx-htaccess.erb +3 -0
- data/chef/cookbooks/pivotal_ci/templates/default/org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.xml.erb +11 -0
- data/chef/cookbooks/pivotal_ci/templates/default/teamcity-initd.erb +44 -0
- data/chef/cookbooks/pivotal_ci/test/kitchen/Kitchenfile +4 -0
- data/chef/cookbooks/pivotal_ci/test/kitchen/cookbooks/pivotal_ci_test/attributes/default.rb +2 -0
- data/chef/cookbooks/pivotal_ci/test/kitchen/cookbooks/pivotal_ci_test/metadata.rb +10 -0
- data/chef/cookbooks/pivotal_ci/test/kitchen/cookbooks/pivotal_ci_test/recipes/bootstrap.rb +41 -0
- data/chef/cookbooks/pivotal_ci/test/kitchen/cookbooks/pivotal_ci_test/recipes/default.rb +1 -0
- data/chef/travis-cookbooks/.gitignore +7 -0
- data/chef/travis-cookbooks/LICENSE +23 -0
- data/chef/travis-cookbooks/README.md +28 -0
- data/chef/travis-cookbooks/ci_environment/.gitignore +1 -0
- data/chef/travis-cookbooks/ci_environment/ant/README.md +51 -0
- data/chef/travis-cookbooks/ci_environment/ant/metadata.rb +14 -0
- data/chef/travis-cookbooks/ci_environment/ant/recipes/default.rb +41 -0
- data/chef/travis-cookbooks/ci_environment/apt/README.md +109 -0
- data/chef/travis-cookbooks/ci_environment/apt/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-cacher +9 -0
- data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-cacher.conf +144 -0
- data/chef/travis-cookbooks/ci_environment/apt/files/default/apt-proxy-v2.conf +50 -0
- data/chef/travis-cookbooks/ci_environment/apt/metadata.json +34 -0
- data/chef/travis-cookbooks/ci_environment/apt/metadata.rb +13 -0
- data/chef/travis-cookbooks/ci_environment/apt/providers/repository.rb +73 -0
- data/chef/travis-cookbooks/ci_environment/apt/recipes/cacher-client.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/apt/recipes/cacher.rb +45 -0
- data/chef/travis-cookbooks/ci_environment/apt/recipes/default.rb +55 -0
- data/chef/travis-cookbooks/ci_environment/apt/resources/repository.rb +31 -0
- data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-10.04/sources.list.erb +31 -0
- data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-11.04/sources.list.erb +31 -0
- data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-11.10/sources.list.erb +31 -0
- data/chef/travis-cookbooks/ci_environment/apt/templates/ubuntu-12.04/sources.list.erb +54 -0
- data/chef/travis-cookbooks/ci_environment/bazaar/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/bison/attributes/default.rb +7 -0
- data/chef/travis-cookbooks/ci_environment/bison/recipes/default.rb +48 -0
- data/chef/travis-cookbooks/ci_environment/build-essential/README.md +24 -0
- data/chef/travis-cookbooks/ci_environment/build-essential/metadata.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/build-essential/recipes/default.rb +47 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/attributes/default.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/datastax.rb +43 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/package.rb +43 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/tarball.rb +158 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-cli.erb +60 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-env.sh.erb +159 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra-limits.conf.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra.init.erb +158 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra.yaml.erb +567 -0
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/log4j-server.properties.yml +43 -0
- data/chef/travis-cookbooks/ci_environment/chromium/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/clang/attributes/tarball.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/clang/metadata.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/clang/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/clang/recipes/tarball.rb +73 -0
- data/chef/travis-cookbooks/ci_environment/cmake/README.md +21 -0
- data/chef/travis-cookbooks/ci_environment/cmake/metadata.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/cmake/recipes/default.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/composer/recipes/default.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/composer/templates/default/composer.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/default.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ppa.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu-12.04.rb +39 -0
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1110_ppa.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1204_ppa.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/doxygen/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/elasticsearch/attributes/default.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/elasticsearch/recipes/default.rb +67 -0
- data/chef/travis-cookbooks/ci_environment/emacs/metadata.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/emacs/recipes/default.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/emacs/recipes/nox.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/erlang/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/erlang/metadata.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/erlang/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/firefox/recipes/default.rb +29 -0
- data/chef/travis-cookbooks/ci_environment/git/README.rdoc +37 -0
- data/chef/travis-cookbooks/ci_environment/git/files/default/git_1.7.5.4-1+github5_amd64.deb +0 -0
- data/chef/travis-cookbooks/ci_environment/git/files/default/git_1.7.5.4-1+github5_i386.deb +0 -0
- data/chef/travis-cookbooks/ci_environment/git/metadata.rb +15 -0
- data/chef/travis-cookbooks/ci_environment/git/recipes/custom.git +65 -0
- data/chef/travis-cookbooks/ci_environment/git/recipes/default.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/git/recipes/ppa.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/git/templates/default/sv-git-daemon-log-run.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/git/templates/default/sv-git-daemon-run.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/golang/README.md +35 -0
- data/chef/travis-cookbooks/ci_environment/golang/attributes/default.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/golang/recipes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/golang/recipes/multi.rb +55 -0
- data/chef/travis-cookbooks/ci_environment/golang/recipes/ppa.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/gradle/README.md +33 -0
- data/chef/travis-cookbooks/ci_environment/gradle/attributes/tarball.rb +9 -0
- data/chef/travis-cookbooks/ci_environment/gradle/files/default/etc/profile.d/gradle.sh +1 -0
- data/chef/travis-cookbooks/ci_environment/gradle/recipes/tarball.rb +65 -0
- data/chef/travis-cookbooks/ci_environment/gvm/files/ubuntu/gvm.sh +3 -0
- data/chef/travis-cookbooks/ci_environment/gvm/recipes/default.rb +44 -0
- data/chef/travis-cookbooks/ci_environment/haskell/attributes/ghc.rb +4 -0
- data/chef/travis-cookbooks/ci_environment/haskell/attributes/platform.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/haskell/files/default/cabal.sh +3 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/default.rb +38 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_package.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_source.rb +78 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_package.rb +52 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_ppa.rb +68 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_source.rb +67 -0
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/source.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/hbase/recipes/cdh4.rb +49 -0
- data/chef/travis-cookbooks/ci_environment/htop/recipes/default.rb +4 -0
- data/chef/travis-cookbooks/ci_environment/imagemagick/README.rdoc +33 -0
- data/chef/travis-cookbooks/ci_environment/imagemagick/metadata.rb +12 -0
- data/chef/travis-cookbooks/ci_environment/imagemagick/recipes/default.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/iptables/files/default/iptables_rules +13 -0
- data/chef/travis-cookbooks/ci_environment/iptables/metadata.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/iptables/recipes/default.rb +48 -0
- data/chef/travis-cookbooks/ci_environment/iptables/templates/default/iptables_load.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/java/README.md +102 -0
- data/chef/travis-cookbooks/ci_environment/java/attributes/default.rb +43 -0
- data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/java.seed +14 -0
- data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/load_jdk_switcher.sh +7 -0
- data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/oraclejdk7.jinfo +44 -0
- data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/oraclejdk8.jinfo +44 -0
- data/chef/travis-cookbooks/ci_environment/java/files/ubuntu/startssl_root_ca_installer.sh +48 -0
- data/chef/travis-cookbooks/ci_environment/java/metadata.rb +16 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/default.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/multi.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/openjdk6.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/openjdk7.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/oraclejdk7.rb +83 -0
- data/chef/travis-cookbooks/ci_environment/java/recipes/oraclejdk8.rb +71 -0
- data/chef/travis-cookbooks/ci_environment/java/templates/ubuntu/etc/profile.d/java_home.sh.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/CHANGELOG.md +7 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/LICENSE +201 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/README.md +52 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/metadata.rb +14 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/recipes/default.rb +58 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/templates/default/jpackage.repo.erb +49 -0
- data/chef/travis-cookbooks/ci_environment/jpackage/templates/fedora/jpackage.repo.erb +49 -0
- data/chef/travis-cookbooks/ci_environment/kerl/README.md +3 -0
- data/chef/travis-cookbooks/ci_environment/kerl/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/kerl/attributes/source.rb +2 -0
- data/chef/travis-cookbooks/ci_environment/kerl/files/default/erlang.cookie +1 -0
- data/chef/travis-cookbooks/ci_environment/kerl/metadata.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/kerl/recipes/default.rb +19 -0
- data/chef/travis-cookbooks/ci_environment/kerl/recipes/source.rb +104 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/attributes/tarball.rb +15 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/files/default/config/development.scala +33 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/recipes/tarball.rb +134 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/templates/ubuntu/kestrel-limits.conf.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/templates/ubuntu/kestrel.init.erb +208 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/README.rdoc +5 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/attributes/default.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/files/default/profiles.clj +1 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/metadata.json +32 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/metadata.rb +8 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/default.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein1x.rb +68 -0
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein2x.rb +82 -0
- data/chef/travis-cookbooks/ci_environment/libffi/recipes/default.rb +34 -0
- data/chef/travis-cookbooks/ci_environment/libgdbm/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/libncurses/recipes/default.rb +31 -0
- data/chef/travis-cookbooks/ci_environment/libossp-uuid/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/libqt4/recipes/default.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/libreadline/recipes/default.rb +34 -0
- data/chef/travis-cookbooks/ci_environment/libssl/recipes/098.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/libssl/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/libxml/recipes/default.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/libyaml/recipes/default.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/lighttpd/attributes/default.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/lighttpd/recipes/default.rb +39 -0
- data/chef/travis-cookbooks/ci_environment/lighttpd/templates/default/lighttpd.conf.erb +166 -0
- data/chef/travis-cookbooks/ci_environment/maven3/attributes/default.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/maven3/files/default/settings.xml +136 -0
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/default.rb +56 -0
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/package.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/ppa.rb +44 -0
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/tarball.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/maven3/templates/ubuntu-11.04/install_maven3.sh.erb +32 -0
- data/chef/travis-cookbooks/ci_environment/memcached/README.rdoc +52 -0
- data/chef/travis-cookbooks/ci_environment/memcached/attributes/default.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/memcached/attributes/ppa.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/memcached/definitions/memcached_instance.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/memcached/metadata.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/memcached/recipes/default.rb +60 -0
- data/chef/travis-cookbooks/ci_environment/memcached/recipes/ppa.rb +34 -0
- data/chef/travis-cookbooks/ci_environment/memcached/templates/default/memcached.conf.erb +54 -0
- data/chef/travis-cookbooks/ci_environment/memcached/templates/default/memcached.default.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/memcached/templates/default/sv-memcached-log-run.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/memcached/templates/default/sv-memcached-run.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/mercurial/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/mercurial/recipes/ppa.rb +36 -0
- data/chef/travis-cookbooks/ci_environment/mingw32/README.md +21 -0
- data/chef/travis-cookbooks/ci_environment/mingw32/metadata.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/mingw32/recipes/default.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/.gitignore +1 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/README.md +0 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/attributes/mongodb.rb +67 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/files/default/mongodb.list +1 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/files/default/mongodb.sysvinit.sh +261 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/metadata.rb +235 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/recipes/apt.rb +65 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/recipes/default.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/recipes/server.rb +44 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongod.upstart.erb +16 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.conf.erb +5 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.init.10gen.erb +74 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.init.erb +268 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/templates/default/mongodb.list.erb +1 -0
- data/chef/travis-cookbooks/ci_environment/mysql/README.md +141 -0
- data/chef/travis-cookbooks/ci_environment/mysql/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/mysql/attributes/server.rb +69 -0
- data/chef/travis-cookbooks/ci_environment/mysql/attributes/server_on_ramfs.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/mysql/libraries/database.rb +19 -0
- data/chef/travis-cookbooks/ci_environment/mysql/libraries/helpers.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/mysql/metadata.rb +77 -0
- data/chef/travis-cookbooks/ci_environment/mysql/providers/database.rb +81 -0
- data/chef/travis-cookbooks/ci_environment/mysql/recipes/client.rb +60 -0
- data/chef/travis-cookbooks/ci_environment/mysql/recipes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/mysql/recipes/server.rb +125 -0
- data/chef/travis-cookbooks/ci_environment/mysql/recipes/server_on_ramfs.rb +88 -0
- data/chef/travis-cookbooks/ci_environment/mysql/resources/database.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/debian.cnf.erb +12 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/grants.sql.erb +33 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/init/mysql.conf.erb +49 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/my.cnf.erb +182 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/mysql-server.seed.erb +10 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/port_mysql.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/ramfs/my.cnf.erb +175 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/.gitignore +4 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/README.md +47 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/attributes/tarball.rb +43 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/recipes/tarball.rb +164 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-limits.conf.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-server.properties.erb +75 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j-wrapper.conf.erb +26 -0
- data/chef/travis-cookbooks/ci_environment/neo4j-server/templates/default/neo4j.init.erb +55 -0
- data/chef/travis-cookbooks/ci_environment/networking_basic/recipes/default.rb +39 -0
- data/chef/travis-cookbooks/ci_environment/nodejs/attributes/multi.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/nodejs/files/default/nvm.sh +281 -0
- data/chef/travis-cookbooks/ci_environment/nodejs/files/default/profile_entry.sh +3 -0
- data/chef/travis-cookbooks/ci_environment/nodejs/recipes/multi.rb +79 -0
- data/chef/travis-cookbooks/ci_environment/nodejs/templates/default/nvm.sh.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/openssh/files/default/ssh_init.sh +181 -0
- data/chef/travis-cookbooks/ci_environment/openssh/files/default/sshd_config +54 -0
- data/chef/travis-cookbooks/ci_environment/openssh/recipes/default.rb +42 -0
- data/chef/travis-cookbooks/ci_environment/openssl/README.md +37 -0
- data/chef/travis-cookbooks/ci_environment/openssl/libraries/secure_password.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/openssl/metadata.rb +8 -0
- data/chef/travis-cookbooks/ci_environment/openssl/recipes/default.rb +19 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/attributes/default.rb +0 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/attributes/multi.rb +8 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/files/default/perlbrew.sh +7 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/metadata.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/perlbrew/recipes/multi.rb +41 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/attributes/default.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/files/ubuntu/etc/profile.d/phantomjs.sh +1 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/metadata.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/tarball.rb +69 -0
- data/chef/travis-cookbooks/ci_environment/php/README.md +5 -0
- data/chef/travis-cookbooks/ci_environment/php/attributes/default.rb +47 -0
- data/chef/travis-cookbooks/ci_environment/php/metadata.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/php/providers/pecl.rb +87 -0
- data/chef/travis-cookbooks/ci_environment/php/recipes/extensions.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/php/recipes/multi.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/php/resources/pecl.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/attributes/default.rb +19 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/after-install.d/phpunit.sh +58 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.2.17 +18 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.3.3 +6 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.5.0beta1 +5 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/metadata.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/providers/build.rb +56 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/recipes/default.rb +122 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/resources/build.rb +7 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/templates/default/default_configure_options.erb +42 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/templates/default/travis.ini.erb +9 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/attributes/default.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/files/default/phpenv.sh +5 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/metadata.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/recipes/default.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/README.rdoc +49 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/attributes/default.rb +74 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/metadata.rb +15 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/client.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server.rb +83 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_debian.rb +73 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_on_ramfs.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_redhat.rb +84 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/30-shared-memory.conf.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/debian.pg_hba.conf.erb +83 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/debian.postgresql.conf.erb +234 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/ramfs.init.erb +50 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/redhat.pg_hba.conf.erb +74 -0
- data/chef/travis-cookbooks/ci_environment/postgresql/templates/default/redhat.postgresql.conf.erb +502 -0
- data/chef/travis-cookbooks/ci_environment/pypy/attributes/default.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/pypy/files/default/etc/profile.d/pypy.sh +1 -0
- data/chef/travis-cookbooks/ci_environment/pypy/recipes/ppa.rb +39 -0
- data/chef/travis-cookbooks/ci_environment/pypy/recipes/tarball.rb +54 -0
- data/chef/travis-cookbooks/ci_environment/python/README.md +162 -0
- data/chef/travis-cookbooks/ci_environment/python/attributes/default.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/python/files/default/virtualenv_settings.sh +1 -0
- data/chef/travis-cookbooks/ci_environment/python/metadata.json +52 -0
- data/chef/travis-cookbooks/ci_environment/python/metadata.rb +17 -0
- data/chef/travis-cookbooks/ci_environment/python/providers/pip.rb +146 -0
- data/chef/travis-cookbooks/ci_environment/python/providers/virtualenv.rb +79 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/default.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/devshm.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/multi.rb +188 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/package.rb +36 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/pip.rb +38 -0
- data/chef/travis-cookbooks/ci_environment/python/recipes/virtualenv.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/python/resources/pip.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/python/resources/virtualenv.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/README.md +86 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/attributes/default.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/metadata.rb +63 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/providers/user.rb +66 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/providers/vhost.rb +34 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/recipes/default.rb +67 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/recipes/with_management_plugin.rb +13 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/resources/user.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/resources/vhost.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/doterlang.cookie.erb +1 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq-env.conf.erb +10 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq.config.erb +5 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/templates/default/rabbitmq_cluster.config.erb +5 -0
- data/chef/travis-cookbooks/ci_environment/ragel/recipes/custom.rb +56 -0
- data/chef/travis-cookbooks/ci_environment/ragel/recipes/default.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/ramfs/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/ramfs/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/rebar/README.md +3 -0
- data/chef/travis-cookbooks/ci_environment/rebar/attributes/default.rb +2 -0
- data/chef/travis-cookbooks/ci_environment/rebar/metadata.rb +7 -0
- data/chef/travis-cookbooks/ci_environment/rebar/recipes/default.rb +26 -0
- data/chef/travis-cookbooks/ci_environment/redis/attributes/default.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/redis/recipes/default.rb +68 -0
- data/chef/travis-cookbooks/ci_environment/redis/recipes/ppa.rb +42 -0
- data/chef/travis-cookbooks/ci_environment/riak/.gitignore +1 -0
- data/chef/travis-cookbooks/ci_environment/riak/README.md +161 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/api.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/bitcask.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/control.rb +23 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/core.rb +41 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/default.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/dets.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/eleveldb.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/erlang.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/err.rb +21 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/innostore.rb +28 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/kernel.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/kv.rb +62 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/lager.rb +31 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/merge.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/netdev.rb +22 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/package.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/sasl.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/search.rb +19 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/service.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/sysmon.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/riak/libraries/riak_template_helper.rb +180 -0
- data/chef/travis-cookbooks/ci_environment/riak/metadata.rb +32 -0
- data/chef/travis-cookbooks/ci_environment/riak/providers/cluster.rb +80 -0
- data/chef/travis-cookbooks/ci_environment/riak/recipes/autoconf.rb +47 -0
- data/chef/travis-cookbooks/ci_environment/riak/recipes/config.rb +70 -0
- data/chef/travis-cookbooks/ci_environment/riak/recipes/default.rb +160 -0
- data/chef/travis-cookbooks/ci_environment/riak/recipes/innostore.rb +74 -0
- data/chef/travis-cookbooks/ci_environment/riak/recipes/iptables.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/riak/resources/cluster.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/riak/templates/default/app.config.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/riak/templates/default/iptables.erb +13 -0
- data/chef/travis-cookbooks/ci_environment/riak/templates/default/vm.args.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/runit/CHANGELOG.md +3 -0
- data/chef/travis-cookbooks/ci_environment/runit/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/ci_environment/runit/LICENSE +201 -0
- data/chef/travis-cookbooks/ci_environment/runit/README.md +226 -0
- data/chef/travis-cookbooks/ci_environment/runit/attributes/default.rb +31 -0
- data/chef/travis-cookbooks/ci_environment/runit/definitions/runit_service.rb +164 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/default/runit.seed +1 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/default/runsvdir +0 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/ubuntu-6.10/runsvdir +6 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/ubuntu-7.04/runsvdir +7 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/ubuntu-7.10/runsvdir +7 -0
- data/chef/travis-cookbooks/ci_environment/runit/files/ubuntu-8.04/runsvdir +7 -0
- data/chef/travis-cookbooks/ci_environment/runit/metadata.json +102 -0
- data/chef/travis-cookbooks/ci_environment/runit/metadata.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/runit/recipes/default.rb +72 -0
- data/chef/travis-cookbooks/ci_environment/runit/templates/gentoo/runit-start.sh.erb +32 -0
- data/chef/travis-cookbooks/ci_environment/rvm/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/rvm/attributes/multi.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/default.gems +1 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/global.gems +2 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/jruby/global.gems +4 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/ruby/2.0.0/global.gems +2 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/ruby/head/global.gems +2 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/rvm.sh +3 -0
- data/chef/travis-cookbooks/ci_environment/rvm/metadata.json +43 -0
- data/chef/travis-cookbooks/ci_environment/rvm/metadata.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/rvm/recipes/default.rb +98 -0
- data/chef/travis-cookbooks/ci_environment/rvm/recipes/multi.rb +88 -0
- data/chef/travis-cookbooks/ci_environment/rvm/templates/default/bundler_config.yml.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/rvm/templates/default/dot_rvmrc.sh.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/sbt/CHANGELOG.md +20 -0
- data/chef/travis-cookbooks/ci_environment/sbt/LICENSE +201 -0
- data/chef/travis-cookbooks/ci_environment/sbt/README.md +79 -0
- data/chef/travis-cookbooks/ci_environment/sbt/attributes/default.rb +36 -0
- data/chef/travis-cookbooks/ci_environment/sbt/metadata.json +42 -0
- data/chef/travis-cookbooks/ci_environment/sbt/metadata.rb +15 -0
- data/chef/travis-cookbooks/ci_environment/sbt/recipes/default.rb +119 -0
- data/chef/travis-cookbooks/ci_environment/sbt/templates/default/jvmopts.erb +7 -0
- data/chef/travis-cookbooks/ci_environment/sbt/templates/default/sbtopts.erb +54 -0
- data/chef/travis-cookbooks/ci_environment/scons/recipes/default.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/sphinx/README.md +0 -0
- data/chef/travis-cookbooks/ci_environment/sphinx/attributes/default.rb +8 -0
- data/chef/travis-cookbooks/ci_environment/sphinx/metadata.rb +17 -0
- data/chef/travis-cookbooks/ci_environment/sphinx/recipes/all.rb +64 -0
- data/chef/travis-cookbooks/ci_environment/sphinx/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/sqlite/metadata.rb +11 -0
- data/chef/travis-cookbooks/ci_environment/sqlite/recipes/default.rb +30 -0
- data/chef/travis-cookbooks/ci_environment/sqlite/recipes/ppa.rb +34 -0
- data/chef/travis-cookbooks/ci_environment/subversion/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/sweeper/recipes/default.rb +45 -0
- data/chef/travis-cookbooks/ci_environment/sysctl/attributes/default.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/sysctl/recipes/default.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/sysctl/templates/default/sysctl.conf.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/timezone/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/timezone/metadata.json +35 -0
- data/chef/travis-cookbooks/ci_environment/timezone/metadata.rb +9 -0
- data/chef/travis-cookbooks/ci_environment/timezone/recipes/._default.rb +0 -0
- data/chef/travis-cookbooks/ci_environment/timezone/recipes/default.rb +38 -0
- data/chef/travis-cookbooks/ci_environment/timezone/templates/default/timezone.conf.erb +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/dot_erlang_dot_cookie +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/dot_gemrc.yml +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/known_hosts +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/ci_user/travis_environment.sh +30 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/etc/default/locale.sh +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/etc/sudoers/env_keep +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/root/recover_eth0.sh +8 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/ci_user.rb +113 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/default.rb +134 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/root.rb +44 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/ci_user/ci_environment_metadata.yml.erb +2 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/ci_user/dot_bashrc.sh.erb +111 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/apt/assumeyes.erb +1 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/apt/timeouts.erb +3 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/environment.sh.erb +11 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/hostname.erb +12 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/hosts.erb +30 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/etc/security/limits.conf.erb +62 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/root/dot_bashrc.sh.erb +88 -0
- data/chef/travis-cookbooks/ci_environment/unarchivers/recipes/default.rb +29 -0
- data/chef/travis-cookbooks/ci_environment/util-linux/recipes/default.rb +5 -0
- data/chef/travis-cookbooks/ci_environment/vim/README.md +39 -0
- data/chef/travis-cookbooks/ci_environment/vim/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/ci_environment/vim/metadata.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/vim/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/xserver/files/default/etc/init.d/xvfb.sh +24 -0
- data/chef/travis-cookbooks/ci_environment/xserver/metadata.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/xserver/recipes/default.rb +37 -0
- data/chef/travis-cookbooks/ci_environment/zeromq/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/ci_environment/zeromq/recipes/ppa.rb +33 -0
- data/chef/travis-cookbooks/ci_environment/zookeeper/recipes/cdh4.rb +51 -0
- data/chef/travis-cookbooks/worker_host/.gitignore +1 -0
- data/chef/travis-cookbooks/worker_host/ant/README.md +51 -0
- data/chef/travis-cookbooks/worker_host/ant/metadata.rb +12 -0
- data/chef/travis-cookbooks/worker_host/ant/recipes/default.rb +36 -0
- data/chef/travis-cookbooks/worker_host/apt/README.md +109 -0
- data/chef/travis-cookbooks/worker_host/apt/files/default/apt-cacher +9 -0
- data/chef/travis-cookbooks/worker_host/apt/files/default/apt-cacher.conf +144 -0
- data/chef/travis-cookbooks/worker_host/apt/files/default/apt-proxy-v2.conf +50 -0
- data/chef/travis-cookbooks/worker_host/apt/metadata.json +34 -0
- data/chef/travis-cookbooks/worker_host/apt/metadata.rb +13 -0
- data/chef/travis-cookbooks/worker_host/apt/providers/repository.rb +72 -0
- data/chef/travis-cookbooks/worker_host/apt/recipes/cacher-client.rb +37 -0
- data/chef/travis-cookbooks/worker_host/apt/recipes/cacher.rb +45 -0
- data/chef/travis-cookbooks/worker_host/apt/recipes/default.rb +33 -0
- data/chef/travis-cookbooks/worker_host/apt/resources/repository.rb +30 -0
- data/chef/travis-cookbooks/worker_host/build-essential/README.md +24 -0
- data/chef/travis-cookbooks/worker_host/build-essential/metadata.rb +10 -0
- data/chef/travis-cookbooks/worker_host/build-essential/recipes/default.rb +45 -0
- data/chef/travis-cookbooks/worker_host/chef-client/CHANGELOG.md +29 -0
- data/chef/travis-cookbooks/worker_host/chef-client/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/worker_host/chef-client/LICENSE +201 -0
- data/chef/travis-cookbooks/worker_host/chef-client/README.md +265 -0
- data/chef/travis-cookbooks/worker_host/chef-client/attributes/default.rb +70 -0
- data/chef/travis-cookbooks/worker_host/chef-client/metadata.json +44 -0
- data/chef/travis-cookbooks/worker_host/chef-client/metadata.rb +15 -0
- data/chef/travis-cookbooks/worker_host/chef-client/recipes/config.rb +53 -0
- data/chef/travis-cookbooks/worker_host/chef-client/recipes/cron.rb +83 -0
- data/chef/travis-cookbooks/worker_host/chef-client/recipes/default.rb +20 -0
- data/chef/travis-cookbooks/worker_host/chef-client/recipes/delete_validation.rb +26 -0
- data/chef/travis-cookbooks/worker_host/chef-client/recipes/service.rb +242 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/arch/conf.d/chef-client.conf.erb +5 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/arch/rc.d/chef-client.erb +76 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/chef-client.pill.erb +14 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/client.rb.erb +36 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/default/chef-client.erb +4 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/init.d/chef-client.erb +185 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/debian/init/chef-client.conf.erb +17 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/redhat/init.d/chef-client.erb +110 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/redhat/sysconfig/chef-client.erb +15 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/solaris/chef-client.erb +78 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/solaris/manifest.xml.erb +103 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/sv-chef-client-log-run.erb +2 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/default/sv-chef-client-run.erb +4 -0
- data/chef/travis-cookbooks/worker_host/chef-client/templates/windows/chef-client.xml.erb +38 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/CHANGELOG.md +12 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/LICENSE +201 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/README.md +103 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/attributes/default.rb +21 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/files/default/handlers/README +1 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/files/default/handlers/campfire_handler.rb +61 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/metadata.json +29 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/metadata.rb +6 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/providers/default.rb +83 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/recipes/campfire.rb +15 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/recipes/default.rb +31 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/recipes/json_file.rb +28 -0
- data/chef/travis-cookbooks/worker_host/chef_handler/resources/default.rb +34 -0
- data/chef/travis-cookbooks/worker_host/collectd-librato/.gitignore +1 -0
- data/chef/travis-cookbooks/worker_host/collectd-librato/README.md +22 -0
- data/chef/travis-cookbooks/worker_host/collectd-librato/attributes/collectd_librato.rb +4 -0
- data/chef/travis-cookbooks/worker_host/collectd-librato/metadata.rb +11 -0
- data/chef/travis-cookbooks/worker_host/collectd-librato/recipes/default.rb +41 -0
- data/chef/travis-cookbooks/worker_host/collectd/README.rdoc +85 -0
- data/chef/travis-cookbooks/worker_host/collectd/attributes/default.rb +33 -0
- data/chef/travis-cookbooks/worker_host/collectd/definitions/collectd_plugin.rb +52 -0
- data/chef/travis-cookbooks/worker_host/collectd/libraries/default.rb +47 -0
- data/chef/travis-cookbooks/worker_host/collectd/metadata.rb +15 -0
- data/chef/travis-cookbooks/worker_host/collectd/recipes/client.rb +33 -0
- data/chef/travis-cookbooks/worker_host/collectd/recipes/collectd_web.rb +49 -0
- data/chef/travis-cookbooks/worker_host/collectd/recipes/default.rb +90 -0
- data/chef/travis-cookbooks/worker_host/collectd/recipes/server.rb +24 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/collectd.conf.erb +23 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/collectd_web.conf.erb +32 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/collection.conf.erb +2 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/plugin.conf.erb +15 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/python_plugin.conf.erb +20 -0
- data/chef/travis-cookbooks/worker_host/collectd/templates/default/thresholds.conf.erb +37 -0
- data/chef/travis-cookbooks/worker_host/disks/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/worker_host/disks/recipes/default.rb +15 -0
- data/chef/travis-cookbooks/worker_host/emacs/emacs/metadata.rb +11 -0
- data/chef/travis-cookbooks/worker_host/emacs/emacs/recipes/default.rb +21 -0
- data/chef/travis-cookbooks/worker_host/emacs/metadata.rb +11 -0
- data/chef/travis-cookbooks/worker_host/emacs/recipes/default.rb +21 -0
- data/chef/travis-cookbooks/worker_host/git/README.rdoc +37 -0
- data/chef/travis-cookbooks/worker_host/git/metadata.rb +11 -0
- data/chef/travis-cookbooks/worker_host/git/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/worker_host/git/templates/default/sv-git-daemon-log-run.erb +2 -0
- data/chef/travis-cookbooks/worker_host/git/templates/default/sv-git-daemon-run.erb +3 -0
- data/chef/travis-cookbooks/worker_host/iptables/files/default/iptables_rules +13 -0
- data/chef/travis-cookbooks/worker_host/iptables/metadata.rb +10 -0
- data/chef/travis-cookbooks/worker_host/iptables/recipes/default.rb +48 -0
- data/chef/travis-cookbooks/worker_host/iptables/templates/default/iptables_load.erb +3 -0
- data/chef/travis-cookbooks/worker_host/java/README.md +102 -0
- data/chef/travis-cookbooks/worker_host/java/attributes/default.rb +29 -0
- data/chef/travis-cookbooks/worker_host/java/files/default/java.seed +11 -0
- data/chef/travis-cookbooks/worker_host/java/metadata.rb +16 -0
- data/chef/travis-cookbooks/worker_host/java/recipes/default.rb +61 -0
- data/chef/travis-cookbooks/worker_host/java/recipes/openjdk.rb +54 -0
- data/chef/travis-cookbooks/worker_host/java/recipes/sun.rb +49 -0
- data/chef/travis-cookbooks/worker_host/jruby/attributes/default.rb +5 -0
- data/chef/travis-cookbooks/worker_host/jruby/metadata.rb +8 -0
- data/chef/travis-cookbooks/worker_host/jruby/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/worker_host/monit/attributes/default.rb +3 -0
- data/chef/travis-cookbooks/worker_host/monit/files/default/default.monit +1 -0
- data/chef/travis-cookbooks/worker_host/monit/recipes/default.rb +56 -0
- data/chef/travis-cookbooks/worker_host/monit/templates/default/alerts.erb +12 -0
- data/chef/travis-cookbooks/worker_host/monit/templates/default/filesystems.erb +6 -0
- data/chef/travis-cookbooks/worker_host/monit/templates/default/monitrc.erb +6 -0
- data/chef/travis-cookbooks/worker_host/monit/templates/default/system.erb +4 -0
- data/chef/travis-cookbooks/worker_host/networking_basic/README.rdoc +8 -0
- data/chef/travis-cookbooks/worker_host/networking_basic/metadata.json +35 -0
- data/chef/travis-cookbooks/worker_host/networking_basic/metadata.rb +10 -0
- data/chef/travis-cookbooks/worker_host/networking_basic/recipes/default.rb +32 -0
- data/chef/travis-cookbooks/worker_host/ntp/.gitignore +1 -0
- data/chef/travis-cookbooks/worker_host/ntp/.travis.yml +6 -0
- data/chef/travis-cookbooks/worker_host/ntp/CHANGELOG.md +35 -0
- data/chef/travis-cookbooks/worker_host/ntp/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/worker_host/ntp/LICENSE +201 -0
- data/chef/travis-cookbooks/worker_host/ntp/README.md +163 -0
- data/chef/travis-cookbooks/worker_host/ntp/Rakefile +19 -0
- data/chef/travis-cookbooks/worker_host/ntp/TESTING.md +213 -0
- data/chef/travis-cookbooks/worker_host/ntp/attributes/default.rb +54 -0
- data/chef/travis-cookbooks/worker_host/ntp/attributes/ntpdate.rb +21 -0
- data/chef/travis-cookbooks/worker_host/ntp/chefignore +19 -0
- data/chef/travis-cookbooks/worker_host/ntp/files/default/ntp.leapseconds +222 -0
- data/chef/travis-cookbooks/worker_host/ntp/metadata.json +117 -0
- data/chef/travis-cookbooks/worker_host/ntp/metadata.rb +45 -0
- data/chef/travis-cookbooks/worker_host/ntp/recipes/default.rb +50 -0
- data/chef/travis-cookbooks/worker_host/ntp/recipes/disable.rb +22 -0
- data/chef/travis-cookbooks/worker_host/ntp/recipes/ntpdate.rb +36 -0
- data/chef/travis-cookbooks/worker_host/ntp/recipes/undo.rb +36 -0
- data/chef/travis-cookbooks/worker_host/ntp/templates/default/ntp.conf.erb +55 -0
- data/chef/travis-cookbooks/worker_host/ntp/templates/default/ntpdate.erb +14 -0
- data/chef/travis-cookbooks/worker_host/runit/CHANGELOG.md +3 -0
- data/chef/travis-cookbooks/worker_host/runit/CONTRIBUTING +29 -0
- data/chef/travis-cookbooks/worker_host/runit/LICENSE +201 -0
- data/chef/travis-cookbooks/worker_host/runit/README.md +226 -0
- data/chef/travis-cookbooks/worker_host/runit/attributes/default.rb +31 -0
- data/chef/travis-cookbooks/worker_host/runit/definitions/runit_service.rb +164 -0
- data/chef/travis-cookbooks/worker_host/runit/files/default/runit.seed +1 -0
- data/chef/travis-cookbooks/worker_host/runit/files/default/runsvdir +0 -0
- data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-6.10/runsvdir +6 -0
- data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-7.04/runsvdir +7 -0
- data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-7.10/runsvdir +7 -0
- data/chef/travis-cookbooks/worker_host/runit/files/ubuntu-8.04/runsvdir +7 -0
- data/chef/travis-cookbooks/worker_host/runit/metadata.json +102 -0
- data/chef/travis-cookbooks/worker_host/runit/metadata.rb +37 -0
- data/chef/travis-cookbooks/worker_host/runit/recipes/default.rb +72 -0
- data/chef/travis-cookbooks/worker_host/runit/templates/gentoo/runit-start.sh.erb +32 -0
- data/chef/travis-cookbooks/worker_host/rvm/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/worker_host/rvm/attributes/install.rb +1 -0
- data/chef/travis-cookbooks/worker_host/rvm/attributes/ree.rb +1 -0
- data/chef/travis-cookbooks/worker_host/rvm/attributes/ruby_187.rb +2 -0
- data/chef/travis-cookbooks/worker_host/rvm/attributes/ruby_192.rb +2 -0
- data/chef/travis-cookbooks/worker_host/rvm/files/default/rvm.sh +1 -0
- data/chef/travis-cookbooks/worker_host/rvm/metadata.rb +27 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/default.rb +27 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/install.rb +36 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/multi.rb +48 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/ree.rb +6 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/ruby_187.rb +7 -0
- data/chef/travis-cookbooks/worker_host/rvm/recipes/ruby_192.rb +7 -0
- data/chef/travis-cookbooks/worker_host/ssh/recipes/sshd.rb +12 -0
- data/chef/travis-cookbooks/worker_host/ssh/templates/default/sshd_config.erb +87 -0
- data/chef/travis-cookbooks/worker_host/sudo/attributes/sudoers.rb +2 -0
- data/chef/travis-cookbooks/worker_host/sudo/recipes/default.rb +14 -0
- data/chef/travis-cookbooks/worker_host/sudo/templates/default/sudoers.erb +19 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/files/default/signal_wrapper.rb +22 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/metadata.rb +6 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/recipes/bluebox.rb +98 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/recipes/default.rb +140 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/sv-travis-worker-log-run.erb +2 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/sv-travis-worker-run.erb +4 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/travis-worker-bluebox.monitrc.erb +8 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/travis-worker.monitrc.erb +3 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/worker-bluebox.yml.erb +31 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/worker.yml.erb +10 -0
- data/chef/travis-cookbooks/worker_host/travis_worker_collectd/metadata.rb +2 -0
- data/chef/travis-cookbooks/worker_host/travis_worker_collectd/recipes/bluebox.rb +15 -0
- data/chef/travis-cookbooks/worker_host/travis_worker_collectd/recipes/default.rb +12 -0
- data/chef/travis-cookbooks/worker_host/users/attributes/default.rb +2 -0
- data/chef/travis-cookbooks/worker_host/users/metadata.rb +9 -0
- data/chef/travis-cookbooks/worker_host/users/recipes/default.rb +88 -0
- data/chef/travis-cookbooks/worker_host/users/templates/default/authorized_keys.pub +4 -0
- data/chef/travis-cookbooks/worker_host/vim/README.md +39 -0
- data/chef/travis-cookbooks/worker_host/vim/attributes/default.rb +20 -0
- data/chef/travis-cookbooks/worker_host/vim/metadata.rb +6 -0
- data/chef/travis-cookbooks/worker_host/vim/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/worker_host/virtualbox/attributes/default.rb +0 -0
- data/chef/travis-cookbooks/worker_host/virtualbox/metadata.rb +11 -0
- data/chef/travis-cookbooks/worker_host/virtualbox/recipes/default.rb +13 -0
- data/ciborg.gemspec +33 -19
- data/config/.gitkeep +0 -0
- data/cookbooks/.gitkeep +3 -0
- data/jenkins_plugin/.travis.yml +5 -0
- data/jenkins_plugin/README.md +8 -0
- data/jenkins_plugin/pom.xml +39 -0
- data/jenkins_plugin/src/main/java/com/pivotallabs/CiborgDecorator.java +22 -0
- data/jenkins_plugin/src/main/resources/com/pivotallabs/CiborgDecorator/header.jelly +3 -0
- data/jenkins_plugin/src/main/resources/index.jelly +6 -0
- data/jenkins_plugin/src/main/webapp/ciborg.css +5 -0
- data/jenkins_plugin/src/main/webapp/ciborg.png +0 -0
- data/lib/ciborg.rb +7 -4
- data/lib/ciborg/amazon.rb +105 -0
- data/lib/ciborg/cli.rb +172 -0
- data/lib/ciborg/config.rb +214 -0
- data/lib/ciborg/configuration_wizard.rb +122 -0
- data/lib/ciborg/keychain.rb +36 -0
- data/lib/ciborg/password.rb +13 -0
- data/lib/ciborg/sobo.rb +79 -0
- data/lib/ciborg/templates/default_rails_build_script.sh +13 -0
- data/lib/ciborg/version.rb +1 -1
- data/script/bootstrap_server.sh +35 -0
- data/script/ci_build.sh +13 -0
- data/spec/assets/test_cert.crt +15 -0
- data/spec/assets/test_cert.csr +12 -0
- data/spec/assets/test_cert.key +15 -0
- data/spec/fixtures/ssh_keys/vagrant_test_key +27 -0
- data/spec/fixtures/ssh_keys/vagrant_test_key.pub +1 -0
- data/spec/lib/ciborg/amazon_spec.rb +168 -0
- data/spec/lib/ciborg/cli_spec.rb +292 -0
- data/spec/lib/ciborg/config_spec.rb +299 -0
- data/spec/lib/ciborg/configuration_wizard_spec.rb +364 -0
- data/spec/lib/ciborg/keychain_spec.rb +33 -0
- data/spec/lib/ciborg/password_spec.rb +15 -0
- data/spec/spec_helper.rb +24 -0
- data/templates/Gemfile-remote +4 -0
- metadata +928 -20
@@ -0,0 +1,25 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sean Carey (<densone@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
#
|
5
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
default.riak.sysmon.process_limit = 30
|
21
|
+
default.riak.sysmon.port_limit = 2
|
22
|
+
default.riak.sysmon.gc_ms_limit = 100
|
23
|
+
default.riak.sysmon.heap_word_limit = 40111000
|
24
|
+
default.riak.sysmon.busy_port = true
|
25
|
+
default.riak.sysmon.busy_dist_port = true
|
@@ -0,0 +1,180 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Benjamin Black (<b@b3k.us>) and Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
#
|
5
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
require 'delegate'
|
20
|
+
module RiakTemplateHelper
|
21
|
+
class Tuple < DelegateClass(Array)
|
22
|
+
include RiakTemplateHelper
|
23
|
+
def to_s(depth=1)
|
24
|
+
"{" << map {|i| value_to_erlang(i,depth) }.join(", ") << "}"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def value_to_erlang(v, depth=1)
|
29
|
+
case v
|
30
|
+
when Hash
|
31
|
+
to_erlang_config(v, depth+1)
|
32
|
+
when String
|
33
|
+
"\"#{v}\""
|
34
|
+
when Array
|
35
|
+
"[" << v.map {|i| value_to_erlang(i) }.join(", ") << "]"
|
36
|
+
else
|
37
|
+
v.to_s
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# Lifted from Ripple's Riak::TestServer
|
42
|
+
def to_erlang_config(hash, depth = 1)
|
43
|
+
padding = ' ' * depth
|
44
|
+
parent_padding = ' ' * (depth-1)
|
45
|
+
|
46
|
+
# Traverse through the hash in key sorted order so that we avoid
|
47
|
+
# any issues with the traversal order changing and forcing a Riak restart.
|
48
|
+
values = hash.keys.sort.map do |k|
|
49
|
+
v = hash[k]
|
50
|
+
|
51
|
+
if KEYLESS_ATTRIBUTES.include?(k)
|
52
|
+
#We make the assumption that all KEYLESS_ATTRIBUTES are arrays.
|
53
|
+
Tuple.new(v).to_s(depth)
|
54
|
+
else
|
55
|
+
"{#{k}, #{value_to_erlang(v, depth)}}"
|
56
|
+
end
|
57
|
+
end.join(",\n#{padding}")
|
58
|
+
"[\n#{padding}#{values}\n#{parent_padding}]"
|
59
|
+
end
|
60
|
+
|
61
|
+
#There are several configurations that are not key/value. They should be added to KEYLESS_ATTRIBUTES.
|
62
|
+
#A sample of this wold be the lager configuration.
|
63
|
+
#{"{{platform_log_dir}}/error.log", error, 10485760, "$D0", 5}
|
64
|
+
KEYLESS_ATTRIBUTES = ['lager_error_log','lager_console_log','default_user']
|
65
|
+
|
66
|
+
#Remove these configs. This will make sure package and erlang vms are not processed into the riak app.config.
|
67
|
+
RIAK_REMOVE_CONFIGS = ['package', 'erlang']
|
68
|
+
|
69
|
+
RIAK_TRANSLATE_CONFIGS = {
|
70
|
+
'api' => 'riak_api',
|
71
|
+
'core' => 'riak_core',
|
72
|
+
'kv' => 'riak_kv',
|
73
|
+
'search' => 'riak_search',
|
74
|
+
'err' => 'riak_err',
|
75
|
+
'sysmon' => 'riak_sysmon',
|
76
|
+
'control' => 'riak_control'
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
def prepare_app_config(riak)
|
81
|
+
|
82
|
+
#Each backend in multi-backend will be a keyless tuple, so add them to KEYLESS_ATTRIBUTES
|
83
|
+
#riak[:kv][:multi_backend].each_key { |k| KEYLESS_ATTRIBUTES.push(k) }
|
84
|
+
|
85
|
+
|
86
|
+
# Don't muck with the node attributes
|
87
|
+
riak = riak.to_hash
|
88
|
+
|
89
|
+
#remove net_dev_int from app.config
|
90
|
+
riak.delete('net_dev_int')
|
91
|
+
|
92
|
+
# Remove sections we don't care about
|
93
|
+
riak.reject! {|k,_| RIAK_REMOVE_CONFIGS.include? k }
|
94
|
+
|
95
|
+
# Rename sections
|
96
|
+
riak.dup.each do |k,v|
|
97
|
+
next if k.nil?
|
98
|
+
if RIAK_TRANSLATE_CONFIGS.include? k
|
99
|
+
riak[RIAK_TRANSLATE_CONFIGS[k]] = riak.delete(k)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# Only limit Erlang port range if limit_port_range is true
|
104
|
+
if riak['kernel'] && riak['kernel']['limit_port_range']
|
105
|
+
riak['kernel'].delete 'limit_port_range'
|
106
|
+
else
|
107
|
+
riak.delete 'kernel'
|
108
|
+
end
|
109
|
+
|
110
|
+
# Select the backend configuration
|
111
|
+
riak['riak_kv']['storage_backend'] = riak['riak_kv']['storage_backend'].to_sym
|
112
|
+
riak.delete('innostore') unless riak['riak_kv']['storage_backend']==:riak_kv_innostore_backend
|
113
|
+
riak.delete('eleveldb') unless riak['riak_kv']['storage_backend']==:riak_kv_eleveldb_backend
|
114
|
+
riak.delete('bitcask') unless riak['riak_kv']['storage_backend']==:riak_kv_bitcask_backend
|
115
|
+
riak['riak_kv'].delete('riak_kv_dets_backend_root') unless riak['riak_kv']['storage_backend']==:riak_kv_dets_backend
|
116
|
+
#This adds the multibackends in their own section of app.config for cs
|
117
|
+
if riak['riak_kv']['storage_backend']==:riak_cs_kv_multi_backend
|
118
|
+
node.riak.kv.multi_backend.each do |k,v|
|
119
|
+
riak[v[1].to_s.split('_')[2]] = v[2]
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
riak['riak_core']['default_bucket_props']['chash_keyfun'] = Tuple.new(riak['riak_core']['default_bucket_props']['chash_keyfun'].map {|i| i.to_sym }) if riak['riak_core']['default_bucket_props'] && riak['riak_core']['default_bucket_props']['chash_keyfun']
|
124
|
+
|
125
|
+
riak['riak_core']['default_bucket_props']['linkfun'] = Tuple.new(riak['riak_core']['default_bucket_props']['linkfun'].map {|i| i.to_sym }) if riak['riak_core']['default_bucket_props'] && riak['riak_core']['default_bucket_props']['linkfun']
|
126
|
+
|
127
|
+
allifs = lambda {|pair| pair[0] == "0.0.0.0" }
|
128
|
+
%w{http https}.each do |protocol|
|
129
|
+
if pairs = riak['riak_core'][protocol]
|
130
|
+
# If there's all-interfaces bindings ("0.0.0.0"), remove any
|
131
|
+
# specific interface bindings on the associated ports. Trying
|
132
|
+
# to bind twice will prevent riak from starting without much
|
133
|
+
# diagnostic information.
|
134
|
+
if pairs.any?(&allifs)
|
135
|
+
ports = pairs.select(&allifs).map {|pair| pair[1] }
|
136
|
+
pairs = pairs.delete_if {|(intf, port)| ports.include?(port) && intf != "0.0.0.0" }
|
137
|
+
end
|
138
|
+
riak['riak_core'][protocol] = pairs.uniq.map { |pair| Tuple.new(pair) }
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# Return the sanitized config
|
143
|
+
riak
|
144
|
+
end
|
145
|
+
|
146
|
+
RIAK_VM_ARGS = {
|
147
|
+
"node_name" => "-name",
|
148
|
+
"cookie" => "-setcookie",
|
149
|
+
"heart" => "-heart",
|
150
|
+
"kernel_polling" => "+K",
|
151
|
+
"async_threads" => "+A",
|
152
|
+
"error_logger_warnings" => "+W",
|
153
|
+
"smp" => "-smp",
|
154
|
+
"env_vars" => "-env"
|
155
|
+
}
|
156
|
+
|
157
|
+
def prepare_vm_args(config)
|
158
|
+
config.keys.sort.map do |k|
|
159
|
+
v = config[k]
|
160
|
+
key = RIAK_VM_ARGS[k.to_s]
|
161
|
+
case v
|
162
|
+
when false
|
163
|
+
nil
|
164
|
+
when Hash, Chef::Node::Attribute
|
165
|
+
# Mostly for env_vars
|
166
|
+
v.keys.sort.map { |ik| "#{key} #{ik} #{v[ik]}" }
|
167
|
+
else
|
168
|
+
"#{key} #{v}"
|
169
|
+
end
|
170
|
+
end.flatten.compact
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
class Chef::Resource::Template
|
175
|
+
include RiakTemplateHelper
|
176
|
+
end
|
177
|
+
|
178
|
+
class Erubis::Context
|
179
|
+
include RiakTemplateHelper
|
180
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Benjamin Black (<b@b3k.us>) and Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
#
|
5
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
maintainer "Basho Technologies, Inc."
|
21
|
+
maintainer_email "riak@basho.com"
|
22
|
+
license "Apache 2.0"
|
23
|
+
description "Installs and configures Riak distributed data store"
|
24
|
+
version "1.2.0"
|
25
|
+
recipe "riak", "Installs Riak"
|
26
|
+
recipe "riak::autoconf", "Automatically configure nodes from chef-server information."
|
27
|
+
recipe "riak::innostore", "Install and configure the Innostore backend."
|
28
|
+
recipe "riak::iptables", "Automatically configure iptables rules for Riak."
|
29
|
+
|
30
|
+
%w{ubuntu debian centos redhat suse fedora}.each do |os|
|
31
|
+
supports os
|
32
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
#
|
5
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
require 'timeout'
|
21
|
+
require 'chef/mixin/shell_out'
|
22
|
+
include Chef::Mixin::ShellOut
|
23
|
+
include Timeout
|
24
|
+
|
25
|
+
def load_current_resource
|
26
|
+
Chef::Application.fatal!("Can't join a Riak cluster without cluster_members.") if Chef::Config[:solo] && new_resource.cluster_members.blank?
|
27
|
+
@current_resource ||= Chef::Resource::RiakCluster.new(new_resource.cluster_name)
|
28
|
+
current_resource.ring_ready(ringready)
|
29
|
+
Chef::Application.fatal!("Can't join a Riak cluster if the local node is not running.") unless current_resource.ring_ready[:running]
|
30
|
+
current_resource.joined(!current_resource.ring_ready[:ready] || current_resource.ring_ready[:members].size > 1)
|
31
|
+
if new_resource.cluster_members
|
32
|
+
current_resource.cluster_members(new_resource.cluster_members)
|
33
|
+
else
|
34
|
+
current_resource.cluster_members([])
|
35
|
+
search(:node, "riak_core_cluster_name:#{new_resource.cluster_name}") do |n|
|
36
|
+
current_resource.cluster_members << n.riak.erlang.node_name
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
action :join do
|
42
|
+
if !current_resource.joined && peer = random_cluster_member
|
43
|
+
execute "Joining node #{new_resource.node_name} to Riak cluster #{new_resource.cluster_name}" do
|
44
|
+
command "riak-admin join #{peer}"
|
45
|
+
path [new_resource.riak_admin_path]
|
46
|
+
end
|
47
|
+
new_resource.updated_by_last_action(true)
|
48
|
+
end
|
49
|
+
action_wait_for_ringready
|
50
|
+
end
|
51
|
+
|
52
|
+
action :wait_for_ringready do
|
53
|
+
begin
|
54
|
+
timeout(new_resource.timeout) do
|
55
|
+
wait_for_ring
|
56
|
+
end
|
57
|
+
rescue Timeout::Error
|
58
|
+
Chef::Application.fatal! "Riak cluster ring did not converge within #{new_resource.timeout} seconds!"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
private
|
63
|
+
|
64
|
+
def ringready
|
65
|
+
cmd = shell_out("#{new_resource.riak_admin_path}/riak-admin ringready")
|
66
|
+
{
|
67
|
+
:ready => cmd.stdout =~ /TRUE/,
|
68
|
+
:members => cmd.stdout.scan(/'([^',]+)'/).flatten,
|
69
|
+
:running => cmd.stdout !~ /Node is not running/
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
def wait_for_ring
|
74
|
+
sleep 1 until ringready[:ready]
|
75
|
+
end
|
76
|
+
|
77
|
+
def random_cluster_member
|
78
|
+
tmp = current_resource.cluster_members.reject {|n| n == new_resource.node_name }
|
79
|
+
tmp[ rand(tmp.size) ]
|
80
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Benjamin Black (<b@b3k.us>) and Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
# Recipe:: autoconf
|
5
|
+
#
|
6
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
|
21
|
+
include_recipe "riak::default"
|
22
|
+
|
23
|
+
if node[:riak][:package][:type] == "binary"
|
24
|
+
bin_path = "/usr/sbin"
|
25
|
+
else
|
26
|
+
bin_path = "#{node[:riak][:package][:prefix]}/riak/bin"
|
27
|
+
end
|
28
|
+
|
29
|
+
# Riak's packaged init.d script doesn't work. We'll use the bin script
|
30
|
+
# instead.
|
31
|
+
bash "Start riak and wait for riak_kv to be available" do
|
32
|
+
code <<-SCRIPT
|
33
|
+
#{bin_path}/riak start
|
34
|
+
#{bin_path}/riak-admin wait-for-service riak_kv #{node[:riak][:erlang][:node_name]}
|
35
|
+
SCRIPT
|
36
|
+
timeout 45
|
37
|
+
end
|
38
|
+
|
39
|
+
# Need to make sure the riak attributes are saved to the server so we
|
40
|
+
# don't blow up in the riak_cluster provider on not having a node name.
|
41
|
+
node.save
|
42
|
+
|
43
|
+
riak_cluster node[:riak][:core][:cluster_name] do
|
44
|
+
node_name node[:riak][:erlang][:node_name]
|
45
|
+
action :join
|
46
|
+
riak_admin_path bin_path
|
47
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
#
|
5
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
6
|
+
#
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
# you may not use this file except in compliance with the License.
|
9
|
+
# You may obtain a copy of the License at
|
10
|
+
#
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
#
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
# See the License for the specific language governing permissions and
|
17
|
+
# limitations under the License.
|
18
|
+
#
|
19
|
+
|
20
|
+
# package.rb
|
21
|
+
if (node.riak.package.type.eql?("source"))
|
22
|
+
node.default.riak.package.prefix = "/usr/local"
|
23
|
+
node.default.riak.package.config_dir = node.riak.package.prefix + "/riak/etc"
|
24
|
+
end
|
25
|
+
|
26
|
+
# erlang.rb
|
27
|
+
node.default.riak.erlang.node_name = "riak@127.0.0.1"
|
28
|
+
|
29
|
+
# core.rb
|
30
|
+
# Make sure the bare minimums are set so the cluster works
|
31
|
+
if node.riak.core.to_hash['default_bucket_props'].is_a?(Mash)
|
32
|
+
node.default.riak.core.default_bucket_props.n_val = 3
|
33
|
+
node.default.riak.core.default_bucket_props.chash_keyfun = [:riak_core_util, :chash_std_keyfun]
|
34
|
+
end
|
35
|
+
|
36
|
+
# kernel.rb
|
37
|
+
unless node.riak.kernel.limit_port_range
|
38
|
+
node.riak.kernel.delete(:inet_dist_listen_min)
|
39
|
+
node.riak.kernel.delete(:inet_dist_listen_max)
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
# kv.rb
|
44
|
+
node.set.riak.kv.storage_backend = (node.riak.kv.storage_backend).to_s.to_sym
|
45
|
+
|
46
|
+
# sasl.rb
|
47
|
+
node.set.riak.sasl.errlog_type = (node.riak.sasl.errlog_type).to_s.to_sym
|
48
|
+
|
49
|
+
|
50
|
+
case node.riak.kv.storage_backend
|
51
|
+
when :riak_kv_bitcask_backend # bitcask.rb
|
52
|
+
node.set['riak'].delete(:eleveldb)
|
53
|
+
node.set['riak'].delete(:innostore)
|
54
|
+
node.set['riak'].kv.delete(:riak_kv_dets_backend_root)
|
55
|
+
unless (node.riak.bitcask).to_hash["sync_strategy"].is_a?(Mash)
|
56
|
+
node.riak.bitcask.sync_strategy = (node.riak.bitcask.sync_strategy).to_s.to_sym
|
57
|
+
end
|
58
|
+
when :riak_kv_eleveldb_backend # eleveldb.rb
|
59
|
+
node.set['riak'].delete(:bitcask)
|
60
|
+
node.set['riak'].delete(:innostore)
|
61
|
+
node.set['riak'].kv.delete(:riak_kv_dets_backend_root)
|
62
|
+
when :riak_kv_dets_backend # dets.rb
|
63
|
+
node.set['riak'].delete(:bitcask)
|
64
|
+
node.set['riak'].delete(:eleveldb)
|
65
|
+
node.set['riak'].delete(:innostore)
|
66
|
+
when # innostore.rb
|
67
|
+
node.set['riak'].delete(:bitcask)
|
68
|
+
node.set['riak'].delete(:eleveldb)
|
69
|
+
node.set['riak'].kv.delete(:riak_kv_dets_backend_root)
|
70
|
+
end
|
@@ -0,0 +1,160 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Benjamin Black (<b@b3k.us>) and Sean Cribbs (<sean@basho.com>)
|
3
|
+
# Cookbook Name:: riak
|
4
|
+
# Recipe:: default
|
5
|
+
#
|
6
|
+
# Copyright (c) 2011 Basho Technologies, Inc.
|
7
|
+
#
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
+
# you may not use this file except in compliance with the License.
|
10
|
+
# You may obtain a copy of the License at
|
11
|
+
#
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
#
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
+
# See the License for the specific language governing permissions and
|
18
|
+
# limitations under the License.
|
19
|
+
#
|
20
|
+
|
21
|
+
include_recipe "riak::config"
|
22
|
+
|
23
|
+
case node.platform
|
24
|
+
when "ubuntu" then
|
25
|
+
include_recipe "libssl::098"
|
26
|
+
end
|
27
|
+
|
28
|
+
if node[:riak][:package][:url]
|
29
|
+
package_uri = node[:riak][:package][:url]
|
30
|
+
package_file = package_uri.split("/").last
|
31
|
+
else
|
32
|
+
version_str = "#{node[:riak][:package][:version][:major]}.#{node[:riak][:package][:version][:minor]}"
|
33
|
+
base_uri = "http://s3.amazonaws.com/downloads.basho.com/riak/#{version_str}/#{version_str}.#{node[:riak][:package][:version][:incremental]}"
|
34
|
+
base_filename = "riak-#{version_str}.#{node[:riak][:package][:version][:incremental]}"
|
35
|
+
|
36
|
+
case node[:platform]
|
37
|
+
when "debian","ubuntu"
|
38
|
+
machines = {"x86_64" => "amd64", "i386" => "i386", "i686" => "i386"}
|
39
|
+
base_uri = "#{base_uri}/#{node[:platform]}/#{node[:lsb][:codename]}/"
|
40
|
+
when "redhat","centos","scientific","fedora","suse"
|
41
|
+
machines = {"x86_64" => "x86_64", "i386" => "i386", "i686" => "i686"}
|
42
|
+
base_uri = "#{base_uri}/rhel/#{node[:platform_version].to_i}/"
|
43
|
+
when "fedora"
|
44
|
+
machines = {"x86_64" => "x86_64", "i386" => "i386", "i686" => "i686"}
|
45
|
+
base_uri = "#{base_uri}/#{node[:platform]}/#{node[:platform_version].to_i}/"
|
46
|
+
end
|
47
|
+
package_file = case node[:riak][:package][:type]
|
48
|
+
when "binary"
|
49
|
+
case node[:platform]
|
50
|
+
when "debian","ubuntu"
|
51
|
+
"#{base_filename.gsub(/\-/, '_')}-#{node[:riak][:package][:version][:build]}_#{machines[node[:kernel][:machine]]}.deb"
|
52
|
+
when "centos","redhat","suse"
|
53
|
+
if node[:platform_version].to_i == 6
|
54
|
+
"#{base_filename}-#{node[:riak][:package][:version][:build]}.el6.#{machines[node[:kernel][:machine]]}.rpm"
|
55
|
+
else
|
56
|
+
"#{base_filename}-#{node[:riak][:package][:version][:build]}.el5.#{machines[node[:kernel][:machine]]}.rpm"
|
57
|
+
end
|
58
|
+
when "fedora"
|
59
|
+
"#{base_filename}-#{node[:riak][:package][:version][:build]}.fc13.#{node[:kernel][:machine]}.rpm"
|
60
|
+
end
|
61
|
+
when "source"
|
62
|
+
"#{base_filename}.tar.gz"
|
63
|
+
end
|
64
|
+
package_uri = base_uri + package_file
|
65
|
+
end
|
66
|
+
|
67
|
+
package_name = package_file.split("[-_]\d+\.").first
|
68
|
+
|
69
|
+
#if %w{debian ubuntu}.include?(node[:platform])
|
70
|
+
# include_recipe "riak::iptables"
|
71
|
+
#end
|
72
|
+
|
73
|
+
group "riak"
|
74
|
+
|
75
|
+
user "riak" do
|
76
|
+
gid "riak"
|
77
|
+
shell "/bin/bash"
|
78
|
+
home "/var/lib/riak"
|
79
|
+
system true
|
80
|
+
end
|
81
|
+
|
82
|
+
directory "/tmp/riak_pkg" do
|
83
|
+
owner "root"
|
84
|
+
mode 0755
|
85
|
+
action :create
|
86
|
+
end
|
87
|
+
|
88
|
+
remote_file "/tmp/riak_pkg/#{package_file}" do
|
89
|
+
source package_uri
|
90
|
+
owner "root"
|
91
|
+
mode 0644
|
92
|
+
checksum node[:riak][:package][:source_checksum]
|
93
|
+
not_if { File.exists?("/tmp/riak_pkg/#{package_file}") }
|
94
|
+
end
|
95
|
+
|
96
|
+
case node[:riak][:package][:type]
|
97
|
+
when "binary"
|
98
|
+
package package_name do
|
99
|
+
source "/tmp/riak_pkg/#{package_file}"
|
100
|
+
action :install
|
101
|
+
options case node[:platform]
|
102
|
+
when "debian","ubuntu"
|
103
|
+
"--force-confnew"
|
104
|
+
end
|
105
|
+
provider value_for_platform(
|
106
|
+
[ "ubuntu", "debian" ] => {"default" => Chef::Provider::Package::Dpkg},
|
107
|
+
[ "redhat", "centos", "fedora", "suse" ] => {"default" => Chef::Provider::Package::Rpm}
|
108
|
+
)
|
109
|
+
end
|
110
|
+
when "source"
|
111
|
+
execute "riak-src-unpack" do
|
112
|
+
cwd "/tmp/riak_pkg"
|
113
|
+
command "tar xvfz #{package_file}"
|
114
|
+
end
|
115
|
+
|
116
|
+
execute "riak-src-build" do
|
117
|
+
cwd "/tmp/riak_pkg/#{base_filename}"
|
118
|
+
command "make clean all rel"
|
119
|
+
end
|
120
|
+
|
121
|
+
execute "riak-src-install" do
|
122
|
+
command "mv /tmp/riak_pkg/#{base_filename}/rel/riak #{node[:riak][:package][:prefix]}"
|
123
|
+
not_if { File.directory?("#{node[:riak][:package][:prefix]}/riak") }
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
case node[:riak][:kv][:storage_backend]
|
128
|
+
when :riak_kv_innostore_backend
|
129
|
+
include_recipe "riak::innostore"
|
130
|
+
end
|
131
|
+
|
132
|
+
directory node[:riak][:package][:config_dir] do
|
133
|
+
owner "root"
|
134
|
+
mode "0755"
|
135
|
+
action :create
|
136
|
+
end
|
137
|
+
|
138
|
+
template "#{node[:riak][:package][:config_dir]}/app.config" do
|
139
|
+
source "app.config.erb"
|
140
|
+
owner "root"
|
141
|
+
mode 0644
|
142
|
+
end
|
143
|
+
|
144
|
+
template "#{node[:riak][:package][:config_dir]}/vm.args" do
|
145
|
+
variables :switches => prepare_vm_args(node[:riak][:erlang].to_hash)
|
146
|
+
source "vm.args.erb"
|
147
|
+
owner "root"
|
148
|
+
mode 0644
|
149
|
+
end
|
150
|
+
|
151
|
+
if node[:riak][:package][:type].eql?("binary")
|
152
|
+
service "riak" do
|
153
|
+
supports :start => true, :stop => true, :restart => true
|
154
|
+
if node.riak.service.enabled
|
155
|
+
action [:enable]
|
156
|
+
else
|
157
|
+
action [:disable]
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|