poolparty 0.2.69 → 0.2.84
Sign up to get free protection for your applications and to get access to all the features.
- data/Capfile +1 -0
- data/History.txt +6 -0
- data/Manifest.txt +140 -143
- data/PostInstall.txt +1 -1
- data/README.txt +2 -0
- data/bin/cloud-configure +5 -2
- data/bin/cloud-handle-load +3 -3
- data/bin/cloud-maintain +3 -3
- data/bin/cloud-provision +6 -5
- data/bin/cloud-rsync +28 -0
- data/bin/cloud-setup-dev +25 -0
- data/bin/cloud-spec +40 -0
- data/bin/cloud-start +5 -3
- data/bin/server-clean-cert-for +15 -0
- data/bin/server-rerun +0 -1
- data/bin/server-start-client +1 -1
- data/bin/server-start-master +1 -1
- data/bin/server-start-node +1 -1
- data/bin/server-update-hosts +4 -3
- data/bin/server-write-new-nodes +26 -0
- data/generators/poolspec/USAGE +2 -2
- data/generators/poolspec/poolspec_generator.rb +1 -1
- data/lib/erlang/messenger/Makefile +15 -0
- data/lib/erlang/messenger/ebin/client_app.beam +0 -0
- data/lib/erlang/messenger/ebin/client_server.beam +0 -0
- data/lib/erlang/messenger/ebin/erl_crash.dump +10326 -0
- data/lib/erlang/messenger/ebin/master_app.beam +0 -0
- data/lib/erlang/messenger/ebin/node_app.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_client.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_client_old.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_client_supervisor.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_cluster.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_event_manager.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_master.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_master_event_handler.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_master_supervisor.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_node.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_node_supervisor.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_packager.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_spawner.beam +0 -0
- data/lib/erlang/messenger/ebin/pm_strings.beam +0 -0
- data/lib/erlang/messenger/ebin/utils.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/Makefile +28 -0
- data/lib/erlang/messenger/lib/eunit/ebin/autoload.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/code_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_autoexport.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_data.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_lib.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_proc.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_serial.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_server.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_striptests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_test.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tty.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/file_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/src/Makefile +46 -0
- data/lib/erlang/messenger/src/pm_master.erl +5 -0
- data/lib/erlang/messenger/src/pm_node.erl +2 -3
- data/lib/erlang/messenger/src/pm_spawner.erl +213 -0
- data/lib/poolparty/base_packages/heartbeat.rb +57 -43
- data/lib/poolparty/base_packages/poolparty.rb +18 -15
- data/lib/poolparty/capistrano.rb +18 -0
- data/lib/poolparty/core/class.rb +24 -0
- data/lib/poolparty/core/kernel.rb +7 -0
- data/lib/poolparty/core/module.rb +2 -2
- data/lib/poolparty/core/string.rb +1 -1
- data/lib/poolparty/dependency_resolutions/puppet.rb +10 -2
- data/lib/poolparty/exceptions/ProvisionerException.rb +5 -0
- data/lib/poolparty/extra/deployments.rb +31 -0
- data/lib/poolparty/helpers/binary.rb +14 -2
- data/lib/poolparty/helpers/optioner.rb +61 -22
- data/lib/poolparty/helpers/ruberl.rb +33 -0
- data/lib/poolparty/modules/cloud_dsl.rb +2 -1
- data/lib/poolparty/modules/cloud_resourcer.rb +30 -6
- data/lib/poolparty/modules/configurable.rb +2 -0
- data/lib/poolparty/modules/file_writer.rb +4 -4
- data/lib/poolparty/modules/resourcing_dsl.rb +5 -5
- data/lib/poolparty/monitors/base_monitor.rb +1 -1
- data/lib/poolparty/monitors/monitors/cpu_monitor.rb +2 -2
- data/lib/poolparty/net/messenger.rb +1 -1
- data/lib/poolparty/net/remote.rb +2 -2
- data/lib/poolparty/net/remote_bases/ec2.rb +51 -11
- data/lib/poolparty/net/remote_instance.rb +7 -3
- data/lib/poolparty/net/remoter.rb +72 -24
- data/lib/poolparty/net/remoter_base.rb +10 -0
- data/lib/poolparty/plugins/deploydirectory.rb +10 -5
- data/lib/poolparty/plugins/git.rb +51 -0
- data/lib/poolparty/{pool → poolparty}/base.rb +4 -2
- data/lib/poolparty/{pool → poolparty}/cloud.rb +32 -10
- data/lib/poolparty/{pool → poolparty}/plugin_model.rb +4 -4
- data/lib/poolparty/{pool → poolparty}/pool.rb +2 -2
- data/lib/poolparty/{pool → poolparty}/resource.rb +33 -15
- data/lib/poolparty/{pool → poolparty}/resources/class_package.rb +3 -3
- data/lib/poolparty/{pool → poolparty}/resources/directory.rb +6 -3
- data/lib/poolparty/{pool → poolparty}/resources/exec.rb +2 -5
- data/lib/poolparty/{pool → poolparty}/resources/file.rb +3 -3
- data/lib/poolparty/{pool → poolparty}/resources/package.rb +1 -1
- data/lib/poolparty/{pool → poolparty}/resources/remote_file.rb +1 -1
- data/lib/poolparty/poolparty/resources/remote_user.rb +17 -0
- data/lib/poolparty/{pool → poolparty}/resources/sshkey.rb +5 -1
- data/lib/poolparty/{pool → poolparty}/script.rb +1 -1
- data/lib/poolparty/provisioners/capistrano/capistrano.rb +127 -0
- data/lib/poolparty/provisioners/capistrano/capistrano_configurer.rb +58 -0
- data/lib/poolparty/provisioners/capistrano/recipies/base.rb +104 -0
- data/lib/poolparty/provisioners/capistrano/recipies/master.rb +121 -0
- data/lib/poolparty/provisioners/capistrano/recipies/slave.rb +12 -0
- data/lib/poolparty/provisioners/provisioner_base.rb +204 -0
- data/lib/poolparty/spec/core/string.rb +16 -0
- data/lib/poolparty/spec/matchers/a_spec_extensions_base.rb +26 -0
- data/lib/poolparty/spec/matchers/have_cron.rb +28 -0
- data/lib/poolparty/spec/matchers/have_deploydirectory.rb +15 -0
- data/lib/poolparty/spec/matchers/have_directory.rb +31 -0
- data/lib/poolparty/spec/matchers/have_exec.rb +28 -0
- data/lib/poolparty/spec/matchers/have_file.rb +28 -0
- data/lib/poolparty/spec/matchers/have_gempackage.rb +28 -0
- data/lib/poolparty/spec/matchers/have_git.rb +28 -0
- data/lib/poolparty/spec/matchers/have_host.rb +28 -0
- data/lib/poolparty/spec/matchers/have_mount.rb +28 -0
- data/lib/poolparty/spec/matchers/have_package.rb +28 -0
- data/lib/poolparty/spec/matchers/have_remotefile.rb +28 -0
- data/lib/poolparty/spec/matchers/have_rsyncmirror.rb +28 -0
- data/lib/poolparty/spec/matchers/have_service.rb +28 -0
- data/lib/poolparty/spec/matchers/have_sshkey.rb +28 -0
- data/lib/poolparty/spec/matchers/have_symlink.rb +28 -0
- data/lib/poolparty/spec/matchers/have_variable.rb +32 -0
- data/lib/poolparty/spec/spec/dynamic_matchers.rb +63 -0
- data/lib/poolparty/spec/spec/ensure_matchers_exist.rb +7 -0
- data/lib/poolparty/spec/templates/have_base.rb +28 -0
- data/lib/poolparty/templates/authkeys +1 -1
- data/lib/poolparty/templates/gem +12 -10
- data/lib/poolparty/templates/ha.cf +9 -11
- data/lib/poolparty/templates/haresources +1 -1
- data/lib/poolparty/templates/logd.cf +42 -0
- data/lib/poolparty/templates/puppet.conf +18 -8
- data/lib/poolparty/templates/puppetcleaner +9 -3
- data/lib/poolparty/templates/puppetrerun +16 -3
- data/lib/poolparty/templates/puppetrunner +1 -1
- data/lib/poolparty/version.rb +1 -1
- data/lib/poolparty.rb +12 -8
- data/lib/poolpartyspec.rb +34 -0
- data/poolparty.gemspec +151 -149
- data/spec/poolparty/aska/aska_spec.rb +0 -5
- data/spec/poolparty/bin/console_spec.rb +3 -0
- data/spec/poolparty/extra/deployments_spec.rb +64 -0
- data/spec/poolparty/helpers/binary_spec.rb +1 -1
- data/spec/poolparty/helpers/optioner_spec.rb +17 -4
- data/spec/poolparty/modules/cloud_resourcer_spec.rb +19 -2
- data/spec/poolparty/modules/configurable_spec.rb +2 -2
- data/spec/poolparty/net/remote_bases/ec2_spec.rb +5 -2
- data/spec/poolparty/net/remote_instance_spec.rb +5 -0
- data/spec/poolparty/net/remote_spec.rb +24 -31
- data/spec/poolparty/net/remoter_base_spec.rb +11 -6
- data/spec/poolparty/net/remoter_spec.rb +55 -27
- data/spec/poolparty/plugins/deploydirectory_spec.rb +1 -0
- data/spec/poolparty/plugins/git_spec.rb +45 -0
- data/spec/poolparty/{pool → poolparty}/cloud_spec.rb +41 -0
- data/spec/poolparty/{pool → poolparty}/plugin_spec.rb +1 -1
- data/spec/poolparty/{pool → poolparty}/pool_spec.rb +1 -1
- data/spec/poolparty/{pool → poolparty}/resource_spec.rb +15 -2
- data/spec/poolparty/poolparty/resources/user_spec.rb +38 -0
- data/spec/poolparty/poolparty/test_plugins/virtual_host_template.erb +0 -0
- data/spec/poolparty/poolparty_spec.rb +1 -1
- data/spec/poolparty/provisioners/capistrano/capistrano_spec.rb +27 -0
- data/spec/poolparty/provisioners/provisioner_base_spec.rb +120 -0
- data/spec/poolparty/spec/core/string_spec.rb +57 -0
- data/spec/poolparty/spec_helper.rb +48 -6
- data/tasks/deployment.rake +3 -5
- data/tasks/spec.rake +2 -3
- data/website/index.html +2 -2
- metadata +150 -148
- data/lib/erlang/messenger/lib/eunit/.svn/all-wcprops +0 -53
- data/lib/erlang/messenger/lib/eunit/.svn/entries +0 -140
- data/lib/erlang/messenger/lib/eunit/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/.svn/prop-base/NOTES.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/AUTHORS.svn-base +0 -2
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/CHANGELOG.svn-base +0 -14
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/COPYING.svn-base +0 -504
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/NOTES.svn-base +0 -276
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/README.svn-base +0 -3
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/sys.config.svn-base +0 -9
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/vsn.mk.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/doc/.svn/all-wcprops +0 -59
- data/lib/erlang/messenger/lib/eunit/doc/.svn/entries +0 -142
- data/lib/erlang/messenger/lib/eunit/doc/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/erlang.png.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/eunit.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/index.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/modules-frame.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/overview-summary.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/packages-frame.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/edoc-info.svn-base +0 -3
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/erlang.png.svn-base +0 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/eunit.html.svn-base +0 -172
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/index.html.svn-base +0 -17
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/modules-frame.html.svn-base +0 -12
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview-summary.html.svn-base +0 -984
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview.edoc.svn-base +0 -980
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/packages-frame.html.svn-base +0 -11
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/stylesheet.css.svn-base +0 -55
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/all-wcprops +0 -5
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/dir-prop-base +0 -8
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/entries +0 -28
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/examples/.svn/all-wcprops +0 -23
- data/lib/erlang/messenger/lib/eunit/examples/.svn/entries +0 -66
- data/lib/erlang/messenger/lib/eunit/examples/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/eunit_examples.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/fib.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/eunit_examples.erl.svn-base +0 -339
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/fib.erl.svn-base +0 -19
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/tests.txt.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/include/.svn/all-wcprops +0 -11
- data/lib/erlang/messenger/lib/eunit/include/.svn/entries +0 -41
- data/lib/erlang/messenger/lib/eunit/include/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/include/.svn/prop-base/eunit.hrl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/include/.svn/text-base/eunit.hrl.svn-base +0 -313
- data/lib/erlang/messenger/lib/eunit/src/.svn/all-wcprops +0 -113
- data/lib/erlang/messenger/lib/eunit/src/.svn/entries +0 -259
- data/lib/erlang/messenger/lib/eunit/src/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/autoload.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/code_monitor.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_autoexport.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_data.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_internal.hrl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_lib.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_proc.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_serial.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_server.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_striptests.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_test.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tests.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tty.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/file_monitor.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/autoload.erl.svn-base +0 -388
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/code_monitor.erl.svn-base +0 -243
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.app.src.svn-base +0 -21
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.appup.src.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.erl.svn-base +0 -196
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_autoexport.erl.svn-base +0 -102
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_data.erl.svn-base +0 -798
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_internal.hrl.svn-base +0 -48
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_lib.erl.svn-base +0 -682
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_proc.erl.svn-base +0 -552
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_serial.erl.svn-base +0 -157
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_server.erl.svn-base +0 -340
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_striptests.erl.svn-base +0 -64
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_test.erl.svn-base +0 -334
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tests.erl.svn-base +0 -45
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tty.erl.svn-base +0 -272
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/file_monitor.erl.svn-base +0 -409
- data/lib/erlang/messenger/src/pm_client_old.erl +0 -52
- data/lib/poolparty/helpers/provisioner_base.rb +0 -346
- data/lib/poolparty/helpers/provisioners/master.rb +0 -205
- data/lib/poolparty/helpers/provisioners/slave.rb +0 -64
- data/spec/poolparty/helpers/provisioner_base_spec.rb +0 -134
- data/spec/poolparty/helpers/provisioners/master_spec.rb +0 -54
- data/spec/poolparty/helpers/provisioners/slave_spec.rb +0 -28
- /data/lib/poolparty/{pool → poolparty}/custom_resource.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/loggable.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/plugin.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/conditional.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/cron.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/custom_service.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/gem_package.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/host.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/mount.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/service.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/symlink.rb +0 -0
- /data/lib/poolparty/{pool → poolparty}/resources/variable.rb +0 -0
- /data/log/{pool.logs → pool.log} +0 -0
- /data/spec/poolparty/{pool/test_plugins/virtual_host_template.erb → net/log/pool.log} +0 -0
- /data/spec/poolparty/{pool → poolparty}/base_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/configurers/files/ruby_basic.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/configurers/files/ruby_plugins.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/configurers/ruby_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/custom_resource_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/example_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/plugin_model_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/class_package_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/conditional_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/cron_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/directory_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/exec_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/file_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/gem_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/host_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/package_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/remote_file_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/service_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/sshkey_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/symlink_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/resources/variable_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/script_spec.rb +0 -0
- /data/spec/poolparty/{pool → poolparty}/test_plugins/sshkey_test +0 -0
- /data/spec/poolparty/{pool → poolparty}/test_plugins/webserver.rb +0 -0
data/Capfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dir["#{::File.dirname(__FILE__)}/lib/poolparty/provisioners/capistrano/tasks/*.rb"].each { |plugin| load(plugin) }
|
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
Capfile
|
1
2
|
History.txt
|
2
3
|
License.txt
|
3
4
|
Manifest.txt
|
@@ -16,7 +17,10 @@ bin/cloud-maintain
|
|
16
17
|
bin/cloud-osxcopy
|
17
18
|
bin/cloud-provision
|
18
19
|
bin/cloud-refresh
|
20
|
+
bin/cloud-rsync
|
19
21
|
bin/cloud-run
|
22
|
+
bin/cloud-setup-dev
|
23
|
+
bin/cloud-spec
|
20
24
|
bin/cloud-ssh
|
21
25
|
bin/cloud-start
|
22
26
|
bin/cloud-stats
|
@@ -30,6 +34,7 @@ bin/pool-init
|
|
30
34
|
bin/pool-list
|
31
35
|
bin/pool-start
|
32
36
|
bin/server-build-messenger
|
37
|
+
bin/server-clean-cert-for
|
33
38
|
bin/server-fire-cmd
|
34
39
|
bin/server-get-load
|
35
40
|
bin/server-list-active
|
@@ -44,6 +49,7 @@ bin/server-stop-client
|
|
44
49
|
bin/server-stop-master
|
45
50
|
bin/server-stop-node
|
46
51
|
bin/server-update-hosts
|
52
|
+
bin/server-write-new-nodes
|
47
53
|
config/hoe.rb
|
48
54
|
config/requirements.rb
|
49
55
|
examples/basic.rb
|
@@ -53,51 +59,43 @@ generators/poolspec/USAGE
|
|
53
59
|
generators/poolspec/poolspec_generator.rb
|
54
60
|
generators/poolspec/templates/pool_spec_template.erb
|
55
61
|
lib/erlang/messenger/Emakefile
|
62
|
+
lib/erlang/messenger/Makefile
|
56
63
|
lib/erlang/messenger/README
|
57
64
|
lib/erlang/messenger/Rakefile
|
58
65
|
lib/erlang/messenger/control
|
59
66
|
lib/erlang/messenger/ebin/client.app
|
67
|
+
lib/erlang/messenger/ebin/client_app.beam
|
68
|
+
lib/erlang/messenger/ebin/client_server.beam
|
69
|
+
lib/erlang/messenger/ebin/erl_crash.dump
|
60
70
|
lib/erlang/messenger/ebin/master.app
|
71
|
+
lib/erlang/messenger/ebin/master_app.beam
|
61
72
|
lib/erlang/messenger/ebin/node.app
|
73
|
+
lib/erlang/messenger/ebin/node_app.beam
|
62
74
|
lib/erlang/messenger/ebin/packager.app
|
75
|
+
lib/erlang/messenger/ebin/pm_client.beam
|
76
|
+
lib/erlang/messenger/ebin/pm_client_old.beam
|
63
77
|
lib/erlang/messenger/ebin/pm_client_rel-0.1.rel
|
78
|
+
lib/erlang/messenger/ebin/pm_client_supervisor.beam
|
79
|
+
lib/erlang/messenger/ebin/pm_cluster.beam
|
80
|
+
lib/erlang/messenger/ebin/pm_event_manager.beam
|
81
|
+
lib/erlang/messenger/ebin/pm_master.beam
|
82
|
+
lib/erlang/messenger/ebin/pm_master_event_handler.beam
|
64
83
|
lib/erlang/messenger/ebin/pm_master_rel-0.1.rel
|
84
|
+
lib/erlang/messenger/ebin/pm_master_supervisor.beam
|
85
|
+
lib/erlang/messenger/ebin/pm_node.beam
|
65
86
|
lib/erlang/messenger/ebin/pm_node_rel-0.1.rel
|
87
|
+
lib/erlang/messenger/ebin/pm_node_supervisor.beam
|
88
|
+
lib/erlang/messenger/ebin/pm_packager.beam
|
89
|
+
lib/erlang/messenger/ebin/pm_spawner.beam
|
90
|
+
lib/erlang/messenger/ebin/pm_strings.beam
|
91
|
+
lib/erlang/messenger/ebin/utils.beam
|
66
92
|
lib/erlang/messenger/include/defines.hrl
|
67
|
-
lib/erlang/messenger/lib/eunit/.svn/all-wcprops
|
68
|
-
lib/erlang/messenger/lib/eunit/.svn/entries
|
69
|
-
lib/erlang/messenger/lib/eunit/.svn/format
|
70
|
-
lib/erlang/messenger/lib/eunit/.svn/prop-base/NOTES.svn-base
|
71
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/AUTHORS.svn-base
|
72
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/CHANGELOG.svn-base
|
73
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/COPYING.svn-base
|
74
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/NOTES.svn-base
|
75
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/README.svn-base
|
76
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/sys.config.svn-base
|
77
|
-
lib/erlang/messenger/lib/eunit/.svn/text-base/vsn.mk.svn-base
|
78
93
|
lib/erlang/messenger/lib/eunit/AUTHORS
|
79
94
|
lib/erlang/messenger/lib/eunit/CHANGELOG
|
80
95
|
lib/erlang/messenger/lib/eunit/COPYING
|
96
|
+
lib/erlang/messenger/lib/eunit/Makefile
|
81
97
|
lib/erlang/messenger/lib/eunit/NOTES
|
82
98
|
lib/erlang/messenger/lib/eunit/README
|
83
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/all-wcprops
|
84
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/entries
|
85
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/format
|
86
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/erlang.png.svn-base
|
87
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/eunit.html.svn-base
|
88
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/index.html.svn-base
|
89
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/modules-frame.html.svn-base
|
90
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/overview-summary.html.svn-base
|
91
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/packages-frame.html.svn-base
|
92
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/edoc-info.svn-base
|
93
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/erlang.png.svn-base
|
94
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/eunit.html.svn-base
|
95
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/index.html.svn-base
|
96
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/modules-frame.html.svn-base
|
97
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview-summary.html.svn-base
|
98
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview.edoc.svn-base
|
99
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/packages-frame.html.svn-base
|
100
|
-
lib/erlang/messenger/lib/eunit/doc/.svn/text-base/stylesheet.css.svn-base
|
101
99
|
lib/erlang/messenger/lib/eunit/doc/edoc-info
|
102
100
|
lib/erlang/messenger/lib/eunit/doc/erlang.png
|
103
101
|
lib/erlang/messenger/lib/eunit/doc/eunit.html
|
@@ -107,64 +105,27 @@ lib/erlang/messenger/lib/eunit/doc/overview-summary.html
|
|
107
105
|
lib/erlang/messenger/lib/eunit/doc/overview.edoc
|
108
106
|
lib/erlang/messenger/lib/eunit/doc/packages-frame.html
|
109
107
|
lib/erlang/messenger/lib/eunit/doc/stylesheet.css
|
110
|
-
lib/erlang/messenger/lib/eunit/ebin
|
111
|
-
lib/erlang/messenger/lib/eunit/ebin
|
112
|
-
lib/erlang/messenger/lib/eunit/ebin/.svn/entries
|
113
|
-
lib/erlang/messenger/lib/eunit/ebin/.svn/format
|
108
|
+
lib/erlang/messenger/lib/eunit/ebin/autoload.beam
|
109
|
+
lib/erlang/messenger/lib/eunit/ebin/code_monitor.beam
|
114
110
|
lib/erlang/messenger/lib/eunit/ebin/eunit.app
|
115
111
|
lib/erlang/messenger/lib/eunit/ebin/eunit.appup
|
116
|
-
lib/erlang/messenger/lib/eunit/
|
117
|
-
lib/erlang/messenger/lib/eunit/
|
118
|
-
lib/erlang/messenger/lib/eunit/
|
119
|
-
lib/erlang/messenger/lib/eunit/
|
120
|
-
lib/erlang/messenger/lib/eunit/
|
121
|
-
lib/erlang/messenger/lib/eunit/
|
122
|
-
lib/erlang/messenger/lib/eunit/
|
123
|
-
lib/erlang/messenger/lib/eunit/
|
112
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit.beam
|
113
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_autoexport.beam
|
114
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_data.beam
|
115
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_lib.beam
|
116
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_proc.beam
|
117
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_serial.beam
|
118
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_server.beam
|
119
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_striptests.beam
|
120
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_test.beam
|
121
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_tests.beam
|
122
|
+
lib/erlang/messenger/lib/eunit/ebin/eunit_tty.beam
|
123
|
+
lib/erlang/messenger/lib/eunit/ebin/file_monitor.beam
|
124
124
|
lib/erlang/messenger/lib/eunit/examples/eunit_examples.erl
|
125
125
|
lib/erlang/messenger/lib/eunit/examples/fib.erl
|
126
126
|
lib/erlang/messenger/lib/eunit/examples/tests.txt
|
127
|
-
lib/erlang/messenger/lib/eunit/include/.svn/all-wcprops
|
128
|
-
lib/erlang/messenger/lib/eunit/include/.svn/entries
|
129
|
-
lib/erlang/messenger/lib/eunit/include/.svn/format
|
130
|
-
lib/erlang/messenger/lib/eunit/include/.svn/prop-base/eunit.hrl.svn-base
|
131
|
-
lib/erlang/messenger/lib/eunit/include/.svn/text-base/eunit.hrl.svn-base
|
132
127
|
lib/erlang/messenger/lib/eunit/include/eunit.hrl
|
133
|
-
lib/erlang/messenger/lib/eunit/src
|
134
|
-
lib/erlang/messenger/lib/eunit/src/.svn/entries
|
135
|
-
lib/erlang/messenger/lib/eunit/src/.svn/format
|
136
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/autoload.erl.svn-base
|
137
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/code_monitor.erl.svn-base
|
138
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit.erl.svn-base
|
139
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_autoexport.erl.svn-base
|
140
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_data.erl.svn-base
|
141
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_internal.hrl.svn-base
|
142
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_lib.erl.svn-base
|
143
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_proc.erl.svn-base
|
144
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_serial.erl.svn-base
|
145
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_server.erl.svn-base
|
146
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_striptests.erl.svn-base
|
147
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_test.erl.svn-base
|
148
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tests.erl.svn-base
|
149
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tty.erl.svn-base
|
150
|
-
lib/erlang/messenger/lib/eunit/src/.svn/prop-base/file_monitor.erl.svn-base
|
151
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/autoload.erl.svn-base
|
152
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/code_monitor.erl.svn-base
|
153
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.app.src.svn-base
|
154
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.appup.src.svn-base
|
155
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.erl.svn-base
|
156
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_autoexport.erl.svn-base
|
157
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_data.erl.svn-base
|
158
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_internal.hrl.svn-base
|
159
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_lib.erl.svn-base
|
160
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_proc.erl.svn-base
|
161
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_serial.erl.svn-base
|
162
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_server.erl.svn-base
|
163
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_striptests.erl.svn-base
|
164
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_test.erl.svn-base
|
165
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tests.erl.svn-base
|
166
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tty.erl.svn-base
|
167
|
-
lib/erlang/messenger/lib/eunit/src/.svn/text-base/file_monitor.erl.svn-base
|
128
|
+
lib/erlang/messenger/lib/eunit/src/Makefile
|
168
129
|
lib/erlang/messenger/lib/eunit/src/autoload.erl
|
169
130
|
lib/erlang/messenger/lib/eunit/src/code_monitor.erl
|
170
131
|
lib/erlang/messenger/lib/eunit/src/eunit.app.src
|
@@ -195,7 +156,6 @@ lib/erlang/messenger/src/client_server.erl
|
|
195
156
|
lib/erlang/messenger/src/master_app.erl
|
196
157
|
lib/erlang/messenger/src/node_app.erl
|
197
158
|
lib/erlang/messenger/src/pm_client.erl
|
198
|
-
lib/erlang/messenger/src/pm_client_old.erl
|
199
159
|
lib/erlang/messenger/src/pm_client_supervisor.erl
|
200
160
|
lib/erlang/messenger/src/pm_cluster.erl
|
201
161
|
lib/erlang/messenger/src/pm_event_manager.erl
|
@@ -205,6 +165,7 @@ lib/erlang/messenger/src/pm_master_supervisor.erl
|
|
205
165
|
lib/erlang/messenger/src/pm_node.erl
|
206
166
|
lib/erlang/messenger/src/pm_node_supervisor.erl
|
207
167
|
lib/erlang/messenger/src/pm_packager.erl
|
168
|
+
lib/erlang/messenger/src/pm_spawner.erl
|
208
169
|
lib/erlang/messenger/src/pm_strings.erl
|
209
170
|
lib/erlang/messenger/src/utils.erl
|
210
171
|
lib/erlang/messenger/useful_snippets
|
@@ -215,6 +176,7 @@ lib/poolparty/base_packages/heartbeat.rb
|
|
215
176
|
lib/poolparty/base_packages/poolparty.rb
|
216
177
|
lib/poolparty/base_packages/ruby.rb
|
217
178
|
lib/poolparty/base_packages/runit.rb
|
179
|
+
lib/poolparty/capistrano.rb
|
218
180
|
lib/poolparty/config/postlaunchmessage.txt
|
219
181
|
lib/poolparty/core/array.rb
|
220
182
|
lib/poolparty/core/class.rb
|
@@ -235,20 +197,20 @@ lib/poolparty/dependency_resolutions/puppet.rb
|
|
235
197
|
lib/poolparty/exceptions/CloudNotFoundException.rb
|
236
198
|
lib/poolparty/exceptions/LoadRulesException.rb
|
237
199
|
lib/poolparty/exceptions/MasterException.rb
|
200
|
+
lib/poolparty/exceptions/ProvisionerException.rb
|
238
201
|
lib/poolparty/exceptions/RemoteException.rb
|
239
202
|
lib/poolparty/exceptions/ResourceException.rb
|
240
203
|
lib/poolparty/exceptions/RuntimeException.rb
|
241
204
|
lib/poolparty/exceptions/SpecException.rb
|
242
205
|
lib/poolparty/exceptions/TemplateNotFound.rb
|
243
206
|
lib/poolparty/exceptions/UnacceptableCommand.rb
|
207
|
+
lib/poolparty/extra/deployments.rb
|
244
208
|
lib/poolparty/helpers/binary.rb
|
245
209
|
lib/poolparty/helpers/console.rb
|
246
210
|
lib/poolparty/helpers/display.rb
|
247
211
|
lib/poolparty/helpers/nice_printer.rb
|
248
212
|
lib/poolparty/helpers/optioner.rb
|
249
|
-
lib/poolparty/helpers/
|
250
|
-
lib/poolparty/helpers/provisioners/master.rb
|
251
|
-
lib/poolparty/helpers/provisioners/slave.rb
|
213
|
+
lib/poolparty/helpers/ruberl.rb
|
252
214
|
lib/poolparty/modules/cloud_dsl.rb
|
253
215
|
lib/poolparty/modules/cloud_resourcer.rb
|
254
216
|
lib/poolparty/modules/configurable.rb
|
@@ -273,41 +235,71 @@ lib/poolparty/net/remote_instance.rb
|
|
273
235
|
lib/poolparty/net/remoter.rb
|
274
236
|
lib/poolparty/net/remoter_base.rb
|
275
237
|
lib/poolparty/plugins/deploydirectory.rb
|
238
|
+
lib/poolparty/plugins/git.rb
|
276
239
|
lib/poolparty/plugins/line.rb
|
277
240
|
lib/poolparty/plugins/rsyncmirror.rb
|
278
241
|
lib/poolparty/plugins/runit.rb
|
279
242
|
lib/poolparty/plugins/svn.rb
|
280
|
-
lib/poolparty/
|
281
|
-
lib/poolparty/
|
282
|
-
lib/poolparty/
|
283
|
-
lib/poolparty/
|
284
|
-
lib/poolparty/
|
285
|
-
lib/poolparty/
|
286
|
-
lib/poolparty/
|
287
|
-
lib/poolparty/
|
288
|
-
lib/poolparty/
|
289
|
-
lib/poolparty/
|
290
|
-
lib/poolparty/
|
291
|
-
lib/poolparty/
|
292
|
-
lib/poolparty/
|
293
|
-
lib/poolparty/
|
294
|
-
lib/poolparty/
|
295
|
-
lib/poolparty/
|
296
|
-
lib/poolparty/
|
297
|
-
lib/poolparty/
|
298
|
-
lib/poolparty/
|
299
|
-
lib/poolparty/
|
300
|
-
lib/poolparty/
|
301
|
-
lib/poolparty/
|
302
|
-
lib/poolparty/
|
303
|
-
lib/poolparty/
|
304
|
-
lib/poolparty/
|
243
|
+
lib/poolparty/poolparty/base.rb
|
244
|
+
lib/poolparty/poolparty/cloud.rb
|
245
|
+
lib/poolparty/poolparty/custom_resource.rb
|
246
|
+
lib/poolparty/poolparty/loggable.rb
|
247
|
+
lib/poolparty/poolparty/plugin.rb
|
248
|
+
lib/poolparty/poolparty/plugin_model.rb
|
249
|
+
lib/poolparty/poolparty/pool.rb
|
250
|
+
lib/poolparty/poolparty/resource.rb
|
251
|
+
lib/poolparty/poolparty/resources/class_package.rb
|
252
|
+
lib/poolparty/poolparty/resources/conditional.rb
|
253
|
+
lib/poolparty/poolparty/resources/cron.rb
|
254
|
+
lib/poolparty/poolparty/resources/custom_service.rb
|
255
|
+
lib/poolparty/poolparty/resources/directory.rb
|
256
|
+
lib/poolparty/poolparty/resources/exec.rb
|
257
|
+
lib/poolparty/poolparty/resources/file.rb
|
258
|
+
lib/poolparty/poolparty/resources/gem_package.rb
|
259
|
+
lib/poolparty/poolparty/resources/host.rb
|
260
|
+
lib/poolparty/poolparty/resources/mount.rb
|
261
|
+
lib/poolparty/poolparty/resources/package.rb
|
262
|
+
lib/poolparty/poolparty/resources/remote_file.rb
|
263
|
+
lib/poolparty/poolparty/resources/remote_user.rb
|
264
|
+
lib/poolparty/poolparty/resources/service.rb
|
265
|
+
lib/poolparty/poolparty/resources/sshkey.rb
|
266
|
+
lib/poolparty/poolparty/resources/symlink.rb
|
267
|
+
lib/poolparty/poolparty/resources/variable.rb
|
268
|
+
lib/poolparty/poolparty/script.rb
|
269
|
+
lib/poolparty/provisioners/capistrano/capistrano.rb
|
270
|
+
lib/poolparty/provisioners/capistrano/capistrano_configurer.rb
|
271
|
+
lib/poolparty/provisioners/capistrano/recipies/base.rb
|
272
|
+
lib/poolparty/provisioners/capistrano/recipies/master.rb
|
273
|
+
lib/poolparty/provisioners/capistrano/recipies/slave.rb
|
274
|
+
lib/poolparty/provisioners/provisioner_base.rb
|
275
|
+
lib/poolparty/spec/core/string.rb
|
276
|
+
lib/poolparty/spec/matchers/a_spec_extensions_base.rb
|
277
|
+
lib/poolparty/spec/matchers/have_cron.rb
|
278
|
+
lib/poolparty/spec/matchers/have_deploydirectory.rb
|
279
|
+
lib/poolparty/spec/matchers/have_directory.rb
|
280
|
+
lib/poolparty/spec/matchers/have_exec.rb
|
281
|
+
lib/poolparty/spec/matchers/have_file.rb
|
282
|
+
lib/poolparty/spec/matchers/have_gempackage.rb
|
283
|
+
lib/poolparty/spec/matchers/have_git.rb
|
284
|
+
lib/poolparty/spec/matchers/have_host.rb
|
285
|
+
lib/poolparty/spec/matchers/have_mount.rb
|
286
|
+
lib/poolparty/spec/matchers/have_package.rb
|
287
|
+
lib/poolparty/spec/matchers/have_remotefile.rb
|
288
|
+
lib/poolparty/spec/matchers/have_rsyncmirror.rb
|
289
|
+
lib/poolparty/spec/matchers/have_service.rb
|
290
|
+
lib/poolparty/spec/matchers/have_sshkey.rb
|
291
|
+
lib/poolparty/spec/matchers/have_symlink.rb
|
292
|
+
lib/poolparty/spec/matchers/have_variable.rb
|
293
|
+
lib/poolparty/spec/spec/dynamic_matchers.rb
|
294
|
+
lib/poolparty/spec/spec/ensure_matchers_exist.rb
|
295
|
+
lib/poolparty/spec/templates/have_base.rb
|
305
296
|
lib/poolparty/templates/authkeys
|
306
297
|
lib/poolparty/templates/cib.xml
|
307
298
|
lib/poolparty/templates/gem
|
308
299
|
lib/poolparty/templates/ha.cf
|
309
300
|
lib/poolparty/templates/haproxy.conf
|
310
301
|
lib/poolparty/templates/haresources
|
302
|
+
lib/poolparty/templates/logd.cf
|
311
303
|
lib/poolparty/templates/messenger/client/log-run.erb
|
312
304
|
lib/poolparty/templates/messenger/client/run.erb
|
313
305
|
lib/poolparty/templates/messenger/master/log-run.erb
|
@@ -323,7 +315,8 @@ lib/poolparty/templates/puppetrunner
|
|
323
315
|
lib/poolparty/templates/yaws.conf
|
324
316
|
lib/poolparty/version.rb
|
325
317
|
lib/poolpartycl.rb
|
326
|
-
|
318
|
+
lib/poolpartyspec.rb
|
319
|
+
log/pool.log
|
327
320
|
poolparty.gemspec
|
328
321
|
script/destroy
|
329
322
|
script/generate
|
@@ -342,12 +335,10 @@ spec/poolparty/core/object_spec.rb
|
|
342
335
|
spec/poolparty/core/string_spec.rb
|
343
336
|
spec/poolparty/core/time_spec.rb
|
344
337
|
spec/poolparty/dependency_resolutions/base_spec.rb
|
338
|
+
spec/poolparty/extra/deployments_spec.rb
|
345
339
|
spec/poolparty/helpers/binary_spec.rb
|
346
340
|
spec/poolparty/helpers/display_spec.rb
|
347
341
|
spec/poolparty/helpers/optioner_spec.rb
|
348
|
-
spec/poolparty/helpers/provisioner_base_spec.rb
|
349
|
-
spec/poolparty/helpers/provisioners/master_spec.rb
|
350
|
-
spec/poolparty/helpers/provisioners/slave_spec.rb
|
351
342
|
spec/poolparty/modules/cloud_resourcer_spec.rb
|
352
343
|
spec/poolparty/modules/configurable_spec.rb
|
353
344
|
spec/poolparty/modules/definable_resource.rb
|
@@ -356,6 +347,7 @@ spec/poolparty/modules/s3_string_spec.rb
|
|
356
347
|
spec/poolparty/monitors/base_monitor_spec.rb
|
357
348
|
spec/poolparty/monitors/monitors/cpu_monitor_spec.rb
|
358
349
|
spec/poolparty/monitors/monitors/memory_monitor_spec.rb
|
350
|
+
spec/poolparty/net/log/pool.log
|
359
351
|
spec/poolparty/net/messenger_spec.rb
|
360
352
|
spec/poolparty/net/remote_bases/ec2_spec.rb
|
361
353
|
spec/poolparty/net/remote_instance_spec.rb
|
@@ -363,38 +355,43 @@ spec/poolparty/net/remote_spec.rb
|
|
363
355
|
spec/poolparty/net/remoter_base_spec.rb
|
364
356
|
spec/poolparty/net/remoter_spec.rb
|
365
357
|
spec/poolparty/plugins/deploydirectory_spec.rb
|
358
|
+
spec/poolparty/plugins/git_spec.rb
|
366
359
|
spec/poolparty/plugins/line_spec.rb
|
367
360
|
spec/poolparty/plugins/svn_spec.rb
|
368
|
-
spec/poolparty/
|
369
|
-
spec/poolparty/
|
370
|
-
spec/poolparty/
|
371
|
-
spec/poolparty/
|
372
|
-
spec/poolparty/
|
373
|
-
spec/poolparty/
|
374
|
-
spec/poolparty/
|
375
|
-
spec/poolparty/
|
376
|
-
spec/poolparty/
|
377
|
-
spec/poolparty/
|
378
|
-
spec/poolparty/
|
379
|
-
spec/poolparty/
|
380
|
-
spec/poolparty/
|
381
|
-
spec/poolparty/
|
382
|
-
spec/poolparty/
|
383
|
-
spec/poolparty/
|
384
|
-
spec/poolparty/
|
385
|
-
spec/poolparty/
|
386
|
-
spec/poolparty/
|
387
|
-
spec/poolparty/
|
388
|
-
spec/poolparty/
|
389
|
-
spec/poolparty/
|
390
|
-
spec/poolparty/
|
391
|
-
spec/poolparty/
|
392
|
-
spec/poolparty/
|
393
|
-
spec/poolparty/
|
394
|
-
spec/poolparty/
|
395
|
-
spec/poolparty/
|
396
|
-
spec/poolparty/
|
361
|
+
spec/poolparty/poolparty/base_spec.rb
|
362
|
+
spec/poolparty/poolparty/cloud_spec.rb
|
363
|
+
spec/poolparty/poolparty/configurers/files/ruby_basic.rb
|
364
|
+
spec/poolparty/poolparty/configurers/files/ruby_plugins.rb
|
365
|
+
spec/poolparty/poolparty/configurers/ruby_spec.rb
|
366
|
+
spec/poolparty/poolparty/custom_resource_spec.rb
|
367
|
+
spec/poolparty/poolparty/example_spec.rb
|
368
|
+
spec/poolparty/poolparty/plugin_model_spec.rb
|
369
|
+
spec/poolparty/poolparty/plugin_spec.rb
|
370
|
+
spec/poolparty/poolparty/pool_spec.rb
|
371
|
+
spec/poolparty/poolparty/resource_spec.rb
|
372
|
+
spec/poolparty/poolparty/resources/class_package_spec.rb
|
373
|
+
spec/poolparty/poolparty/resources/conditional_spec.rb
|
374
|
+
spec/poolparty/poolparty/resources/cron_spec.rb
|
375
|
+
spec/poolparty/poolparty/resources/directory_spec.rb
|
376
|
+
spec/poolparty/poolparty/resources/exec_spec.rb
|
377
|
+
spec/poolparty/poolparty/resources/file_spec.rb
|
378
|
+
spec/poolparty/poolparty/resources/gem_spec.rb
|
379
|
+
spec/poolparty/poolparty/resources/host_spec.rb
|
380
|
+
spec/poolparty/poolparty/resources/package_spec.rb
|
381
|
+
spec/poolparty/poolparty/resources/remote_file_spec.rb
|
382
|
+
spec/poolparty/poolparty/resources/service_spec.rb
|
383
|
+
spec/poolparty/poolparty/resources/sshkey_spec.rb
|
384
|
+
spec/poolparty/poolparty/resources/symlink_spec.rb
|
385
|
+
spec/poolparty/poolparty/resources/user_spec.rb
|
386
|
+
spec/poolparty/poolparty/resources/variable_spec.rb
|
387
|
+
spec/poolparty/poolparty/script_spec.rb
|
388
|
+
spec/poolparty/poolparty/test_plugins/sshkey_test
|
389
|
+
spec/poolparty/poolparty/test_plugins/virtual_host_template.erb
|
390
|
+
spec/poolparty/poolparty/test_plugins/webserver.rb
|
397
391
|
spec/poolparty/poolparty_spec.rb
|
392
|
+
spec/poolparty/provisioners/capistrano/capistrano_spec.rb
|
393
|
+
spec/poolparty/provisioners/provisioner_base_spec.rb
|
394
|
+
spec/poolparty/spec/core/string_spec.rb
|
398
395
|
spec/poolparty/spec_helper.rb
|
399
396
|
tasks/cloud.rake
|
400
397
|
tasks/deployment.rake
|
data/PostInstall.txt
CHANGED
data/README.txt
CHANGED
@@ -41,8 +41,10 @@ sudo gem install auser-poolparty
|
|
41
41
|
== TODO:
|
42
42
|
* Rewrite the disallowed_options to whitelist allowed_options on resources
|
43
43
|
* Add pingback for nodes to master when failure occurs
|
44
|
+
* Add become master for the nodes
|
44
45
|
* Add soft-stop to haproxy while reconfiguring
|
45
46
|
* Replace services with Runit
|
47
|
+
* Add more granular spec helpers
|
46
48
|
* Refactor provisioning to use erlang
|
47
49
|
* Add queuing of tasks on the messenger
|
48
50
|
* Add list of latest loads to the messenger
|
data/bin/cloud-configure
CHANGED
@@ -4,7 +4,8 @@ require "poolparty"
|
|
4
4
|
require "poolpartycl"
|
5
5
|
|
6
6
|
o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
|
7
|
-
|
7
|
+
optioner.cloudnames
|
8
|
+
# optioner.daemonizeable
|
8
9
|
end
|
9
10
|
|
10
11
|
o.loaded_clouds.each do |cloud|
|
@@ -13,7 +14,9 @@ o.loaded_clouds.each do |cloud|
|
|
13
14
|
|
14
15
|
# hide_output do
|
15
16
|
# if provision_class == "master" || provision_class == "all"
|
16
|
-
|
17
|
+
@cl = self
|
18
|
+
# daemon ? daemonize {Provisioner.configure_master(@cl, testing)} : Provisioner.configure_master(self, testing)
|
19
|
+
verbose ? provisioner_for(master).configure(testing) : hide_output { provisioner_for(master).configure(testing) }
|
17
20
|
# end
|
18
21
|
# if provision_class == "slave" || provision_class == "all"
|
19
22
|
# Provisioner.configure_slaves(self, testing)
|
data/bin/cloud-handle-load
CHANGED
@@ -14,12 +14,12 @@ o.loaded_clouds.each do |cloud|
|
|
14
14
|
vputs "should_expand_cloud: #{should_contract_cloud?}"
|
15
15
|
if should_expand_cloud?
|
16
16
|
vputs "Expanding cloud based on load"
|
17
|
-
|
18
|
-
|
17
|
+
log.debug "Expanding cloud based on load"
|
18
|
+
log.debug rules_values
|
19
19
|
expand_cloud_if_necessary
|
20
20
|
elsif should_contract_cloud?
|
21
21
|
vputs "Contracting cloud based on load"
|
22
|
-
|
22
|
+
log.debug rules_values
|
23
23
|
contract_cloud_if_necessary
|
24
24
|
end
|
25
25
|
end
|
data/bin/cloud-maintain
CHANGED
@@ -13,8 +13,8 @@ o.loaded_clouds.each do |cloud|
|
|
13
13
|
|
14
14
|
with_cloud(cloud) do
|
15
15
|
vputs header("Maintaining cloud #{name}")
|
16
|
-
|
17
|
-
|
16
|
+
log.warn "Maintaining cloud"
|
17
|
+
log.warn rules_values
|
18
18
|
if !minimum_number_of_instances_are_running?
|
19
19
|
vputs "#{list_of_running_instances.size} running instances of between #{minimum_instances} and #{maximum_instances}"
|
20
20
|
vputs "Launching new instance"
|
@@ -22,7 +22,7 @@ o.loaded_clouds.each do |cloud|
|
|
22
22
|
elsif maximum_number_of_instances_are_running?
|
23
23
|
vputs "#{list_of_running_instances.size} running instances of between #{minimum_instances} and #{maximum_instances}"
|
24
24
|
vputs "Shutting down non-master instance"
|
25
|
-
contract_cloud_if_necessary(
|
25
|
+
contract_cloud_if_necessary( testing ? true : false )
|
26
26
|
end
|
27
27
|
vputs "Cloud is maintained"
|
28
28
|
end
|
data/bin/cloud-provision
CHANGED
@@ -12,23 +12,24 @@ end
|
|
12
12
|
o.loaded_clouds.each do |cloud|
|
13
13
|
|
14
14
|
with_cloud(cloud) do
|
15
|
-
|
15
|
+
setup_dev
|
16
16
|
instance_num = instance_number.to_i if instance_number
|
17
17
|
|
18
18
|
if instance_num
|
19
19
|
@instance = get_instance_by_number( instance_num )
|
20
|
-
instance_num == 0 ?
|
21
|
-
Provisioner.process_clean_reconfigure_for!(@instance, self, testing)
|
20
|
+
instance_num == 0 ? provisioner_for(master).install(testing) : provisioner_for(@instance).install(testing)
|
21
|
+
# Provisioner.process_clean_reconfigure_for!(@instance, self, testing)
|
22
22
|
else
|
23
23
|
if provision_slave
|
24
24
|
vputs "Provisioning slaves"
|
25
|
-
|
25
|
+
verbose ? provisioner_for(nil).install(testing) : hide_output { provisioner_for(nil).install(testing) }
|
26
26
|
else
|
27
27
|
vputs "Provisioning master"
|
28
|
-
|
28
|
+
verbose ? provisioner_for(master).install(testing) : hide_output { provisioner_for(master).install(testing) }
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
+
clear_base_directory unless testing
|
32
33
|
end
|
33
34
|
|
34
35
|
end
|
data/bin/cloud-rsync
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
3
|
+
require "poolparty"
|
4
|
+
require "poolpartycl"
|
5
|
+
|
6
|
+
o = PoolParty::Optioner.new(ARGV, {:extra_help => "\nUsage: cloud [options] rsync source target\n\n"}) do |opts, optioner|
|
7
|
+
opts.on('-n name', '--name name', 'Listing for cloud name') { |c| optioner.cloudname c }
|
8
|
+
opts.on('-i num', '--id num', 'Instance num to ssh (default: 0)') { |i| optioner.num i }
|
9
|
+
end
|
10
|
+
|
11
|
+
@instance_number = (o.num || 0 ).to_i
|
12
|
+
|
13
|
+
if o.unflagged_args.length > 1
|
14
|
+
@target = o.unflagged_args.pop
|
15
|
+
@source = o.unflagged_args.pop
|
16
|
+
else
|
17
|
+
@source = o.unflagged_args.pop
|
18
|
+
@target = ''
|
19
|
+
end
|
20
|
+
|
21
|
+
o.loaded_clouds.each do |cloud|
|
22
|
+
|
23
|
+
with_cloud(cloud, {:source=>@source, :target=>@target, :instance_number=>@instance_number }) do
|
24
|
+
puts header("rsyncing")
|
25
|
+
rsync_to source, target, instance_number
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/bin/cloud-setup-dev
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
|
3
|
+
require "poolparty"
|
4
|
+
require "poolpartycl"
|
5
|
+
|
6
|
+
o = PoolParty::Optioner.new(ARGV) do |opts, optioner|
|
7
|
+
opts.on('-n name', '--name name', 'Setup development environment for cloud named') { |c| optioner.cloudname c }
|
8
|
+
end
|
9
|
+
|
10
|
+
o.loaded_clouds.each do |cloud|
|
11
|
+
with_cloud(cloud) do
|
12
|
+
|
13
|
+
setup_dev
|
14
|
+
|
15
|
+
str =<<-EOE
|
16
|
+
Host #{name}-master
|
17
|
+
User #{user}
|
18
|
+
Hostname #{master.ip}
|
19
|
+
IdentityFile #{full_keypair_path}
|
20
|
+
EOE
|
21
|
+
|
22
|
+
puts "Enter the following in your .ssh/config file"
|
23
|
+
puts str
|
24
|
+
end
|
25
|
+
end
|