lobot 2.0.0pre → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -10
- data/.gitmodules +1 -1
- data/.pairs +15 -0
- data/.rvmrc +1 -1
- data/.travis.yml +5 -0
- data/Gemfile +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +67 -29
- data/Rakefile +11 -6
- data/Vagrantfile +8 -5
- data/bin/lobot +2 -4
- data/chef/cookbooks/pivotal_ci/attributes/jenkins.rb +1 -0
- data/chef/cookbooks/pivotal_ci/files/default/tests/minitest/default_test.rb +40 -2
- data/chef/cookbooks/pivotal_ci/recipes/id_rsa.rb +5 -0
- data/chef/cookbooks/pivotal_ci/recipes/jenkins_config.rb +5 -2
- data/chef/cookbooks/pivotal_ci/recipes/limited_travis_ci_environment.rb +4 -0
- data/chef/cookbooks/pivotal_ci/templates/default/jenkins-job-config.xml.erb +8 -6
- data/chef/cookbooks/pivotal_ci/test/kitchen/cookbooks/pivotal_ci_test/attributes/default.rb +0 -1
- 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 -41
- data/chef/travis-cookbooks/ci_environment/apt/recipes/default.rb +8 -7
- data/chef/travis-cookbooks/ci_environment/bazaar/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/cassandra/attributes/default.rb +6 -3
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/datastax.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/package.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/cassandra/recipes/tarball.rb +6 -2
- data/chef/travis-cookbooks/ci_environment/cassandra/templates/default/cassandra.init.erb +58 -131
- data/chef/travis-cookbooks/ci_environment/chromium/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/clang/attributes/tarball.rb +2 -7
- data/chef/travis-cookbooks/ci_environment/clang/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/clang/recipes/tarball.rb +2 -4
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu-12.04.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1110_ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/couchdb/recipes/ubuntu1204_ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/doxygen/recipes/default.rb +24 -0
- data/chef/travis-cookbooks/ci_environment/elasticsearch/attributes/default.rb +4 -1
- data/chef/travis-cookbooks/ci_environment/elasticsearch/recipes/default.rb +8 -5
- data/chef/travis-cookbooks/ci_environment/emacs/recipes/nox.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/firefox/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/git/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/git/recipes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/golang/attributes/default.rb +3 -3
- data/chef/travis-cookbooks/ci_environment/gradle/attributes/tarball.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_package.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/ghc_source.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_package.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/platform_source.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/haskell/recipes/source.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/hbase/recipes/cdh4.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/java/attributes/default.rb +4 -2
- data/chef/travis-cookbooks/ci_environment/java/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/java/recipes/oraclejdk7.rb +6 -1
- data/chef/travis-cookbooks/ci_environment/kerl/attributes/source.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/kerl/files/default/erlang.cookie +1 -0
- data/chef/travis-cookbooks/ci_environment/kerl/recipes/source.rb +8 -0
- data/chef/travis-cookbooks/ci_environment/kestrel/recipes/tarball.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/leiningen/attributes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein1x.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/leiningen/recipes/lein2x.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libffi/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libgdbm/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libncurses/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libossp-uuid/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libreadline/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libssl/recipes/098.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libssl/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/libxml/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/lighttpd/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/default.rb +5 -2
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/package.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/maven3/recipes/tarball.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/memcached/attributes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/memcached/attributes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/memcached/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/memcached/recipes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/mercurial/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/mercurial/recipes/ppa.rb +36 -0
- data/chef/travis-cookbooks/ci_environment/mongodb/attributes/mongodb.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/mongodb/files/default/mongodb.sysvinit.sh +1 -1
- data/chef/travis-cookbooks/ci_environment/mongodb/recipes/apt.rb +5 -5
- data/chef/travis-cookbooks/ci_environment/mongodb/recipes/server.rb +5 -2
- data/chef/travis-cookbooks/ci_environment/mysql/attributes/default.rb +1 -3
- data/chef/travis-cookbooks/ci_environment/mysql/recipes/server_on_ramfs.rb +6 -1
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/my.cnf.erb +0 -2
- data/chef/travis-cookbooks/ci_environment/mysql/templates/default/ramfs/my.cnf.erb +0 -2
- data/chef/travis-cookbooks/ci_environment/neo4j-server/attributes/tarball.rb +13 -2
- data/chef/travis-cookbooks/ci_environment/neo4j-server/recipes/tarball.rb +26 -2
- data/chef/travis-cookbooks/ci_environment/networking_basic/recipes/default.rb +4 -1
- data/chef/travis-cookbooks/ci_environment/nodejs/attributes/multi.rb +3 -3
- data/chef/travis-cookbooks/ci_environment/nodejs/recipes/multi.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/openssh/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/perlbrew/attributes/multi.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/phantomjs/attributes/default.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/phantomjs/metadata.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/default.rb +3 -1
- data/chef/travis-cookbooks/ci_environment/phantomjs/recipes/tarball.rb +3 -2
- data/chef/travis-cookbooks/ci_environment/php/attributes/default.rb +40 -2
- data/chef/travis-cookbooks/ci_environment/php/providers/pecl.rb +73 -0
- data/chef/travis-cookbooks/ci_environment/php/recipes/extensions.rb +25 -0
- data/chef/travis-cookbooks/ci_environment/php/recipes/multi.rb +5 -4
- data/chef/travis-cookbooks/ci_environment/php/resources/pecl.rb +10 -0
- data/chef/travis-cookbooks/ci_environment/phpbuild/attributes/default.rb +2 -2
- 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 +3 -1
- data/chef/travis-cookbooks/ci_environment/phpbuild/files/default/definitions/5.3.3 +2 -1
- data/chef/travis-cookbooks/ci_environment/phpbuild/providers/build.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/phpbuild/recipes/default.rb +8 -10
- data/chef/travis-cookbooks/ci_environment/phpbuild/templates/default/default_configure_options.erb +4 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/attributes/default.rb +6 -0
- data/chef/travis-cookbooks/ci_environment/phpenv/recipes/default.rb +11 -7
- data/chef/travis-cookbooks/ci_environment/postgresql/recipes/server_on_ramfs.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/python/attributes/default.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/python/recipes/multi.rb +10 -3
- data/chef/travis-cookbooks/ci_environment/rabbitmq/attributes/default.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/rabbitmq/recipes/default.rb +6 -2
- data/chef/travis-cookbooks/ci_environment/ragel/recipes/custom.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/ragel/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/redis/attributes/default.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/redis/recipes/default.rb +6 -3
- data/chef/travis-cookbooks/ci_environment/redis/recipes/ppa.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/riak/attributes/default.rb +1 -0
- data/chef/travis-cookbooks/ci_environment/riak/attributes/package.rb +3 -3
- data/chef/travis-cookbooks/{messaging_broker/openssl/recipes/default.rb → ci_environment/riak/attributes/service.rb} +4 -3
- data/chef/travis-cookbooks/ci_environment/riak/recipes/config.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/riak/recipes/default.rb +12 -5
- data/chef/travis-cookbooks/ci_environment/rvm/attributes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/rvm/attributes/multi.rb +2 -0
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/global.gems +1 -1
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/jruby/global.gems +1 -1
- 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/recipes/default.rb +23 -1
- data/chef/travis-cookbooks/ci_environment/rvm/recipes/multi.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/rvm/templates/default/bundler_config.yml.erb +2 -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 +78 -2
- data/chef/travis-cookbooks/ci_environment/sbt/attributes/default.rb +36 -10
- data/chef/travis-cookbooks/ci_environment/sbt/metadata.json +27 -17
- data/chef/travis-cookbooks/ci_environment/sbt/metadata.rb +13 -6
- data/chef/travis-cookbooks/ci_environment/sbt/recipes/default.rb +101 -51
- 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/sphinx/attributes/default.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/sphinx/metadata.rb +4 -4
- data/chef/travis-cookbooks/ci_environment/sphinx/recipes/all.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/sphinx/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/{messaging_broker/build-essential/recipes/default.rb → ci_environment/sqlite/recipes/ppa.rb} +13 -24
- data/chef/travis-cookbooks/ci_environment/subversion/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/sweeper/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/attributes/default.rb +2 -0
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/ci_user.rb +2 -2
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/default.rb +1 -3
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/recipes/root.rb +5 -1
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/templates/default/ci_user/{dot_bashrc.sh → dot_bashrc.sh.erb} +0 -4
- data/chef/travis-cookbooks/ci_environment/unarchivers/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/xserver/metadata.rb +3 -0
- data/chef/travis-cookbooks/ci_environment/xserver/recipes/default.rb +1 -1
- data/chef/travis-cookbooks/ci_environment/zeromq/recipes/default.rb +6 -23
- data/chef/travis-cookbooks/ci_environment/zeromq/recipes/{20x.rb → ppa.rb} +14 -14
- data/chef/travis-cookbooks/ci_environment/zookeeper/recipes/cdh4.rb +1 -1
- data/chef/travis-cookbooks/worker_host/java/metadata.rb +1 -1
- data/chef/travis-cookbooks/worker_host/java/recipes/openjdk.rb +6 -0
- data/chef/travis-cookbooks/worker_host/jruby/attributes/default.rb +1 -1
- data/chef/travis-cookbooks/worker_host/jruby/metadata.rb +1 -1
- data/chef/travis-cookbooks/worker_host/jruby/recipes/default.rb +1 -0
- data/chef/travis-cookbooks/worker_host/monit/recipes/default.rb +21 -17
- data/chef/travis-cookbooks/worker_host/networking_basic/metadata.rb +1 -1
- data/chef/travis-cookbooks/worker_host/networking_basic/recipes/default.rb +0 -6
- 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/{messaging_broker/rabbitmq/resources/vhost.rb → worker_host/ntp/attributes/ntpdate.rb} +6 -7
- 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/{messaging_broker/openssl/libraries/secure_password.rb → worker_host/ntp/recipes/undo.rb} +17 -18
- 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/rvm/recipes/multi.rb +1 -1
- data/chef/travis-cookbooks/worker_host/travis_worker/attributes/default.rb +10 -3
- 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 +2 -2
- data/chef/travis-cookbooks/worker_host/travis_worker/recipes/bluebox.rb +97 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/recipes/default.rb +25 -15
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/sv-travis-worker-run.erb +1 -1
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/worker-bluebox.yml.erb +21 -0
- data/chef/travis-cookbooks/worker_host/travis_worker/templates/default/worker.yml.erb +0 -4
- data/chef/travis-cookbooks/worker_host/travis_worker_collectd/metadata.rb +1 -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 +1 -0
- data/chef/travis-cookbooks/worker_host/users/recipes/default.rb +5 -0
- data/cookbooks/.gitkeep +3 -0
- data/lib/lobot.rb +8 -4
- data/lib/lobot/amazon.rb +33 -19
- data/lib/lobot/cli.rb +70 -46
- data/lib/lobot/config.rb +151 -19
- data/lib/lobot/configuration_wizard.rb +117 -0
- data/lib/lobot/keychain.rb +36 -0
- data/lib/lobot/password.rb +13 -0
- data/lib/lobot/sobo.rb +57 -13
- data/lib/lobot/templates/default_rails_build_script.sh +13 -0
- data/lib/lobot/version.rb +2 -2
- data/lobot.gemspec +4 -5
- data/script/bootstrap_server.sh +1 -1
- data/script/ci_build.sh +13 -0
- data/spec/assets/test_cert.crt +18 -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/lobot/amazon_spec.rb +80 -39
- data/spec/lib/lobot/cli_spec.rb +223 -154
- data/spec/lib/lobot/config_spec.rb +207 -5
- data/spec/lib/lobot/configuration_wizard_spec.rb +347 -0
- data/spec/lib/lobot/keychain_spec.rb +33 -0
- data/spec/lib/lobot/password_spec.rb +15 -0
- data/spec/spec_helper.rb +19 -1
- data/templates/Gemfile-remote +4 -0
- metadata +83 -100
- data/chef/travis-cookbooks/ci_environment/rvm/files/default/gemsets/ruby/1.8.6/global.gems +0 -2
- data/chef/travis-cookbooks/ci_environment/travis_build_environment/files/default/root/dot_bashrc.sh +0 -86
- data/chef/travis-cookbooks/ci_environment/zeromq/attributes/default.rb +0 -7
- data/chef/travis-cookbooks/messaging_broker/build-essential/README.md +0 -24
- data/chef/travis-cookbooks/messaging_broker/build-essential/metadata.rb +0 -10
- data/chef/travis-cookbooks/messaging_broker/emacs/metadata.rb +0 -11
- data/chef/travis-cookbooks/messaging_broker/emacs/recipes/default.rb +0 -21
- data/chef/travis-cookbooks/messaging_broker/erlang/attributes/default.rb +0 -1
- data/chef/travis-cookbooks/messaging_broker/erlang/metadata.rb +0 -11
- data/chef/travis-cookbooks/messaging_broker/erlang/recipes/default.rb +0 -27
- data/chef/travis-cookbooks/messaging_broker/git/README.rdoc +0 -37
- data/chef/travis-cookbooks/messaging_broker/git/metadata.rb +0 -16
- data/chef/travis-cookbooks/messaging_broker/git/recipes/default.rb +0 -24
- data/chef/travis-cookbooks/messaging_broker/git/recipes/server.rb +0 -34
- data/chef/travis-cookbooks/messaging_broker/git/templates/default/sv-git-daemon-log-run.erb +0 -2
- data/chef/travis-cookbooks/messaging_broker/git/templates/default/sv-git-daemon-run.erb +0 -3
- data/chef/travis-cookbooks/messaging_broker/haproxy/README.md +0 -79
- data/chef/travis-cookbooks/messaging_broker/haproxy/attributes/default.rb +0 -22
- data/chef/travis-cookbooks/messaging_broker/haproxy/metadata.rb +0 -13
- data/chef/travis-cookbooks/messaging_broker/haproxy/recipes/app_lb.rb +0 -50
- data/chef/travis-cookbooks/messaging_broker/haproxy/recipes/default.rb +0 -42
- data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy-app_lb.cfg.erb +0 -34
- data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy-default.erb +0 -4
- data/chef/travis-cookbooks/messaging_broker/haproxy/templates/default/haproxy.cfg.erb +0 -27
- data/chef/travis-cookbooks/messaging_broker/iptables/definitions/iptables_rule.rb +0 -35
- data/chef/travis-cookbooks/messaging_broker/iptables/files/default/rebuild-iptables +0 -284
- data/chef/travis-cookbooks/messaging_broker/iptables/metadata.rb +0 -10
- data/chef/travis-cookbooks/messaging_broker/iptables/recipes/default.rb +0 -50
- data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/all_established.erb +0 -2
- data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/all_icmp.erb +0 -2
- data/chef/travis-cookbooks/messaging_broker/iptables/templates/default/iptables_load.erb +0 -3
- data/chef/travis-cookbooks/messaging_broker/openssl/README.md +0 -37
- data/chef/travis-cookbooks/messaging_broker/openssl/metadata.rb +0 -8
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/README.md +0 -86
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/attributes/default.rb +0 -10
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/metadata.rb +0 -63
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/providers/user.rb +0 -66
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/providers/vhost.rb +0 -34
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/recipes/cluster.rb +0 -35
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/recipes/default.rb +0 -51
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/resources/user.rb +0 -25
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/doterlang.cookie.erb +0 -1
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/rabbitmq-env.conf.erb +0 -10
- data/chef/travis-cookbooks/messaging_broker/rabbitmq/templates/default/rabbitmq_cluster.config.erb +0 -5
- data/ci_build.sh +0 -20
- data/docs/ci_yml.md +0 -39
- data/features/ci.feature +0 -29
- data/features/config/secrets.yml.example +0 -4
- data/features/step_definitions/ci_steps.rb +0 -137
- data/features/support/env.rb +0 -12
- data/lib/generators/lobot/USAGE +0 -15
- data/lib/generators/lobot/config_generator.rb +0 -141
- data/lib/generators/lobot/install_generator.rb +0 -25
- data/lib/generators/lobot/templates/Capfile +0 -6
- data/lib/generators/lobot/templates/ci.yml +0 -22
- data/lib/generators/lobot/templates/ci_build.sh +0 -22
- data/lib/generators/lobot/templates/deploy-ci.rb +0 -7
- data/lib/generators/lobot/templates/soloistrc +0 -23
- data/lib/lobot/jenkins.rb +0 -17
- data/lib/lobot/railtie.rb +0 -20
- data/lib/lobot/recipes/ci.rb +0 -78
- data/lib/lobot/tasks/ci.rake +0 -93
- data/spec/lib/lobot/jenkins_spec.rb +0 -14
@@ -1,41 +1 @@
|
|
1
|
-
|
2
|
-
cwd "/home/vagrant"
|
3
|
-
code <<-BOOTSTRAP
|
4
|
-
#!/bin/bash
|
5
|
-
|
6
|
-
set -e
|
7
|
-
|
8
|
-
sudo apt-get update > /dev/null
|
9
|
-
|
10
|
-
packages="git build-essential openssl libreadline6 libreadline6-dev libreadline5 curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion pkg-config"
|
11
|
-
selections=`dpkg --get-selections`
|
12
|
-
|
13
|
-
for package in $packages
|
14
|
-
do
|
15
|
-
if ! echo "$selections" | grep "^$package\s" > /dev/null
|
16
|
-
then
|
17
|
-
to_install="$to_install $package"
|
18
|
-
fi
|
19
|
-
done
|
20
|
-
|
21
|
-
if [ ! -z "$to_install" ]
|
22
|
-
then
|
23
|
-
sudo apt-get install -y $to_install
|
24
|
-
fi
|
25
|
-
|
26
|
-
test -d /usr/local/rvm || curl -L https://get.rvm.io | sudo bash -s stable
|
27
|
-
|
28
|
-
sudo tee /etc/profile.d/rvm.sh > /dev/null <<RVMSH_CONTENT
|
29
|
-
[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"
|
30
|
-
RVMSH_CONTENT
|
31
|
-
|
32
|
-
sudo tee /etc/rvmrc > /dev/null <<RVMRC_CONTENTS
|
33
|
-
rvm_install_on_use_flag=1
|
34
|
-
rvm_trust_rvmrcs_flag=1
|
35
|
-
rvm_gemset_create_on_use_flag=1
|
36
|
-
RVMRC_CONTENTS
|
37
|
-
|
38
|
-
sudo usermod vagrant -a -G rvm
|
39
|
-
|
40
|
-
BOOTSTRAP
|
41
|
-
end
|
1
|
+
include_recipe "pivotal_ci_test::bootstrap"
|
@@ -17,6 +17,13 @@
|
|
17
17
|
# limitations under the License.
|
18
18
|
#
|
19
19
|
|
20
|
+
execute "apt-get update" do
|
21
|
+
action :run
|
22
|
+
end
|
23
|
+
execute "apt-get -y clean autoremove" do
|
24
|
+
action :nothing
|
25
|
+
end
|
26
|
+
|
20
27
|
# for recipes that require preseeding, e.g. java::oraclejdk7, to work. MK.
|
21
28
|
package "debconf-utils" do
|
22
29
|
action :install
|
@@ -27,12 +34,6 @@ package "python-software-properties" do
|
|
27
34
|
action :install
|
28
35
|
end
|
29
36
|
|
30
|
-
execute "apt-get update" do
|
31
|
-
action :run
|
32
|
-
end
|
33
|
-
execute "apt-get -y autoclean autoremove" do
|
34
|
-
action :nothing
|
35
|
-
end
|
36
37
|
template "/etc/apt/sources.list" do
|
37
38
|
source "sources.list.erb"
|
38
39
|
|
@@ -41,7 +42,7 @@ template "/etc/apt/sources.list" do
|
|
41
42
|
notifies :run, resources(:execute => "apt-get update"), :immediately
|
42
43
|
|
43
44
|
# cleans up at the end of Chef run
|
44
|
-
notifies :run, resources(:execute => "apt-get -y
|
45
|
+
notifies :run, resources(:execute => "apt-get -y clean autoremove")
|
45
46
|
end
|
46
47
|
|
47
48
|
%w{/var/cache/local /var/cache/local/preseeding}.each do |dirname|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# Cookbook Name:: bazaar
|
3
3
|
# Recipe:: default
|
4
|
-
# Copyright 2012, Travis CI Development Team <contact@travis-ci.org>
|
4
|
+
# Copyright 2012-2013, Travis CI Development Team <contact@travis-ci.org>
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,10 +1,10 @@
|
|
1
|
-
cassandra_version = "1.
|
1
|
+
cassandra_version = "1.2.0"
|
2
2
|
|
3
3
|
default[:cassandra] = {
|
4
4
|
:version => cassandra_version,
|
5
5
|
:tarball => {
|
6
6
|
:url => "http://www.eu.apache.org/dist/cassandra/#{cassandra_version}/apache-cassandra-#{cassandra_version}-bin.tar.gz",
|
7
|
-
:md5 => "
|
7
|
+
:md5 => "94b7ac630034d8eb6bc9febbefb2bd3d"
|
8
8
|
},
|
9
9
|
:user => "cassandra",
|
10
10
|
:jvm => {
|
@@ -21,5 +21,8 @@ default[:cassandra] = {
|
|
21
21
|
:conf_dir => "/etc/cassandra/",
|
22
22
|
# commit log, data directory, saved caches and so on are all stored under the data root. MK.
|
23
23
|
:data_root_dir => "/var/lib/cassandra/",
|
24
|
-
:log_dir => "/var/log/cassandra/"
|
24
|
+
:log_dir => "/var/log/cassandra/",
|
25
|
+
:service => {
|
26
|
+
:enabled => false
|
27
|
+
}
|
25
28
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Cookbook Name:: cassandra
|
3
3
|
# Recipe:: datastax
|
4
4
|
#
|
5
|
-
# Copyright 2011-
|
5
|
+
# Copyright 2011-2013, Travis CI Development Team <contact@travis-ci.org>
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
# you may not use this file except in compliance with the License.
|
@@ -2,7 +2,7 @@ n#
|
|
2
2
|
# Cookbook Name:: cassandra
|
3
3
|
# Recipe:: package
|
4
4
|
#
|
5
|
-
# Copyright 2011-
|
5
|
+
# Copyright 2011-2013, Travis CI Development Team <contact@travis-ci.org>
|
6
6
|
#
|
7
7
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
# you may not use this file except in compliance with the License.
|
@@ -149,6 +149,10 @@ end
|
|
149
149
|
|
150
150
|
service "cassandra" do
|
151
151
|
supports :start => true, :stop => true, :restart => true
|
152
|
-
|
153
|
-
|
152
|
+
|
153
|
+
if node.cassandra.service.enabled
|
154
|
+
action [:enable, :start]
|
155
|
+
else
|
156
|
+
action [:disable, :start]
|
157
|
+
end
|
154
158
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
#! /bin/sh
|
2
|
+
|
2
3
|
### BEGIN INIT INFO
|
3
4
|
# Provides: cassandra
|
4
5
|
# Required-Start: $remote_fs $network $named $time
|
@@ -12,64 +13,24 @@
|
|
12
13
|
# the management and storage of structured data.
|
13
14
|
### END INIT INFO
|
14
15
|
|
15
|
-
# Author: Eric Evans <eevans@racklabs.com>
|
16
|
-
|
17
16
|
DESC="Cassandra"
|
18
17
|
NAME=cassandra
|
19
18
|
PIDFILE=/var/run/$NAME.pid
|
20
19
|
SCRIPTNAME=/etc/init.d/$NAME
|
21
|
-
|
22
|
-
|
20
|
+
CASSANDRA_HOME=<%= node.cassandra.installation_dir %>
|
21
|
+
CASSANDRA_CONF=<%= node.cassandra.conf_dir %>
|
22
|
+
USER=<%= node.cassandra.user %>
|
23
|
+
GROUP=<%= node.cassandra.user %>
|
23
24
|
WAIT_FOR_START=10
|
24
|
-
CASSANDRA_HOME=/usr/local/cassandra
|
25
25
|
FD_LIMIT=100000
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
[ -e <%= node.cassandra.installation_dir || '/usr/local/cassandra' %>/lib/apache-cassandra-<%= node.cassandra.version %>.jar ] || exit 0
|
31
|
-
[ -e /etc/cassandra/cassandra.yaml ] || exit 0
|
32
|
-
[ -e /etc/cassandra/cassandra-env.sh ] || exit 0
|
27
|
+
[ -e $CASSANDRA_HOME/lib/apache-cassandra-<%= node.cassandra.version %>.jar ] || exit 0
|
28
|
+
[ -e $CASSANDRA_CONF/cassandra.yaml ] || exit 0
|
29
|
+
[ -e $CASSANDRA_CONF/cassandra-env.sh ] || exit 0
|
33
30
|
|
34
31
|
# Read configuration variable file if it is present
|
35
32
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
36
33
|
|
37
|
-
# If JAVA_HOME has not been set, try to determine it.
|
38
|
-
if [ -z "$JAVA_HOME" ]; then
|
39
|
-
# If java is in PATH, use a JAVA_HOME that corresponds to that. This is
|
40
|
-
# both consistent with how the upstream startup script works, and how
|
41
|
-
# Debian works (read: the use of alternatives to set a system JVM).
|
42
|
-
if [ -n "`which java`" ]; then
|
43
|
-
java=`which java`
|
44
|
-
# Dereference symlink(s)
|
45
|
-
while true; do
|
46
|
-
if [ -h "$java" ]; then
|
47
|
-
java=`readlink "$java"`
|
48
|
-
continue
|
49
|
-
fi
|
50
|
-
break
|
51
|
-
done
|
52
|
-
JAVA_HOME="`dirname $java`/../"
|
53
|
-
# No JAVA_HOME set and no java found in PATH, search for a JVM.
|
54
|
-
else
|
55
|
-
for jdir in $JVM_SEARCH_DIRS; do
|
56
|
-
if [ -x "$jdir/bin/java" ]; then
|
57
|
-
JAVA_HOME="$jdir"
|
58
|
-
break
|
59
|
-
fi
|
60
|
-
done
|
61
|
-
fi
|
62
|
-
fi
|
63
|
-
JAVA="$JAVA_HOME/bin/java"
|
64
|
-
|
65
|
-
# Read Cassandra environment file.
|
66
|
-
. /etc/cassandra/cassandra-env.sh
|
67
|
-
|
68
|
-
if [ -z "$JVM_OPTS" ]; then
|
69
|
-
echo "Initialization failed; \$JVM_OPTS not set!" >&2
|
70
|
-
exit 3
|
71
|
-
fi
|
72
|
-
|
73
34
|
# Load the VERBOSE setting and other rcS variables
|
74
35
|
. /lib/init/vars.sh
|
75
36
|
|
@@ -77,103 +38,70 @@ fi
|
|
77
38
|
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
78
39
|
. /lib/lsb/init-functions
|
79
40
|
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
classpath()
|
84
|
-
{
|
85
|
-
cp="$EXTRA_CLASSPATH"
|
86
|
-
for j in <%= node.cassandra.lib_dir %>/*.jar; do
|
87
|
-
[ "x$cp" = "x" ] && cp=$j || cp=$cp:$j
|
88
|
-
done
|
89
|
-
for j in /usr/share/$NAME/*.jar; do
|
90
|
-
[ "x$cp" = "x" ] && cp=$j || cp=$cp:$j
|
91
|
-
done
|
92
|
-
|
93
|
-
# use JNA if installed in standard location
|
94
|
-
[ -r /usr/share/java/jna.jar ] && cp="$cp:/usr/share/java/jna.jar"
|
95
|
-
|
96
|
-
# Include the conf directory for purposes of log4j-server.properties, and
|
97
|
-
# commons-daemon in support of the daemonization class.
|
98
|
-
printf "$cp:$CONFDIR:/usr/share/java/commons-daemon.jar"
|
99
|
-
}
|
100
|
-
|
101
|
-
#
|
102
|
-
# Function that returns 0 if process is running, or nonzero if not.
|
103
|
-
#
|
104
|
-
# The nonzero value is 3 if the process is simply not running, and 1 if the
|
105
|
-
# process is not running but the pidfile exists (to match the exit codes for
|
106
|
-
# the "status" command; see LSB core spec 3.1, section 20.2)
|
107
|
-
#
|
108
|
-
CMD_PATT="-user.cassandra.+CassandraDaemon"
|
41
|
+
# Return
|
42
|
+
# 0 if daemon is running
|
43
|
+
# 1 if daemon is not running
|
109
44
|
is_running()
|
110
45
|
{
|
111
|
-
|
112
|
-
|
113
|
-
grep -Eq "$CMD_PATT" "/proc/$pid/cmdline" 2>/dev/null && return 0
|
114
|
-
return 1
|
115
|
-
fi
|
116
|
-
return 3
|
46
|
+
[ -f $PIDFILE -a -d /proc/$(cat $PIDFILE) ] && return 0
|
47
|
+
return 1
|
117
48
|
}
|
118
49
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
50
|
+
# Return
|
51
|
+
# 0 if daemon has been started
|
52
|
+
# 1 if daemon was already running
|
53
|
+
# 2 if daemon could not be started
|
122
54
|
do_start()
|
123
55
|
{
|
124
|
-
# Return
|
125
|
-
# 0 if daemon has been started
|
126
|
-
# 1 if daemon was already running
|
127
|
-
# 2 if daemon could not be started
|
128
56
|
is_running && return 1
|
129
57
|
|
130
58
|
ulimit -l unlimited
|
131
59
|
ulimit -n "$FD_LIMIT"
|
132
60
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
-
|
145
|
-
-Dlog4j.configuration=log4j-server.properties \
|
146
|
-
-XX:HeapDumpPath="$cassandra_home/java_`date +%s`.hprof" \
|
147
|
-
-XX:ErrorFile="$cassandra_home/hs_err_`date +%s`.log" \
|
148
|
-
$JVM_OPTS \
|
149
|
-
org.apache.cassandra.thrift.CassandraDaemon
|
61
|
+
touch $PIDFILE
|
62
|
+
chown $USER:$GROUP $PIDFILE
|
63
|
+
|
64
|
+
start-stop-daemon --start \
|
65
|
+
--quiet \
|
66
|
+
--oknodo \
|
67
|
+
--chdir / \
|
68
|
+
--oknodo \
|
69
|
+
--chuid $USER:$GROUP \
|
70
|
+
--exec /bin/bash \
|
71
|
+
--pidfile $PIDFILE \
|
72
|
+
-- -c "$CASSANDRA_HOME/bin/cassandra -p $PIDFILE > /dev/null 2>&1"
|
150
73
|
|
151
74
|
is_running && return 0
|
75
|
+
|
152
76
|
for tries in `seq $WAIT_FOR_START`; do
|
153
77
|
sleep 1
|
154
78
|
is_running && return 0
|
155
79
|
done
|
80
|
+
|
156
81
|
return 2
|
157
82
|
}
|
158
83
|
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
84
|
+
# Returns
|
85
|
+
# 0 if daemon has been stopped
|
86
|
+
# 1 if daemon was already stopped
|
87
|
+
# 2 if daemon could not be stopped
|
88
|
+
# other if a failure occurred
|
162
89
|
do_stop()
|
163
90
|
{
|
164
|
-
# Return
|
165
|
-
# 0 if daemon has been stopped
|
166
|
-
# 1 if daemon was already stopped
|
167
|
-
# 2 if daemon could not be stopped
|
168
|
-
# other if a failure occurred
|
169
91
|
is_running || return 1
|
170
|
-
|
171
|
-
|
172
|
-
|
92
|
+
|
93
|
+
start-stop-daemon --stop \
|
94
|
+
--pidfile $PIDFILE \
|
95
|
+
--user $USER \
|
96
|
+
--retry TERM/30/KILL/5
|
97
|
+
|
98
|
+
is_running && return 2
|
99
|
+
|
100
|
+
return 0
|
173
101
|
}
|
174
102
|
|
175
103
|
case "$1" in
|
176
|
-
|
104
|
+
start)
|
177
105
|
echo "Starting $DESC"
|
178
106
|
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
179
107
|
do_start
|
@@ -182,7 +110,7 @@ case "$1" in
|
|
182
110
|
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
183
111
|
esac
|
184
112
|
;;
|
185
|
-
|
113
|
+
stop)
|
186
114
|
echo "Stopping $DESC"
|
187
115
|
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
|
188
116
|
do_stop
|
@@ -191,7 +119,7 @@ case "$1" in
|
|
191
119
|
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
192
120
|
esac
|
193
121
|
;;
|
194
|
-
|
122
|
+
restart|force-reload)
|
195
123
|
echo "Restarting $DESC"
|
196
124
|
log_daemon_msg "Restarting $DESC" "$NAME"
|
197
125
|
do_stop
|
@@ -210,17 +138,16 @@ case "$1" in
|
|
210
138
|
;;
|
211
139
|
esac
|
212
140
|
;;
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
*)
|
141
|
+
status)
|
142
|
+
is_running
|
143
|
+
stat=$?
|
144
|
+
case "$stat" in
|
145
|
+
0) log_success_msg "$DESC is running" ;;
|
146
|
+
*) log_success_msg "$DESC is not running" ;;
|
147
|
+
esac
|
148
|
+
exit "$stat"
|
149
|
+
;;
|
150
|
+
*)
|
224
151
|
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
|
225
152
|
exit 3
|
226
153
|
;;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# Cookbook Name:: Chromium
|
3
3
|
# Recipe:: default
|
4
|
-
# Copyright 2012, Travis CI
|
4
|
+
# Copyright 2012-2013, Travis CI Development Team <contact@travis-ci.org>
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,11 +1,6 @@
|
|
1
|
-
version = "3.
|
1
|
+
version = "3.2"
|
2
2
|
|
3
3
|
default[:clang] = {
|
4
4
|
:version => version,
|
5
|
-
:arch =>
|
6
|
-
when "3.1" then
|
7
|
-
kernel['machine'] =~ /x86_64/ ? "x86_64" : "x86"
|
8
|
-
else
|
9
|
-
kernel['machine'] =~ /x86_64/ ? "x86_64" : "i386"
|
10
|
-
end
|
5
|
+
:arch => (kernel['machine'] =~ /x86_64/ ? "x86_64" : "x86")
|
11
6
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# Cookbook Name:: clang
|
3
3
|
# Recipe:: default
|
4
|
-
# Copyright 2012, Travis CI
|
4
|
+
# Copyright 2012-2013, Travis CI Development Team <contact@travis-ci.org>
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# Cookbook Name:: clang
|
3
3
|
# Recipe:: tarball
|
4
|
-
# Copyright 2012, Travis CI
|
4
|
+
# Copyright 2012-2013, Travis CI Development Team <contact@travis-ci.org>
|
5
5
|
#
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -22,10 +22,8 @@
|
|
22
22
|
# THE SOFTWARE.
|
23
23
|
|
24
24
|
platform_name, ext = case [node.platform, node.platform_version]
|
25
|
-
when ["ubuntu", "11.10"]
|
26
|
-
["#{node.platform}-#{node.platform_version}", "tar.bz2"]
|
27
25
|
when ["ubuntu", "12.04"]
|
28
|
-
["#{node.platform}
|
26
|
+
["#{node.platform}-#{node.platform_version.gsub(/_/, '-')}", "tar.gz"]
|
29
27
|
end
|
30
28
|
|
31
29
|
filename = "clang+llvm-#{node.clang.version}-#{node.clang.arch}-linux-#{platform_name}"
|