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,10 +0,0 @@
|
|
1
|
-
maintainer "Opscode, Inc."
|
2
|
-
maintainer_email "cookbooks@opscode.com"
|
3
|
-
license "Apache 2.0"
|
4
|
-
description "Sets up iptables to use a script to maintain rules"
|
5
|
-
version "0.9.3"
|
6
|
-
|
7
|
-
recipe "iptables", "Installs iptables and sets up .d style config directory of iptables rules"
|
8
|
-
%w{ redhat centos debian ubuntu}.each do |os|
|
9
|
-
supports os
|
10
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: iptables
|
3
|
-
# Recipe:: default
|
4
|
-
#
|
5
|
-
# Copyright 2008-2009, Opscode, 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 "iptables"
|
21
|
-
|
22
|
-
execute "rebuild-iptables" do
|
23
|
-
command "/usr/sbin/rebuild-iptables"
|
24
|
-
action :nothing
|
25
|
-
end
|
26
|
-
|
27
|
-
directory "/etc/iptables.d" do
|
28
|
-
action :create
|
29
|
-
end
|
30
|
-
|
31
|
-
cookbook_file "/usr/sbin/rebuild-iptables" do
|
32
|
-
source "rebuild-iptables"
|
33
|
-
mode 0755
|
34
|
-
end
|
35
|
-
|
36
|
-
case node[:platform]
|
37
|
-
when "redhat", "centos"
|
38
|
-
iptables_save_file = "/etc/sysconfig/iptables"
|
39
|
-
when "ubuntu", "debian"
|
40
|
-
iptables_save_file = "/etc/iptables/general"
|
41
|
-
end
|
42
|
-
|
43
|
-
template "/etc/network/if-pre-up.d/iptables_load" do
|
44
|
-
source "iptables_load.erb"
|
45
|
-
mode 0755
|
46
|
-
variables :iptables_save_file => iptables_save_file
|
47
|
-
end
|
48
|
-
|
49
|
-
iptables_rule "all_established"
|
50
|
-
iptables_rule "all_icmp"
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Description
|
2
|
-
====
|
3
|
-
|
4
|
-
Provide a library method to generate secure random passwords in recipes.
|
5
|
-
|
6
|
-
Requirements
|
7
|
-
====
|
8
|
-
|
9
|
-
Works on any platform with OpenSSL Ruby bindings installed, which are a requirement for Chef anyway.
|
10
|
-
|
11
|
-
Usage
|
12
|
-
====
|
13
|
-
|
14
|
-
Most often this will be used to generate a secure password for an attribute.
|
15
|
-
|
16
|
-
include Opscode::OpenSSL::Password
|
17
|
-
|
18
|
-
set_unless[:my_password] = secure_password
|
19
|
-
|
20
|
-
License and Author
|
21
|
-
====
|
22
|
-
|
23
|
-
Author:: Joshua Timberman (<joshua@opscode.com>)
|
24
|
-
|
25
|
-
Copyright:: 2009-2011, Opscode, Inc
|
26
|
-
|
27
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
28
|
-
you may not use this file except in compliance with the License.
|
29
|
-
You may obtain a copy of the License at
|
30
|
-
|
31
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
32
|
-
|
33
|
-
Unless required by applicable law or agreed to in writing, software
|
34
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
35
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
36
|
-
See the License for the specific language governing permissions and
|
37
|
-
limitations under the License.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
maintainer "Opscode, Inc."
|
2
|
-
maintainer_email "cookbooks@opscode.com"
|
3
|
-
license "Apache 2.0"
|
4
|
-
description "Provides a library with a method for generating secure random passwords."
|
5
|
-
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
6
|
-
version "1.0.0"
|
7
|
-
|
8
|
-
recipe "openssl", "Empty, this cookbook provides a library, see README.md"
|
@@ -1,86 +0,0 @@
|
|
1
|
-
Description
|
2
|
-
===========
|
3
|
-
This is a cookbook for managing RabbitMQ with Chef. It uses the default settings, but can also be configured via attributes.
|
4
|
-
|
5
|
-
Recipes
|
6
|
-
=======
|
7
|
-
default
|
8
|
-
-------
|
9
|
-
Installs `rabbitmq-server` from RabbitMQ.com's APT repository. The distribution-provided version was quite old and newer features were needed.
|
10
|
-
|
11
|
-
cluster
|
12
|
-
-------
|
13
|
-
Configures nodes to be members of a RabbitMQ cluster, but does not actually join them.
|
14
|
-
|
15
|
-
Resources/Providers
|
16
|
-
===================
|
17
|
-
There are 2 LWRPs for interacting with RabbitMQ.
|
18
|
-
|
19
|
-
user
|
20
|
-
----
|
21
|
-
Adds and deletes users, fairly simplistic permissions management.
|
22
|
-
|
23
|
-
- `:add` adds a `user` with a `password`
|
24
|
-
- `:delete` deletes a `user`
|
25
|
-
- `:set_permissions` sets the `permissions` for a `user`, `vhost` is optional
|
26
|
-
- `:clear_permissions` clears the permissions for a `user`
|
27
|
-
|
28
|
-
### Examples
|
29
|
-
``` ruby
|
30
|
-
rabbitmq_user "guest" do
|
31
|
-
action :delete
|
32
|
-
end
|
33
|
-
|
34
|
-
rabbitmq_user "nova" do
|
35
|
-
password "sekret"
|
36
|
-
action :add
|
37
|
-
end
|
38
|
-
|
39
|
-
rabbitmq_user "nova" do
|
40
|
-
vhost "/nova"
|
41
|
-
permissions "\".*\" \".*\" \".*\""
|
42
|
-
action :set_permissions
|
43
|
-
end
|
44
|
-
```
|
45
|
-
|
46
|
-
vhost
|
47
|
-
-----
|
48
|
-
Adds and deletes vhosts.
|
49
|
-
|
50
|
-
- `:add` adds a `vhost`
|
51
|
-
- `:delete` deletes a `vhost`
|
52
|
-
|
53
|
-
### Example
|
54
|
-
``` ruby
|
55
|
-
rabbitmq_vhost "/nova" do
|
56
|
-
action :add
|
57
|
-
end
|
58
|
-
```
|
59
|
-
|
60
|
-
Limitations
|
61
|
-
===========
|
62
|
-
It is quite useful as is, but clustering configuration does not currently do the dance to join the cluster members to each other.
|
63
|
-
|
64
|
-
The rabbitmq::chef recipe was only used for the chef-server cookbook and has been moved to chef-server::rabbitmq.
|
65
|
-
|
66
|
-
License and Author
|
67
|
-
==================
|
68
|
-
Author:: Benjamin Black <b@b3k.us>
|
69
|
-
|
70
|
-
Author:: Daniel DeLeo <dan@kallistec.com>
|
71
|
-
|
72
|
-
Author:: Matt Ray <matt@opscode.com>
|
73
|
-
|
74
|
-
Copyright:: 2009-2011 Opscode, Inc
|
75
|
-
|
76
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
77
|
-
you may not use this file except in compliance with the License.
|
78
|
-
You may obtain a copy of the License at
|
79
|
-
|
80
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
81
|
-
|
82
|
-
Unless required by applicable law or agreed to in writing, software
|
83
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
84
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
85
|
-
See the License for the specific language governing permissions and
|
86
|
-
limitations under the License.
|
@@ -1,10 +0,0 @@
|
|
1
|
-
default[:rabbitmq][:nodename] = node[:hostname]
|
2
|
-
default[:rabbitmq][:address] = nil
|
3
|
-
default[:rabbitmq][:port] = nil
|
4
|
-
default[:rabbitmq][:config] = nil
|
5
|
-
default[:rabbitmq][:logdir] = nil
|
6
|
-
default[:rabbitmq][:mnesiadir] = nil
|
7
|
-
#clustering
|
8
|
-
default[:rabbitmq][:cluster] = "no"
|
9
|
-
default[:rabbitmq][:cluster_config] = "/etc/rabbitmq/rabbitmq_cluster.config"
|
10
|
-
default[:rabbitmq][:cluster_disk_nodes] = []
|
@@ -1,63 +0,0 @@
|
|
1
|
-
maintainer "Opscode, Inc."
|
2
|
-
maintainer_email "cookbooks@opscode.com"
|
3
|
-
license "Apache 2.0"
|
4
|
-
description "Installs and configures RabbitMQ server"
|
5
|
-
version "1.2.0"
|
6
|
-
recipe "rabbitmq", "Install and configure RabbitMQ"
|
7
|
-
recipe "rabbitmq::cluster", "Set up RabbitMQ clustering."
|
8
|
-
depends "apt", "> 1.1"
|
9
|
-
|
10
|
-
%w{ubuntu debian}.each do |os|
|
11
|
-
supports os
|
12
|
-
end
|
13
|
-
|
14
|
-
attribute "rabbitmq",
|
15
|
-
:display_name => "RabbitMQ",
|
16
|
-
:description => "Hash of RabbitMQ attributes",
|
17
|
-
:type => "hash"
|
18
|
-
|
19
|
-
attribute "rabbitmq/nodename",
|
20
|
-
:display_name => "RabbitMQ Erlang node name",
|
21
|
-
:description => "The Erlang node name for this server.",
|
22
|
-
:default => "node[:hostname]"
|
23
|
-
|
24
|
-
attribute "rabbitmq/address",
|
25
|
-
:display_name => "RabbitMQ server IP address",
|
26
|
-
:description => "IP address to bind."
|
27
|
-
|
28
|
-
attribute "rabbitmq/port",
|
29
|
-
:display_name => "RabbitMQ server port",
|
30
|
-
:description => "TCP port to bind."
|
31
|
-
|
32
|
-
attribute "rabbitmq/config",
|
33
|
-
:display_name => "RabbitMQ config file to load",
|
34
|
-
:description => "Path to the rabbitmq.config file, if any."
|
35
|
-
|
36
|
-
attribute "rabbitmq/logdir",
|
37
|
-
:display_name => "RabbitMQ log directory",
|
38
|
-
:description => "Path to the directory for log files."
|
39
|
-
|
40
|
-
attribute "rabbitmq/mnesiadir",
|
41
|
-
:display_name => "RabbitMQ Mnesia database directory",
|
42
|
-
:description => "Path to the directory for Mnesia database files."
|
43
|
-
|
44
|
-
attribute "rabbitmq/cluster",
|
45
|
-
:display_name => "RabbitMQ clustering",
|
46
|
-
:description => "Whether to activate clustering.",
|
47
|
-
:default => "no"
|
48
|
-
|
49
|
-
attribute "rabbitmq/cluster_config",
|
50
|
-
:display_name => "RabbitMQ clustering configuration file",
|
51
|
-
:description => "Path to the clustering configuration file, if cluster is yes.",
|
52
|
-
:default => "/etc/rabbitmq/rabbitmq_cluster.config"
|
53
|
-
|
54
|
-
attribute "rabbitmq/cluster_disk_nodes",
|
55
|
-
:display_name => "RabbitMQ cluster disk nodes",
|
56
|
-
:description => "Array of member Erlang nodenames for the disk-based storage nodes in the cluster.",
|
57
|
-
:default => [],
|
58
|
-
:type => "array"
|
59
|
-
|
60
|
-
attribute "rabbitmq/erlang_cookie",
|
61
|
-
:display_name => "RabbitMQ Erlang cookie",
|
62
|
-
:description => "Access cookie for clustering nodes. There is no default."
|
63
|
-
|
@@ -1,66 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: rabbitmq
|
3
|
-
# Provider:: user
|
4
|
-
#
|
5
|
-
# Copyright 2011, Opscode, 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
|
-
action :add do
|
21
|
-
execute "rabbitmqctl add_user #{new_resource.user} #{new_resource.password}" do
|
22
|
-
not_if "rabbitmqctl list_users | grep #{new_resource.user}"
|
23
|
-
Chef::Log.info "Adding RabbitMQ user '#{new_resource.user}'."
|
24
|
-
new_resource.updated_by_last_action(true)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
action :delete do
|
29
|
-
execute "rabbitmqctl delete_user #{new_resource.user}" do
|
30
|
-
only_if "rabbitmqctl list_users | grep #{new_resource.user}"
|
31
|
-
Chef::Log.info "Deleting RabbitMQ user '#{new_resource.user}'."
|
32
|
-
new_resource.updated_by_last_action(true)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
action :set_permissions do
|
37
|
-
if new_resource.vhost
|
38
|
-
execute "rabbitmqctl set_permissions -p #{new_resource.vhost} #{new_resource.user} #{new_resource.permissions}" do
|
39
|
-
not_if "rabbitmqctl list_user_permissions | grep #{new_resource.user}"
|
40
|
-
Chef::Log.info "Setting RabbitMQ user permissions for '#{new_resource.user}' on vhost #{new_resource.vhost}."
|
41
|
-
new_resource.updated_by_last_action(true)
|
42
|
-
end
|
43
|
-
else
|
44
|
-
execute "rabbitmqctl set_permissions #{new_resource.user} #{new_resource.permissions}" do
|
45
|
-
not_if "rabbitmqctl list_user_permissions | grep #{new_resource.user}"
|
46
|
-
Chef::Log.info "Setting RabbitMQ user permissions for '#{new_resource.user}'."
|
47
|
-
new_resource.updated_by_last_action(true)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
action :clear_permissions do
|
53
|
-
if new_resource.vhost
|
54
|
-
execute "rabbitmqctl clear_permissions -p #{new_resource.vhost} #{new_resource.user}" do
|
55
|
-
only_if "rabbitmqctl list_user_permissions | grep #{new_resource.user}"
|
56
|
-
Chef::Log.info "Clearing RabbitMQ user permissions for '#{new_resource.user}' from vhost #{new_resource.vhost}."
|
57
|
-
new_resource.updated_by_last_action(true)
|
58
|
-
end
|
59
|
-
else
|
60
|
-
execute "rabbitmqctl clear_permissions #{new_resource.user}" do
|
61
|
-
only_if "rabbitmqctl list_user_permissions | grep #{new_resource.user}"
|
62
|
-
Chef::Log.info "Clearing RabbitMQ user permissions for '#{new_resource.user}'."
|
63
|
-
new_resource.updated_by_last_action(true)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: rabbitmq
|
3
|
-
# Provider:: vhost
|
4
|
-
#
|
5
|
-
# Copyright 2011, Opscode, 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
|
-
action :add do
|
21
|
-
execute "rabbitmqctl add_vhost #{new_resource.vhost}" do
|
22
|
-
not_if "rabbitmqctl list_vhosts | grep #{new_resource.vhost}"
|
23
|
-
Chef::Log.info "Adding RabbitMQ vhost '#{new_resource.vhost}'."
|
24
|
-
new_resource.updated_by_last_action(true)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
action :delete do
|
29
|
-
execute "rabbitmqctl delete_vhost #{new_resource.vhost}" do
|
30
|
-
only_if "rabbitmqctl list_vhosts | grep #{new_resource.vhost}"
|
31
|
-
Chef::Log.info "Deleting RabbitMQ vhost '#{new_resource.vhost}'."
|
32
|
-
new_resource.updated_by_last_action(true)
|
33
|
-
end
|
34
|
-
end
|
@@ -1,35 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: rabbitmq
|
3
|
-
# Recipe:: cluster
|
4
|
-
#
|
5
|
-
# Copyright 2009, Benjamin Black
|
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
|
-
include_recipe "rabbitmq::default"
|
20
|
-
|
21
|
-
template "/var/lib/rabbitmq/.erlang.cookie" do
|
22
|
-
source "doterlang.cookie.erb"
|
23
|
-
owner "rabbitmq"
|
24
|
-
group "rabbitmq"
|
25
|
-
mode 0400
|
26
|
-
end
|
27
|
-
|
28
|
-
template "/etc/rabbitmq/rabbitmq_cluster.config" do
|
29
|
-
source "rabbitmq_cluster.config.erb"
|
30
|
-
owner "root"
|
31
|
-
group "root"
|
32
|
-
mode 0644
|
33
|
-
notifies :restart, resources(:service => "rabbitmq-server")
|
34
|
-
end
|
35
|
-
|
@@ -1,51 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Cookbook Name:: rabbitmq
|
3
|
-
# Recipe:: default
|
4
|
-
#
|
5
|
-
# Copyright 2009, Benjamin Black
|
6
|
-
# Copyright 2009-2011, Opscode, 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
|
-
# use the RabbitMQ repository instead of Ubuntu or Debian's
|
22
|
-
# because there are very useful features in the newer versions
|
23
|
-
apt_repository "rabbitmq" do
|
24
|
-
uri "http://www.rabbitmq.com/debian/"
|
25
|
-
distribution "testing"
|
26
|
-
components ["main"]
|
27
|
-
key "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
|
28
|
-
action :add
|
29
|
-
end
|
30
|
-
|
31
|
-
# rabbitmq-server is not well-behaved as far as managed services goes
|
32
|
-
# we'll need to add a LWRP for calling rabbitmqctl stop
|
33
|
-
# while still using /etc/init.d/rabbitmq-server start
|
34
|
-
# because of this we just put the rabbitmq-env.conf in place and let it rip
|
35
|
-
|
36
|
-
directory "/etc/rabbitmq/" do
|
37
|
-
owner "root"
|
38
|
-
group "root"
|
39
|
-
mode 0755
|
40
|
-
action :create
|
41
|
-
end
|
42
|
-
|
43
|
-
template "/etc/rabbitmq/rabbitmq-env.conf" do
|
44
|
-
source "rabbitmq-env.conf.erb"
|
45
|
-
owner "root"
|
46
|
-
group "root"
|
47
|
-
mode 0644
|
48
|
-
end
|
49
|
-
|
50
|
-
package "rabbitmq-server"
|
51
|
-
|