fairchild-poolparty 1.1.5 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/README.txt +13 -9
- data/Rakefile +0 -1
- data/VERSION.yml +2 -2
- data/bin/cloud +43 -46
- data/bin/cloud-bootstrap +33 -23
- data/bin/cloud-configure +33 -34
- data/bin/cloud-console +31 -9
- data/bin/cloud-contract +27 -11
- data/bin/cloud-expand +32 -19
- data/bin/cloud-list +43 -15
- data/bin/cloud-osxcopy +22 -12
- data/bin/cloud-provision +39 -24
- data/bin/cloud-run +37 -0
- data/bin/cloud-setup-dev +31 -20
- data/bin/cloud-show +40 -21
- data/bin/cloud-ssh +24 -15
- data/bin/cloud-start +33 -19
- data/bin/cloud-terminate +34 -15
- data/bin/cloud-verify +41 -0
- data/bin/install-poolparty +22 -0
- data/bin/server-cloud-elections +17 -23
- data/bin/server-list-active +23 -22
- data/bin/server-manage-election +14 -23
- data/bin/server-show-stats +1 -1
- data/config/jeweler.rb +6 -6
- data/examples/basic.rb +13 -14
- data/examples/fairchild.rb +25 -20
- data/examples/maize.rb +37 -0
- data/examples/metavirt_cloud.rb +33 -0
- data/examples/simple.rb +13 -0
- data/examples/vmrun_cloud.rb +17 -0
- data/lib/poolparty/{aska/aska.rb → aska.rb} +3 -0
- data/lib/poolparty/core/array.rb +13 -1
- data/lib/poolparty/core/exception.rb +1 -1
- data/lib/poolparty/core/hash.rb +63 -2
- data/lib/poolparty/core/integer.rb +11 -0
- data/lib/poolparty/core/object.rb +41 -19
- data/lib/poolparty/core/proc.rb +0 -7
- data/lib/poolparty/core/string.rb +35 -2
- data/lib/poolparty/core/symbol.rb +10 -0
- data/lib/poolparty/core/time.rb +6 -0
- data/lib/poolparty/dependency_resolver/chef_resolver.rb +40 -41
- data/lib/poolparty/dependency_resolver/dependency_resolver.rb +1 -1
- data/lib/poolparty/dependency_resolver/dependency_resolver_cloud_extensions.rb +6 -6
- data/lib/poolparty/dependency_resolver/puppet.rb +0 -1
- data/lib/poolparty/dependency_resolver/puppet_resolver.rb +14 -48
- data/lib/poolparty/exceptions/MasterException.rb +2 -2
- data/lib/poolparty/extra/duration.rb +96 -0
- data/lib/poolparty/helpers/binary.rb +1 -1
- data/lib/poolparty/helpers/console.rb +0 -5
- data/lib/poolparty/helpers/optioner.rb +18 -13
- data/lib/poolparty/installers/base_installer.rb +113 -0
- data/lib/poolparty/installers/ec2.rb +141 -0
- data/lib/poolparty/installers/vmrun.rb +144 -0
- data/lib/poolparty/lite.rb +5 -2
- data/lib/poolparty/modules/callbacks.rb +15 -2
- data/lib/poolparty/modules/cloud_dsl.rb +10 -8
- data/lib/poolparty/modules/cloud_resourcer.rb +39 -59
- data/lib/poolparty/modules/daemonizable.rb +4 -5
- data/lib/poolparty/modules/definable_resource.rb +6 -7
- data/lib/poolparty/modules/file_writer.rb +2 -2
- data/lib/poolparty/modules/output.rb +2 -2
- data/lib/poolparty/modules/pinger.rb +9 -2
- data/lib/poolparty/modules/pretty_printer.rb +1 -1
- data/lib/poolparty/modules/resourcing_dsl.rb +1 -29
- data/lib/poolparty/modules/searchable_paths.rb +100 -0
- data/lib/poolparty/modules/user_helpers.rb +1 -1
- data/lib/poolparty/monitors/base_monitor.rb +65 -0
- data/lib/poolparty/monitors/monitor_daemon.rb +168 -0
- data/lib/poolparty/monitors/monitor_rack.rb +29 -15
- data/lib/poolparty/monitors/monitors/{time_monitor.rb → clock_monitor.rb} +7 -2
- data/lib/poolparty/monitors/monitors/cloud_monitor.rb +36 -0
- data/lib/poolparty/monitors/monitors/elections_monitor.rb +76 -0
- data/lib/poolparty/monitors/monitors/neighborhood_monitor.rb +15 -12
- data/lib/poolparty/monitors/monitors/stats_monitor.rb +68 -49
- data/lib/poolparty/net/init.rb +12 -7
- data/lib/poolparty/net/remote_instance.rb +48 -64
- data/lib/poolparty/net/remoter/cloud_control.rb +0 -177
- data/lib/poolparty/net/remoter/connections.rb +19 -14
- data/lib/poolparty/net/remoter/interactive.rb +30 -24
- data/lib/poolparty/net/remoter_base.rb +140 -48
- data/lib/poolparty/net/remoter_bases/ec2/ec2.rb +119 -71
- data/lib/poolparty/net/remoter_bases/ec2/ec2_remote_instance.rb +42 -31
- data/lib/poolparty/net/remoter_bases/ec2/ec2_response_object.rb +75 -10
- data/lib/poolparty/net/remoter_bases/libvirt/libvirt.rb +73 -0
- data/lib/poolparty/net/remoter_bases/libvirt/libvirt_instance.rb +64 -0
- data/lib/poolparty/net/remoter_bases/metavirt/metavirt.rb +110 -0
- data/lib/poolparty/net/remoter_bases/metavirt/metavirt_instance.rb +37 -0
- data/lib/poolparty/net/remoter_bases/vmrun/utilities/vm_disk.rb +1 -1
- data/lib/poolparty/net/remoter_bases/vmrun/utilities/vmx.rb +1 -1
- data/lib/poolparty/net/remoter_bases/vmrun/utilities/vmx_file.rb +117 -117
- data/lib/poolparty/net/remoter_bases/vmrun/vmrun.rb +59 -43
- data/lib/poolparty/net/remoter_bases/vmrun/vmrun_instance.rb +37 -21
- data/lib/poolparty/plugins/apache2/apache.rb +266 -0
- data/lib/poolparty/plugins/apache2/passenger_site.rb +86 -0
- data/lib/poolparty/plugins/apache2/php5.rb +40 -0
- data/lib/poolparty/plugins/apache2/virtual_host.rb +53 -0
- data/lib/poolparty/plugins/authorized_key.rb +29 -0
- data/lib/poolparty/plugins/bind.rb +5 -6
- data/lib/poolparty/plugins/{chef.rb → chef/chef.rb} +32 -44
- data/lib/poolparty/plugins/chef/chef_deploy.rb +55 -0
- data/lib/poolparty/plugins/chef/chef_deploy_definition.rb +32 -0
- data/lib/poolparty/plugins/chef/chef_library.rb +7 -0
- data/lib/poolparty/plugins/chef/chef_recipe.rb +7 -0
- data/lib/poolparty/plugins/chef/include_chef_recipe.rb +14 -0
- data/lib/poolparty/plugins/deploy_directory.rb +41 -26
- data/lib/poolparty/plugins/gem_package.rb +42 -14
- data/lib/poolparty/plugins/git.rb +62 -33
- data/lib/poolparty/{base_packages → plugins}/haproxy.rb +21 -20
- data/lib/poolparty/plugins/heartbeat.rb +16 -0
- data/lib/poolparty/plugins/host.rb +39 -0
- data/lib/poolparty/plugins/line_in_file.rb +24 -2
- data/lib/poolparty/plugins/plugin_template.rb +13 -0
- data/lib/poolparty/{base_packages/poolparty.rb → plugins/poolparty_base_packages.rb} +4 -6
- data/lib/poolparty/plugins/rails_deploy.rb +128 -0
- data/lib/poolparty/{base_packages → plugins}/ruby.rb +3 -3
- data/lib/poolparty/plugins/runit.rb +17 -92
- data/lib/poolparty/plugins/sshkey.rb +50 -0
- data/lib/poolparty/plugins/svn.rb +10 -8
- data/lib/poolparty/poolparty/cloud.rb +224 -61
- data/lib/poolparty/poolparty/default.rb +22 -15
- data/lib/poolparty/poolparty/key.rb +19 -28
- data/lib/poolparty/poolparty/neighborhoods.rb +16 -5
- data/lib/poolparty/poolparty/plugin.rb +49 -13
- data/lib/poolparty/poolparty/pool.rb +32 -9
- data/lib/poolparty/poolparty/poolparty_base_class.rb +65 -45
- data/lib/poolparty/poolparty/resource.rb +24 -49
- data/lib/poolparty/poolparty/service.rb +11 -9
- data/lib/poolparty/provision/boot_strapper.rb +48 -37
- data/lib/poolparty/provision/configurations/chef.rb +6 -5
- data/lib/poolparty/provision/dr_configure.rb +25 -19
- data/lib/poolparty/resources/cron.rb +37 -4
- data/lib/poolparty/resources/directory.rb +30 -0
- data/lib/poolparty/resources/exec.rb +31 -1
- data/lib/poolparty/resources/file.rb +54 -12
- data/lib/poolparty/resources/group.rb +21 -0
- data/lib/poolparty/resources/mount.rb +24 -4
- data/lib/poolparty/resources/package.rb +30 -6
- data/lib/poolparty/resources/remote_file.rb +33 -1
- data/lib/poolparty/resources/service.rb +22 -1
- data/lib/poolparty/resources/symlink.rb +37 -2
- data/lib/poolparty/resources/user.rb +25 -0
- data/lib/poolparty/resources/variable.rb +26 -1
- data/lib/poolparty/resources.rb +42 -0
- data/lib/poolparty/schema.rb +6 -8
- data/lib/poolparty/templates/apache2/apache2.conf +14 -0
- data/lib/poolparty/templates/apache2/base.conf.erb +168 -0
- data/lib/poolparty/templates/apache2/browser_fixes.conf.erb +26 -0
- data/lib/poolparty/templates/apache2/debian.conf.erb +675 -0
- data/lib/poolparty/templates/apache2/default-site.conf.erb +41 -0
- data/lib/poolparty/templates/apache2/directory_indexes.conf.erb +101 -0
- data/lib/poolparty/templates/apache2/logging-syslog.conf.erb +42 -0
- data/lib/poolparty/templates/apache2/mime-extras.conf.erb +211 -0
- data/lib/poolparty/templates/apache2/mime-minimal.conf.erb +15 -0
- data/lib/poolparty/templates/apache2/mpm-worker.conf.erb +20 -0
- data/lib/poolparty/templates/apache2/mpm-worker.erb +20 -0
- data/lib/poolparty/templates/apache2/passenger.conf.erb +20 -0
- data/lib/poolparty/templates/apache2/php.ini.erb +1253 -0
- data/lib/poolparty/templates/apache2/server-status.erb +19 -0
- data/lib/poolparty/templates/{gemrc → gemrc_template} +0 -0
- data/lib/poolparty/templates/haproxy.conf +2 -2
- data/lib/poolparty/templates/monitor.ru +13 -0
- data/lib/poolparty/templates/php.ini.erb +1253 -0
- data/lib/poolparty/verification/verifier_base.rb +10 -0
- data/lib/poolparty/verification/verifiers/http_match.rb +43 -0
- data/lib/poolparty/verification/verifiers/http_status.rb +59 -0
- data/lib/poolparty/verification/verifiers/ping.rb +18 -1
- data/lib/poolparty/verification/verify.rb +6 -0
- data/lib/poolparty.rb +14 -15
- data/lib/poolpartycl.rb +1 -1
- data/spec/bin/bin_spec_helper.rb +1 -0
- data/spec/bin/fixtures/bin_cloud_for_test.rb +0 -6
- data/spec/bin/server-list-active_spec.rb +4 -6
- data/spec/poolparty/core/object_spec.rb +1 -62
- data/spec/poolparty/core/ordered_hash_spec.rb +7 -7
- data/spec/poolparty/core/string_spec.rb +1 -1
- data/spec/poolparty/dependency_resolver/chef_resolver_spec.rb +0 -8
- data/spec/poolparty/dependency_resolver/dependency_resolver_cloud_extensions_spec.rb +35 -32
- data/spec/poolparty/extra/deployments_spec.rb +68 -68
- data/spec/poolparty/fixtures/clouds.json +1 -1
- data/spec/poolparty/fixtures/fake_key.pub +1 -0
- data/spec/poolparty/helpers/optioner_spec.rb +4 -11
- data/spec/poolparty/modules/cloud_resourcer_spec.rb +1 -1
- data/spec/poolparty/modules/searchable_paths_spec.rb +83 -0
- data/spec/poolparty/net/remote_instance_spec.rb +1 -2
- data/spec/poolparty/net/remoter_base_spec.rb +7 -11
- data/spec/poolparty/net/remoter_bases/ec2_mocks_and_stubs.rb +9 -11
- data/spec/poolparty/net/remoter_bases/ec2_remote_instance_spec.rb +6 -56
- data/spec/poolparty/net/remoter_bases/ec2_spec.rb +10 -7
- data/spec/poolparty/net/remoter_spec.rb +2 -3
- data/spec/poolparty/plugins/authorized_key_spec.rb +23 -0
- data/spec/poolparty/plugins/deploydirectory_spec.rb +64 -51
- data/spec/poolparty/plugins/git_spec.rb +8 -10
- data/spec/poolparty/poolparty/cloud_spec.rb +61 -64
- data/spec/poolparty/poolparty/configurers/files/ruby_basic.rb +2 -4
- data/spec/poolparty/poolparty/configurers/files/ruby_plugins.rb +1 -1
- data/spec/poolparty/poolparty/configurers/ruby_spec.rb +1 -6
- data/spec/poolparty/poolparty/default_spec.rb +23 -22
- data/spec/poolparty/poolparty/example_spec.rb +47 -26
- data/spec/poolparty/{base_packages → poolparty}/haproxy_spec.rb +1 -1
- data/spec/poolparty/{base_packages → poolparty}/heartbeat_spec.rb +1 -1
- data/spec/poolparty/poolparty/key_spec.rb +2 -2
- data/spec/poolparty/poolparty/neighborhoods_spec.rb +1 -1
- data/spec/poolparty/poolparty/plugin_model_spec.rb +13 -17
- data/spec/poolparty/poolparty/plugin_spec.rb +7 -7
- data/spec/poolparty/poolparty/pool_spec.rb +4 -10
- data/spec/poolparty/poolparty/resource_spec.rb +25 -29
- data/spec/poolparty/poolparty/script_spec.rb +1 -4
- data/spec/poolparty/poolparty/test_plugins/webserver.rb +27 -25
- data/spec/poolparty/resources/file_spec.rb +5 -4
- data/spec/poolparty/resources/sshkey_spec.rb +39 -40
- data/spec/poolparty/spec_helper.rb +9 -39
- data/tasks/poolparty.rake +29 -1
- data/tasks/spec.rake +39 -1
- data/test/fixtures/fake_clouds.rb +11 -0
- data/test/fixtures/metavirt_cloud.json +1 -0
- data/test/fixtures/test_key +1 -0
- data/test/poolparty/core/array_test.rb +11 -0
- data/test/poolparty/core/hash_test.rb +5 -7
- data/test/poolparty/core/object_test.rb +29 -0
- data/test/poolparty/dependency_resolver/chef_resolver_test.rb +82 -0
- data/test/poolparty/dependency_resolver/puppet_resolver_test.rb +5 -26
- data/test/poolparty/modules/callbacks_test.rb +1 -1
- data/test/poolparty/modules/cloud_dsl_test.rb +10 -8
- data/test/poolparty/monitors/test_base_monitor.rb +17 -0
- data/test/poolparty/monitors/test_monitor_rack.rb +26 -0
- data/test/poolparty/net/remoter_base_test.rb +17 -0
- data/test/poolparty/net/remoter_bases/libvirt/libvirt_test.rb +70 -0
- data/test/poolparty/net/remoter_bases/metavirt/metavirt_test.rb +81 -0
- data/test/poolparty/net/remoter_bases/vmrun/vmrun_test.rb +58 -27
- data/test/poolparty/plugins/chef_deploy_test.rb +37 -0
- data/test/poolparty/plugins/chef_plugin_test.rb +23 -0
- data/test/poolparty/plugins/rails_deploy_test.rb +50 -0
- data/test/poolparty/poolparty/cloud_test.rb +65 -0
- data/test/poolparty/poolparty/isolated_cloud_test.rb +25 -0
- data/test/poolparty/poolparty/neighborhood_test.rb +1 -1
- data/test/poolparty/poolparty/plugin_test.rb +19 -0
- data/test/poolparty/poolparty/pool_test.rb +22 -0
- data/test/poolparty/poolparty/poolparty_base_class_test.rb +53 -15
- data/test/poolparty/poolparty/schema_test.rb +13 -0
- data/test/poolparty/poolparty/template_test.rb +6 -6
- data/test/poolparty/verification/verify_test.rb +7 -3
- data/test/test_helper.rb +15 -4
- data/test/test_methods.rb +11 -0
- data/vendor/chef/apache2/attributes/apache.rb +1 -1
- data/vendor/gems/dslify/LICENSE +20 -0
- data/vendor/gems/dslify/README.rdoc +33 -0
- data/vendor/gems/dslify/Rakefile +56 -0
- data/vendor/gems/dslify/VERSION.yml +4 -0
- data/vendor/gems/dslify/dslify.gemspec +29 -0
- data/vendor/gems/dslify/lib/dslify.rb +81 -0
- data/vendor/gems/dslify/test/dslify_test.rb +283 -0
- data/vendor/gems/dslify/test/test_helper.rb +7 -0
- data/vendor/gems/git-style-binaries/README.markdown +280 -0
- data/vendor/gems/git-style-binaries/Rakefile +64 -0
- data/vendor/gems/git-style-binaries/VERSION.yml +4 -0
- data/vendor/gems/git-style-binaries/doc/EXAMPLES +1 -0
- data/vendor/gems/git-style-binaries/doc/gsb-screencast.png +0 -0
- data/vendor/gems/git-style-binaries/doc/poolparty-binaries.screenplay +412 -0
- data/vendor/gems/git-style-binaries/git-style-binaries.gemspec +78 -0
- data/vendor/gems/git-style-binaries/lib/ext/colorize.rb +198 -0
- data/vendor/gems/git-style-binaries/lib/ext/core.rb +16 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/autorunner.rb +21 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/command.rb +204 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/commands/help.rb +32 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/helpers/name_resolver.rb +78 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/helpers/pager.rb +37 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary/parser.rb +223 -0
- data/vendor/gems/git-style-binaries/lib/git-style-binary.rb +88 -0
- data/vendor/gems/git-style-binaries/test/fixtures/flickr +4 -0
- data/vendor/gems/git-style-binaries/test/fixtures/flickr-download +17 -0
- data/vendor/gems/git-style-binaries/test/fixtures/wordpress +42 -0
- data/vendor/gems/git-style-binaries/test/fixtures/wordpress-categories +18 -0
- data/vendor/gems/git-style-binaries/test/fixtures/wordpress-list +18 -0
- data/vendor/gems/git-style-binaries/test/fixtures/wordpress-post +26 -0
- data/vendor/gems/git-style-binaries/test/git-style-binary/command_test.rb +17 -0
- data/vendor/gems/git-style-binaries/test/git_style_binary_test.rb +21 -0
- data/vendor/gems/git-style-binaries/test/running_binaries_test.rb +224 -0
- data/vendor/gems/git-style-binaries/test/shoulda_macros/matching_stdio.rb +13 -0
- data/vendor/gems/git-style-binaries/test/test_helper.rb +28 -0
- data/vendor/gems/parenting/History.txt +4 -0
- data/vendor/gems/parenting/Manifest.txt +14 -0
- data/vendor/gems/parenting/PostInstall.txt +2 -0
- data/vendor/gems/parenting/README.rdoc +47 -0
- data/vendor/gems/parenting/Rakefile +28 -0
- data/vendor/gems/parenting/lib/parenting/parenting.rb +70 -0
- data/vendor/gems/parenting/lib/parenting.rb +10 -0
- data/vendor/gems/parenting/parenting.gemspec +39 -0
- data/vendor/gems/parenting/script/console +10 -0
- data/vendor/gems/parenting/script/destroy +14 -0
- data/vendor/gems/parenting/script/generate +14 -0
- data/vendor/gems/parenting/test/file_to_eval.rb +9 -0
- data/vendor/gems/parenting/test/test_helper.rb +5 -0
- data/vendor/gems/parenting/test/test_parenting.rb +117 -0
- data/vendor/gems/suitcase/LICENSE +20 -0
- data/vendor/gems/suitcase/README.rdoc +31 -0
- data/vendor/gems/suitcase/Rakefile +57 -0
- data/vendor/gems/suitcase/VERSION.yml +4 -0
- data/vendor/gems/suitcase/lib/suitcase/unzipper.rb +15 -0
- data/vendor/gems/suitcase/lib/suitcase/zipper.rb +167 -0
- data/vendor/gems/suitcase/lib/suitcase.rb +5 -0
- data/vendor/gems/suitcase/suitcase.gemspec +32 -0
- data/vendor/gems/suitcase/test/suitcase_test.rb +108 -0
- data/vendor/gems/suitcase/test/test_dir/box.rb +1 -0
- data/vendor/gems/suitcase/test/test_dir/gems/famoseagle-carrot-0.6.0.gem +0 -0
- data/vendor/gems/suitcase/test/test_dir/test.txt +1 -0
- data/vendor/gems/suitcase/test/test_helper.rb +12 -0
- data/vendor/gems/trollop/FAQ.txt +35 -0
- data/vendor/gems/trollop/History.txt +97 -0
- data/vendor/gems/trollop/Manifest.txt +7 -0
- data/vendor/gems/trollop/README.txt +40 -0
- data/vendor/gems/trollop/Rakefile +36 -0
- data/vendor/gems/trollop/lib/trollop.rb +735 -0
- data/vendor/gems/trollop/release-script.txt +13 -0
- data/vendor/gems/trollop/test/test_trollop.rb +1042 -0
- data/vendor/gems/trollop/www/index.html +167 -0
- metadata +205 -150
- data/bin/cloud-describe +0 -28
- data/bin/cloud-handle-load +0 -27
- data/bin/cloud-rsync +0 -28
- data/bin/cloud-spec +0 -41
- data/bin/messenger-get-current-nodes +0 -14
- data/bin/server-become-master +0 -24
- data/bin/server-build-messenger +0 -28
- data/bin/server-clean-cert-for +0 -15
- data/bin/server-provision +0 -32
- data/bin/server-start-agent +0 -15
- data/bin/server-start-client +0 -29
- data/bin/server-start-master +0 -26
- data/bin/server-start-node +0 -32
- data/bin/server-stop-client +0 -3
- data/bin/server-stop-master +0 -3
- data/bin/server-stop-node +0 -3
- data/bin/server-update-hosts +0 -49
- data/examples/poolparty.rb +0 -12
- data/lib/poolparty/base_packages/heartbeat.rb +0 -58
- data/lib/poolparty/base_packages/runit.rb +0 -21
- data/lib/poolparty/capistrano/cloud_tasks.rb +0 -10
- data/lib/poolparty/capistrano.rb +0 -54
- data/lib/poolparty/config/postlaunchmessage.txt +0 -5
- data/lib/poolparty/core/metaid.rb +0 -15
- data/lib/poolparty/core/module.rb +0 -40
- data/lib/poolparty/extra/deployments.rb +0 -31
- data/lib/poolparty/helpers/display.rb +0 -30
- data/lib/poolparty/net/messenger.rb +0 -57
- data/lib/poolparty/net/remote_bases.rb +0 -21
- data/lib/poolparty/plugins/chef_deploy.rb +0 -58
- data/lib/poolparty/plugins/dynomite.rb +0 -14
- data/lib/poolparty/plugins/nanite.rb +0 -41
- data/lib/poolparty/plugins/rsyncmirror.rb +0 -28
- data/lib/poolparty/plugins/tokyo_tyrant.rb +0 -23
- data/lib/poolparty/poolparty/plugin_model.rb +0 -45
- data/lib/poolparty/resources/host.rb +0 -16
- data/lib/poolparty/resources/sshkey.rb +0 -27
- data/lib/poolparty/services/conditional.rb +0 -46
- data/lib/poolparty/spec/core/string.rb +0 -18
- data/lib/poolparty/spec/matchers/a_spec_extensions_base.rb +0 -26
- data/lib/poolparty/spec/matchers/have_cron.rb +0 -28
- data/lib/poolparty/spec/matchers/have_deploydirectory.rb +0 -15
- data/lib/poolparty/spec/matchers/have_directory.rb +0 -31
- data/lib/poolparty/spec/matchers/have_exec.rb +0 -28
- data/lib/poolparty/spec/matchers/have_file.rb +0 -28
- data/lib/poolparty/spec/matchers/have_gempackage.rb +0 -28
- data/lib/poolparty/spec/matchers/have_git.rb +0 -28
- data/lib/poolparty/spec/matchers/have_host.rb +0 -28
- data/lib/poolparty/spec/matchers/have_mount.rb +0 -28
- data/lib/poolparty/spec/matchers/have_package.rb +0 -28
- data/lib/poolparty/spec/matchers/have_remotefile.rb +0 -28
- data/lib/poolparty/spec/matchers/have_rsyncmirror.rb +0 -28
- data/lib/poolparty/spec/matchers/have_service.rb +0 -28
- data/lib/poolparty/spec/matchers/have_sshkey.rb +0 -28
- data/lib/poolparty/spec/matchers/have_symlink.rb +0 -28
- data/lib/poolparty/spec/matchers/have_variable.rb +0 -32
- data/lib/poolparty/spec/spec/dynamic_matchers.rb +0 -63
- data/lib/poolparty/spec/spec/ensure_matchers_exist.rb +0 -7
- data/lib/poolparty/spec/templates/have_base.rb +0 -28
- data/lib/poolparty/spec.rb +0 -31
- data/spec/poolparty/core/module_spec.rb +0 -15
- data/spec/poolparty/helpers/display_spec.rb +0 -13
- data/spec/poolparty/id_rsa +0 -27
- data/spec/poolparty/net/messenger_spec.rb +0 -16
- data/spec/poolparty/resources/host_spec.rb +0 -35
- data/spec/poolparty/services/conditional_spec.rb +0 -52
- data/spec/poolparty/spec/core/string_spec.rb +0 -57
@@ -0,0 +1,41 @@
|
|
1
|
+
<VirtualHost *:<%= @node[:poolparty][:port] %>>
|
2
|
+
ServerAdmin webmaster@localhost
|
3
|
+
|
4
|
+
DocumentRoot /var/www
|
5
|
+
<Directory />
|
6
|
+
Options FollowSymLinks
|
7
|
+
AllowOverride None
|
8
|
+
</Directory>
|
9
|
+
<Directory /var/www/>
|
10
|
+
Options Indexes FollowSymLinks MultiViews
|
11
|
+
AllowOverride None
|
12
|
+
Order allow,deny
|
13
|
+
allow from all
|
14
|
+
</Directory>
|
15
|
+
|
16
|
+
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
17
|
+
<Directory "/usr/lib/cgi-bin">
|
18
|
+
AllowOverride None
|
19
|
+
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
20
|
+
Order allow,deny
|
21
|
+
Allow from all
|
22
|
+
</Directory>
|
23
|
+
|
24
|
+
ErrorLog /var/log/apache2/error.log
|
25
|
+
|
26
|
+
# Possible values include: debug, info, notice, warn, error, crit,
|
27
|
+
# alert, emerg.
|
28
|
+
LogLevel warn
|
29
|
+
|
30
|
+
CustomLog /var/log/apache2/access.log combined
|
31
|
+
|
32
|
+
Alias /doc/ "/usr/share/doc/"
|
33
|
+
<Directory "/usr/share/doc/">
|
34
|
+
Options Indexes MultiViews FollowSymLinks
|
35
|
+
AllowOverride None
|
36
|
+
Order deny,allow
|
37
|
+
Deny from all
|
38
|
+
Allow from 127.0.0.0/255.0.0.0 ::1/128
|
39
|
+
</Directory>
|
40
|
+
|
41
|
+
</VirtualHost>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<IfModule alias_module>
|
2
|
+
#
|
3
|
+
# Aliases: Add here as many aliases as you need (with no limit). The format is
|
4
|
+
# Alias fakename realname
|
5
|
+
#
|
6
|
+
# Note that if you include a trailing / on fakename then the server will
|
7
|
+
# require it to be present in the URL. So "/icons" isn't aliased in this
|
8
|
+
# example, only "/icons/". If the fakename is slash-terminated, then the
|
9
|
+
# realname must also be slash terminated, and if the fakename omits the
|
10
|
+
# trailing slash, the realname must also omit it.
|
11
|
+
#
|
12
|
+
# We include the /icons/ alias for FancyIndexed directory listings. If
|
13
|
+
# you do not use FancyIndexing, you may comment this out.
|
14
|
+
#
|
15
|
+
Alias /icons/ "/usr/share/apache2/icons/"
|
16
|
+
|
17
|
+
<Directory "/usr/share/apache2/icons">
|
18
|
+
Options Indexes MultiViews
|
19
|
+
AllowOverride None
|
20
|
+
Order allow,deny
|
21
|
+
Allow from all
|
22
|
+
</Directory>
|
23
|
+
|
24
|
+
</IfModule>
|
25
|
+
|
26
|
+
#
|
27
|
+
# Directives controlling the display of server-generated directory listings.
|
28
|
+
#
|
29
|
+
<IfModule mod_autoindex.c>
|
30
|
+
|
31
|
+
#
|
32
|
+
# IndexOptions: Controls the appearance of server-generated directory
|
33
|
+
# listings.
|
34
|
+
#
|
35
|
+
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*
|
36
|
+
|
37
|
+
#
|
38
|
+
# AddIcon* directives tell the server which icon to show for different
|
39
|
+
# files or filename extensions. These are only displayed for
|
40
|
+
# FancyIndexed directories.
|
41
|
+
#
|
42
|
+
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
|
43
|
+
|
44
|
+
AddIconByType (TXT,/icons/text.gif) text/*
|
45
|
+
AddIconByType (IMG,/icons/image2.gif) image/*
|
46
|
+
AddIconByType (SND,/icons/sound2.gif) audio/*
|
47
|
+
AddIconByType (VID,/icons/movie.gif) video/*
|
48
|
+
|
49
|
+
AddIcon /icons/binary.gif .bin .exe
|
50
|
+
AddIcon /icons/binhex.gif .hqx
|
51
|
+
AddIcon /icons/tar.gif .tar
|
52
|
+
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
|
53
|
+
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
|
54
|
+
AddIcon /icons/a.gif .ps .ai .eps
|
55
|
+
AddIcon /icons/layout.gif .html .shtml .htm .pdf
|
56
|
+
AddIcon /icons/text.gif .txt
|
57
|
+
AddIcon /icons/c.gif .c
|
58
|
+
AddIcon /icons/p.gif .pl .py
|
59
|
+
AddIcon /icons/f.gif .for
|
60
|
+
AddIcon /icons/dvi.gif .dvi
|
61
|
+
AddIcon /icons/uuencoded.gif .uu
|
62
|
+
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
|
63
|
+
AddIcon /icons/tex.gif .tex
|
64
|
+
AddIcon /icons/bomb.gif core
|
65
|
+
|
66
|
+
AddIcon /icons/back.gif ..
|
67
|
+
AddIcon /icons/hand.right.gif README
|
68
|
+
AddIcon /icons/folder.gif ^^DIRECTORY^^
|
69
|
+
AddIcon /icons/blank.gif ^^BLANKICON^^
|
70
|
+
|
71
|
+
#
|
72
|
+
# DefaultIcon is which icon to show for files which do not have an icon
|
73
|
+
# explicitly set.
|
74
|
+
#
|
75
|
+
DefaultIcon /icons/unknown.gif
|
76
|
+
|
77
|
+
#
|
78
|
+
# AddDescription allows you to place a short description after a file in
|
79
|
+
# server-generated indexes. These are only displayed for FancyIndexed
|
80
|
+
# directories.
|
81
|
+
# Format: AddDescription "description" filename
|
82
|
+
#
|
83
|
+
#AddDescription "GZIP compressed document" .gz
|
84
|
+
#AddDescription "tar archive" .tar
|
85
|
+
#AddDescription "GZIP compressed tar archive" .tgz
|
86
|
+
|
87
|
+
#
|
88
|
+
# ReadmeName is the name of the README file the server will look for by
|
89
|
+
# default, and append to directory listings.
|
90
|
+
#
|
91
|
+
# HeaderName is the name of a file which should be prepended to
|
92
|
+
# directory indexes.
|
93
|
+
ReadmeName README.html
|
94
|
+
HeaderName HEADER.html
|
95
|
+
|
96
|
+
#
|
97
|
+
# IndexIgnore is a set of filenames which directory indexing should ignore
|
98
|
+
# and not include in the listing. Shell-style wildcarding is permitted.
|
99
|
+
#
|
100
|
+
IndexIgnore .??* *~ *# RCS CVS *,v *,t
|
101
|
+
</IfModule>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#
|
2
|
+
# LogLevel: Control the number of messages logged to the error_log.
|
3
|
+
# Possible values include: debug, info, notice, warn, error, crit,
|
4
|
+
# alert, emerg.
|
5
|
+
#
|
6
|
+
LogLevel warn
|
7
|
+
|
8
|
+
#
|
9
|
+
# ErrorLog: The location of the error log file.
|
10
|
+
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
11
|
+
# container, error messages relating to that virtual host will be
|
12
|
+
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
13
|
+
# container, that host's errors will be logged there and not here.
|
14
|
+
#
|
15
|
+
ErrorLog syslog:local7
|
16
|
+
|
17
|
+
#
|
18
|
+
# The following directives define some format nicknames for use with
|
19
|
+
# a CustomLog directive (see below).
|
20
|
+
#
|
21
|
+
# NOTE: using %a instead of %h seems to save a full DNS lookup for every
|
22
|
+
# connection...
|
23
|
+
#
|
24
|
+
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
25
|
+
LogFormat "%a %l %u %t \"%r\" %>s %b" common
|
26
|
+
LogFormat "%{Referer}i -> %U" referer
|
27
|
+
LogFormat "%{User-agent}i" agent
|
28
|
+
|
29
|
+
#
|
30
|
+
# This will send the access log messages to syslog
|
31
|
+
#
|
32
|
+
CustomLog "|/usr/bin/logger -p local7.info -t apache" combined
|
33
|
+
|
34
|
+
#
|
35
|
+
# The BufferedLogs directive causes mod_log_config to store several log
|
36
|
+
# entries in memory and write them together to disk, rather than writing
|
37
|
+
# them after each request. On some systems, this may result in more
|
38
|
+
# efficient disk access and hence higher performance. It may be set only
|
39
|
+
# once for the entire server; it cannot be configured per virtual-host.
|
40
|
+
# This directive is experimental and should be used with caution.
|
41
|
+
|
42
|
+
BufferedLogs On
|
@@ -0,0 +1,211 @@
|
|
1
|
+
<IfModule mod_mime.c>
|
2
|
+
#
|
3
|
+
# AddType allows you to add to or override the MIME configuration
|
4
|
+
# file mime.types for specific file types.
|
5
|
+
#
|
6
|
+
#AddType application/x-gzip .tgz
|
7
|
+
#
|
8
|
+
# AddEncoding allows you to have certain browsers uncompress
|
9
|
+
# information on the fly. Note: Not all browsers support this.
|
10
|
+
# Despite the name similarity, the following Add* directives have
|
11
|
+
# nothing to do with the FancyIndexing customization directives above.
|
12
|
+
#
|
13
|
+
#AddEncoding x-compress .Z
|
14
|
+
#AddEncoding x-gzip .gz .tgz
|
15
|
+
#
|
16
|
+
# If the AddEncoding directives above are commented-out, then you
|
17
|
+
# probably should define those extensions to indicate media types:
|
18
|
+
#
|
19
|
+
AddType application/x-compress .Z
|
20
|
+
AddType application/x-gzip .gz .tgz
|
21
|
+
|
22
|
+
#
|
23
|
+
# DefaultLanguage and AddLanguage allows you to specify the language of
|
24
|
+
# a document. You can then use content negotiation to give a browser a
|
25
|
+
# file in a language the user can understand.
|
26
|
+
#
|
27
|
+
# Specify a default language. This means that all data
|
28
|
+
# going out without a specific language tag (see below) will
|
29
|
+
# be marked with this one. You probably do NOT want to set
|
30
|
+
# this unless you are sure it is correct for all cases.
|
31
|
+
#
|
32
|
+
# * It is generally better to not mark a page as
|
33
|
+
# * being a certain language than marking it with the wrong
|
34
|
+
# * language!
|
35
|
+
#
|
36
|
+
# DefaultLanguage nl
|
37
|
+
#
|
38
|
+
# Note 1: The suffix does not have to be the same as the language
|
39
|
+
# keyword --- those with documents in Polish (whose net-standard
|
40
|
+
# language code is pl) may wish to use "AddLanguage pl .po" to
|
41
|
+
# avoid the ambiguity with the common suffix for perl scripts.
|
42
|
+
#
|
43
|
+
# Note 2: The example entries below illustrate that in some cases
|
44
|
+
# the two character 'Language' abbreviation is not identical to
|
45
|
+
# the two character 'Country' code for its country,
|
46
|
+
# E.g. 'Danmark/dk' versus 'Danish/da'.
|
47
|
+
#
|
48
|
+
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
|
49
|
+
# specifier. There is 'work in progress' to fix this and get
|
50
|
+
# the reference data for rfc1766 cleaned up.
|
51
|
+
#
|
52
|
+
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
|
53
|
+
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
|
54
|
+
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
|
55
|
+
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
|
56
|
+
# Norwegian (no) - Polish (pl) - Portugese (pt)
|
57
|
+
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
|
58
|
+
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
|
59
|
+
#
|
60
|
+
# AddLanguage ca .ca
|
61
|
+
# AddLanguage cs .cz .cs
|
62
|
+
# AddLanguage da .dk
|
63
|
+
# AddLanguage de .de
|
64
|
+
# AddLanguage el .el
|
65
|
+
# AddLanguage en .en
|
66
|
+
# AddLanguage eo .eo
|
67
|
+
# AddLanguage es .es
|
68
|
+
# AddLanguage et .et
|
69
|
+
# AddLanguage fr .fr
|
70
|
+
# AddLanguage he .he
|
71
|
+
# AddLanguage hr .hr
|
72
|
+
# AddLanguage it .it
|
73
|
+
# AddLanguage ja .ja
|
74
|
+
# AddLanguage ko .ko
|
75
|
+
# AddLanguage ltz .ltz
|
76
|
+
# AddLanguage nl .nl
|
77
|
+
# AddLanguage nn .nn
|
78
|
+
# AddLanguage no .no
|
79
|
+
# AddLanguage pl .po
|
80
|
+
# AddLanguage pt .pt
|
81
|
+
# AddLanguage pt-BR .pt-br
|
82
|
+
# AddLanguage ru .ru
|
83
|
+
# AddLanguage sv .sv
|
84
|
+
# AddLanguage zh-CN .zh-cn
|
85
|
+
# AddLanguage zh-TW .zh-tw
|
86
|
+
</IfModule>
|
87
|
+
|
88
|
+
<IfModule mod_negotiation.c>
|
89
|
+
#
|
90
|
+
# LanguagePriority allows you to give precedence to some languages
|
91
|
+
# in case of a tie during content negotiation.
|
92
|
+
#
|
93
|
+
# Just list the languages in decreasing order of preference. We have
|
94
|
+
# more or less alphabetized them here. You probably want to change this.
|
95
|
+
#
|
96
|
+
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
|
97
|
+
|
98
|
+
#
|
99
|
+
# ForceLanguagePriority allows you to serve a result page rather than
|
100
|
+
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
|
101
|
+
# [in case no accepted languages matched the available variants]
|
102
|
+
#
|
103
|
+
ForceLanguagePriority Prefer Fallback
|
104
|
+
|
105
|
+
</IfModule>
|
106
|
+
|
107
|
+
<IfModule mod_mime.c>
|
108
|
+
#
|
109
|
+
# Specify a default charset for all pages sent out. This is
|
110
|
+
# always a good idea and opens the door for future internationalisation
|
111
|
+
# of your web site, should you ever want it. Specifying it as
|
112
|
+
# a default does little harm; as the standard dictates that a page
|
113
|
+
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
|
114
|
+
# are merely stating the obvious. There are also some security
|
115
|
+
# reasons in browsers, related to javascript and URL parsing
|
116
|
+
# which encourage you to always set a default char set.
|
117
|
+
#
|
118
|
+
#AddDefaultCharset ISO-8859-1
|
119
|
+
|
120
|
+
#
|
121
|
+
# Commonly used filename extensions to character sets. You probably
|
122
|
+
# want to avoid clashes with the language extensions, unless you
|
123
|
+
# are good at carefully testing your setup after each change.
|
124
|
+
# See http://www.iana.org/assignments/character-sets for the
|
125
|
+
# official list of charset names and their respective RFCs.
|
126
|
+
#
|
127
|
+
AddCharset us-ascii .ascii .us-ascii
|
128
|
+
AddCharset ISO-8859-1 .iso8859-1 .latin1
|
129
|
+
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
|
130
|
+
AddCharset ISO-8859-3 .iso8859-3 .latin3
|
131
|
+
AddCharset ISO-8859-4 .iso8859-4 .latin4
|
132
|
+
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
|
133
|
+
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
|
134
|
+
AddCharset ISO-8859-7 .iso8859-7 .grk .greek
|
135
|
+
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
|
136
|
+
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
|
137
|
+
AddCharset ISO-8859-10 .iso8859-10 .latin6
|
138
|
+
AddCharset ISO-8859-13 .iso8859-13
|
139
|
+
AddCharset ISO-8859-14 .iso8859-14 .latin8
|
140
|
+
AddCharset ISO-8859-15 .iso8859-15 .latin9
|
141
|
+
AddCharset ISO-8859-16 .iso8859-16 .latin10
|
142
|
+
AddCharset ISO-2022-JP .iso2022-jp .jis
|
143
|
+
AddCharset ISO-2022-KR .iso2022-kr .kis
|
144
|
+
AddCharset ISO-2022-CN .iso2022-cn .cis
|
145
|
+
AddCharset Big5 .Big5 .big5 .b5
|
146
|
+
AddCharset cn-Big5 .cn-big5
|
147
|
+
# For russian, more than one charset is used (depends on client, mostly):
|
148
|
+
AddCharset WINDOWS-1251 .cp-1251 .win-1251
|
149
|
+
AddCharset CP866 .cp866
|
150
|
+
AddCharset KOI8 .koi8
|
151
|
+
AddCharset KOI8-E .koi8-e
|
152
|
+
AddCharset KOI8-r .koi8-r .koi8-ru
|
153
|
+
AddCharset KOI8-U .koi8-u
|
154
|
+
AddCharset KOI8-ru .koi8-uk .ua
|
155
|
+
AddCharset ISO-10646-UCS-2 .ucs2
|
156
|
+
AddCharset ISO-10646-UCS-4 .ucs4
|
157
|
+
AddCharset UTF-7 .utf7
|
158
|
+
AddCharset UTF-8 .utf8
|
159
|
+
AddCharset UTF-16 .utf16
|
160
|
+
AddCharset UTF-16BE .utf16be
|
161
|
+
AddCharset UTF-16LE .utf16le
|
162
|
+
AddCharset UTF-32 .utf32
|
163
|
+
AddCharset UTF-32BE .utf32be
|
164
|
+
AddCharset UTF-32LE .utf32le
|
165
|
+
AddCharset euc-cn .euc-cn
|
166
|
+
AddCharset euc-gb .euc-gb
|
167
|
+
AddCharset euc-jp .euc-jp
|
168
|
+
AddCharset euc-kr .euc-kr
|
169
|
+
#Not sure how euc-tw got in - IANA doesn't list it???
|
170
|
+
AddCharset EUC-TW .euc-tw
|
171
|
+
AddCharset gb2312 .gb2312 .gb
|
172
|
+
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
|
173
|
+
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
|
174
|
+
AddCharset shift_jis .shift_jis .sjis
|
175
|
+
|
176
|
+
#
|
177
|
+
# AddHandler allows you to map certain file extensions to "handlers":
|
178
|
+
# actions unrelated to filetype. These can be either built into the server
|
179
|
+
# or added with the Action directive (see below)
|
180
|
+
#
|
181
|
+
# To use CGI scripts outside of ScriptAliased directories:
|
182
|
+
# (You will also need to add "ExecCGI" to the "Options" directive.)
|
183
|
+
#
|
184
|
+
#AddHandler cgi-script .cgi
|
185
|
+
|
186
|
+
#
|
187
|
+
# For files that include their own HTTP headers:
|
188
|
+
#
|
189
|
+
#AddHandler send-as-is asis
|
190
|
+
|
191
|
+
#
|
192
|
+
# For server-parsed imagemap files:
|
193
|
+
#
|
194
|
+
#AddHandler imap-file map
|
195
|
+
|
196
|
+
#
|
197
|
+
# For type maps (negotiated resources):
|
198
|
+
# (This is enabled by default to allow the Apache "It Worked" page
|
199
|
+
# to be distributed in multiple languages.)
|
200
|
+
#
|
201
|
+
AddHandler type-map var
|
202
|
+
|
203
|
+
#
|
204
|
+
# Filters allow you to process content before it is sent to the client.
|
205
|
+
#
|
206
|
+
# To parse .shtml files for server-side includes (SSI):
|
207
|
+
# (You will also need to add "Includes" to the "Options" directive.)
|
208
|
+
#
|
209
|
+
AddType text/html .shtml
|
210
|
+
AddOutputFilter INCLUDES .shtml
|
211
|
+
</IfModule>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# this is a very minimal mime configuration -- in particular, all
|
2
|
+
# of the magical language/negotiation stuff that apache can do.
|
3
|
+
# has been stripped out, because we don't use apache for that.
|
4
|
+
|
5
|
+
<IfModule mod_mime.c>
|
6
|
+
|
7
|
+
# Lookup mime types in the system-wide mime.types file first
|
8
|
+
TypesConfig /etc/mime.types
|
9
|
+
|
10
|
+
# for firefox extensions:
|
11
|
+
# this is in more recent mime.types files (feisty) but not older ones
|
12
|
+
# (sarge). explicitly include it just to be safe.
|
13
|
+
AddType application/x-xpinstall .xpi
|
14
|
+
|
15
|
+
</IfModule>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
##
|
2
|
+
## Server-Pool Size Regulation (MPM specific)
|
3
|
+
##
|
4
|
+
|
5
|
+
# worker MPM
|
6
|
+
# StartServers: initial number of server processes to start
|
7
|
+
# MaxClients: maximum number of simultaneous client connections
|
8
|
+
# MinSpareThreads: minimum number of worker threads which are kept spare
|
9
|
+
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
10
|
+
# ThreadsPerChild: constant number of worker threads in each server process
|
11
|
+
# MaxRequestsPerChild: maximum number of requests a server process serves
|
12
|
+
<IfModule mpm_worker_module>
|
13
|
+
StartServers 5
|
14
|
+
MaxClients 300
|
15
|
+
MinSpareThreads 25
|
16
|
+
MaxSpareThreads 75
|
17
|
+
ThreadsPerChild 25
|
18
|
+
MaxRequestsPerChild 0
|
19
|
+
</IfModule>
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
##
|
2
|
+
## Server-Pool Size Regulation (MPM specific)
|
3
|
+
##
|
4
|
+
|
5
|
+
# worker MPM
|
6
|
+
# StartServers: initial number of server processes to start
|
7
|
+
# MaxClients: maximum number of simultaneous client connections
|
8
|
+
# MinSpareThreads: minimum number of worker threads which are kept spare
|
9
|
+
# MaxSpareThreads: maximum number of worker threads which are kept spare
|
10
|
+
# ThreadsPerChild: constant number of worker threads in each server process
|
11
|
+
# MaxRequestsPerChild: maximum number of requests a server process serves
|
12
|
+
<IfModule mpm_worker_module>
|
13
|
+
StartServers 2
|
14
|
+
MaxClients 500
|
15
|
+
MinSpareThreads 25
|
16
|
+
MaxSpareThreads 75
|
17
|
+
ThreadsPerChild 25
|
18
|
+
MaxRequestsPerChild 0
|
19
|
+
</IfModule>
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Listen <%= port %>
|
2
|
+
<VirtualHost *:<%= port %>>
|
3
|
+
ServerName <%= virtualhost_name %>
|
4
|
+
DocumentRoot <%= "/var/www/#{virtualhost_name}/public" %>
|
5
|
+
</VirtualHost>
|
6
|
+
|
7
|
+
<% if ssl_enabled == "true" %>
|
8
|
+
Listen 443
|
9
|
+
NameVirtualHost *:443
|
10
|
+
<VirtualHost *:443>
|
11
|
+
ServerName <%= virtualhost_name %>
|
12
|
+
DocumentRoot /var/www/<%= virtualhost_name -%>/public
|
13
|
+
ErrorLog /var/www/<%= virtualhost_name -%>/log/error_log
|
14
|
+
CustomLog /var/www/<%= virtualhost_name -%>/log/access_log common
|
15
|
+
SSLEngine on
|
16
|
+
SSLOptions +StrictRequire
|
17
|
+
SSLCertificateFile <%= ssl_cert_file %>
|
18
|
+
SSLCertificateKeyFile <%= ssl_private_key_file %>
|
19
|
+
</VirtualHost>
|
20
|
+
<% end %>
|