auser-poolparty 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. data/VERSION.yml +1 -1
  2. data/bin/cloud-verify +2 -0
  3. data/bin/install-poolparty +216 -0
  4. data/lib/poolparty/{aska/aska.rb → aska.rb} +0 -0
  5. data/lib/poolparty/core/string.rb +11 -0
  6. data/lib/poolparty/core/symbol.rb +10 -0
  7. data/lib/poolparty/dependency_resolver/chef_resolver.rb +16 -34
  8. data/lib/poolparty/dependency_resolver/dependency_resolver_cloud_extensions.rb +4 -4
  9. data/lib/poolparty/dependency_resolver/puppet_resolver.rb +15 -27
  10. data/lib/poolparty/lite.rb +1 -1
  11. data/lib/poolparty/modules/searchable_paths.rb +91 -0
  12. data/lib/poolparty/net/init.rb +0 -1
  13. data/lib/poolparty/net/remote_bases.rb +0 -1
  14. data/lib/poolparty/net/remoter_base.rb +5 -0
  15. data/lib/poolparty/net/remoter_bases/ec2/ec2.rb +3 -1
  16. data/lib/poolparty/plugins/apache2/apache.rb +340 -0
  17. data/lib/poolparty/plugins/rails_deploy.rb +76 -0
  18. data/lib/poolparty/poolparty/default.rb +1 -0
  19. data/lib/poolparty/poolparty/plugin.rb +4 -1
  20. data/lib/poolparty/poolparty/poolparty_base_class.rb +2 -4
  21. data/lib/poolparty/poolparty/resource.rb +4 -0
  22. data/lib/poolparty/poolparty/service.rb +8 -0
  23. data/lib/poolparty/resources/file.rb +3 -3
  24. data/lib/poolparty/templates/apache2/apache2.conf +14 -0
  25. data/lib/poolparty/templates/apache2/base.conf.erb +168 -0
  26. data/lib/poolparty/templates/apache2/browser_fixes.conf.erb +26 -0
  27. data/lib/poolparty/templates/apache2/debian.conf.erb +675 -0
  28. data/lib/poolparty/templates/apache2/default-site.conf.erb +41 -0
  29. data/lib/poolparty/templates/apache2/directory_indexes.conf.erb +101 -0
  30. data/lib/poolparty/templates/apache2/logging-syslog.conf.erb +42 -0
  31. data/lib/poolparty/templates/apache2/mime-extras.conf.erb +211 -0
  32. data/lib/poolparty/templates/apache2/mime-minimal.conf.erb +15 -0
  33. data/lib/poolparty/templates/apache2/mpm-worker.conf.erb +20 -0
  34. data/lib/poolparty/templates/apache2/mpm-worker.erb +20 -0
  35. data/lib/poolparty/templates/apache2/passenger.conf.erb +20 -0
  36. data/lib/poolparty/templates/apache2/php.ini.erb +1253 -0
  37. data/lib/poolparty/templates/apache2/server-status.erb +19 -0
  38. data/lib/poolparty/verification/verifiers/http_match.rb +43 -0
  39. data/lib/poolparty/verification/verifiers/http_status.rb +59 -0
  40. data/lib/poolparty/verification/verifiers/ping.rb +13 -1
  41. data/lib/poolparty.rb +1 -1
  42. data/lib/poolpartycl.rb +51 -0
  43. data/spec/poolparty/dependency_resolver/dependency_resolver_cloud_extensions_spec.rb +5 -11
  44. data/spec/poolparty/modules/searchable_paths_spec.rb +76 -0
  45. data/spec/poolparty/plugins/git_spec.rb +4 -3
  46. data/spec/poolparty/poolparty/cloud_spec.rb +3 -19
  47. data/spec/poolparty/resources/file_spec.rb +1 -0
  48. data/spec/poolparty/resources/service_spec.rb +1 -1
  49. data/test/poolparty/dependency_resolver/puppet_resolver_test.rb +5 -11
  50. data/test/poolparty/poolparty/poolparty_base_class_test.rb +1 -1
  51. metadata +27 -7
  52. data/lib/poolparty/plugins/apache2.rb +0 -53
  53. data/lib/poolparty/plugins/dynomite.rb +0 -14
  54. data/lib/poolparty/plugins/tokyo_tyrant.rb +0 -23
@@ -0,0 +1,168 @@
1
+ #
2
+ # Based upon the NCSA server configuration files originally by Rob McCool.
3
+ #
4
+ # This is the main Apache server configuration file. It contains the
5
+ # configuration directives that give the server its instructions.
6
+ # See <URL:http://httpd.apache.org/docs-2.1/> for detailed information about
7
+ # the directives.
8
+ #
9
+ # Do NOT simply read the instructions in here without understanding
10
+ # what they do. They're here only as hints or reminders. If you are unsure
11
+ # consult the online docs. You have been warned.
12
+ #
13
+ # The configuration directives are grouped into three basic sections:
14
+ # 1. Directives that control the operation of the Apache server process as a
15
+ # whole (the 'global environment').
16
+ # 2. Directives that define the parameters of the 'main' or 'default' server,
17
+ # which responds to requests that aren't handled by a virtual host.
18
+ # These directives also provide default values for the settings
19
+ # of all virtual hosts.
20
+ # 3. Settings for virtual hosts, which allow Web requests to be sent to
21
+ # different IP addresses or hostnames and have them handled by the
22
+ # same Apache server process.
23
+ #
24
+ # Configuration and logfile names: If the filenames you specify for many
25
+ # of the server's control files begin with "/" (or "drive:/" for Win32), the
26
+ # server will use that explicit path. If the filenames do *not* begin
27
+ # with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log"
28
+ # with ServerRoot set to "" will be interpreted by the
29
+ # server as "//var/log/apache2/foo.log".
30
+ #
31
+
32
+ ### Section 1: Global Environment
33
+ #
34
+ # The directives in this section affect the overall operation of Apache,
35
+ # such as the number of concurrent requests it can handle or where it
36
+ # can find its configuration files.
37
+ #
38
+
39
+ #
40
+ # ServerRoot: The top of the directory tree under which the server's
41
+ # configuration, error, and log files are kept.
42
+ #
43
+ # NOTE! If you intend to place this on an NFS (or otherwise network)
44
+ # mounted filesystem then please read the LockFile documentation (available
45
+ # at <URL:http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile>);
46
+ # you will save yourself a lot of trouble.
47
+ #
48
+ # Do NOT add a slash at the end of the directory path.
49
+ #
50
+ ServerRoot "/etc/apache2"
51
+
52
+ #
53
+ # The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
54
+ #
55
+ #<IfModule !mpm_winnt.c>
56
+ #<IfModule !mpm_netware.c>
57
+ LockFile /var/lock/apache2/accept.lock
58
+ #</IfModule>
59
+ #</IfModule>
60
+
61
+ #
62
+ # PidFile: The file in which the server should record its process
63
+ # identification number when it starts.
64
+ #
65
+ PidFile /var/run/apache2.pid
66
+
67
+ #
68
+ # Timeout: The number of seconds before receives and sends time out.
69
+ #
70
+ Timeout 300
71
+
72
+ #
73
+ # KeepAlive: Whether or not to allow persistent connections (more than
74
+ # one request per connection). Set to "Off" to deactivate.
75
+ #
76
+ KeepAlive On
77
+
78
+ #
79
+ # MaxKeepAliveRequests: The maximum number of requests to allow
80
+ # during a persistent connection. Set to 0 to allow an unlimited amount.
81
+ # We recommend you leave this number high, for maximum performance.
82
+ #
83
+ MaxKeepAliveRequests 100
84
+
85
+ #
86
+ # KeepAliveTimeout: Number of seconds to wait for the next request from the
87
+ # same client on the same connection.
88
+ #
89
+ KeepAliveTimeout 15
90
+
91
+
92
+ User www-data
93
+ Group www-data
94
+
95
+ #
96
+ # AccessFileName: The name of the file to look for in each directory
97
+ # for additional configuration directives. See also the AllowOverride
98
+ # directive.
99
+ #
100
+
101
+ AccessFileName .htaccess
102
+
103
+ #
104
+ # The following lines prevent .htaccess and .htpasswd files from being
105
+ # viewed by Web clients.
106
+ #
107
+ <Files ~ "^\.ht">
108
+ Order allow,deny
109
+ Deny from all
110
+ </Files>
111
+
112
+ TypesConfig /etc/mime.types
113
+
114
+ #
115
+ # DefaultType is the default MIME type the server will use for a document
116
+ # if it cannot otherwise determine one, such as from filename extensions.
117
+ # If your server contains mostly text or HTML documents, "text/plain" is
118
+ # a good value. If most of your content is binary, such as applications
119
+ # or images, you may want to use "application/octet-stream" instead to
120
+ # keep browsers from trying to display binary files as though they are
121
+ # text.
122
+ #
123
+ DefaultType text/plain
124
+
125
+
126
+ #
127
+ # HostnameLookups: Log the names of clients or just their IP addresses
128
+ # e.g., www.apache.org (on) or 204.62.129.132 (off).
129
+ # The default is off because it'd be overall better for the net if people
130
+ # had to knowingly turn this feature on, since enabling it means that
131
+ # each client request will result in AT LEAST one lookup request to the
132
+ # nameserver.
133
+ #
134
+ HostnameLookups Off
135
+
136
+ #
137
+ # ServerTokens
138
+ # This directive configures what you return as the Server HTTP response
139
+ # Header. The default is 'Full' which sends information about the OS-Type
140
+ # and compiled in modules.
141
+ # Set to one of: Full | OS | Minor | Minimal | Major | Prod
142
+ # where Full conveys the most information, and Prod the least.
143
+ #
144
+ ServerTokens Prod
145
+
146
+ #
147
+ # Optionally add a line containing the server version and virtual host
148
+ # name to server-generated pages (internal error documents, FTP directory
149
+ # listings, mod_status and mod_info output etc., but not CGI generated
150
+ # documents or custom error documents).
151
+ # Set to "EMail" to also include a mailto: link to the ServerAdmin.
152
+ # Set to one of: On | Off | EMail
153
+ #
154
+ ServerSignature Off
155
+
156
+ DirectoryIndex index.html
157
+
158
+ ErrorLog /var/log/apache2/error.log
159
+ LogLevel warn
160
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
161
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
162
+ LogFormat "%{Referer}i -> %U" referer
163
+ LogFormat "%{User-agent}i" agent
164
+
165
+ DocumentRoot /var/www
166
+
167
+ Listen <%= @node[:poolparty][:port] %>
168
+ NameVirtualHost *:<%= @node[:poolparty][:port] %>
@@ -0,0 +1,26 @@
1
+ <IfModule mod_setenvif.c>
2
+ #
3
+ # The following directives modify normal HTTP response behavior to
4
+ # handle known problems with browser implementations.
5
+ #
6
+ BrowserMatch "Mozilla/2" nokeepalive
7
+ BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
8
+ BrowserMatch "RealPlayer 4\.0" force-response-1.0
9
+ BrowserMatch "Java/1\.0" force-response-1.0
10
+ BrowserMatch "JDK/1\.0" force-response-1.0
11
+
12
+ #
13
+ # The following directive disables redirects on non-GET requests for
14
+ # a directory that does not include the trailing slash. This fixes a
15
+ # problem with Microsoft WebFolders which does not appropriately handle
16
+ # redirects for folders with DAV methods.
17
+ # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
18
+ #
19
+ BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
20
+ BrowserMatch "MS FrontPage" redirect-carefully
21
+ BrowserMatch "^WebDrive" redirect-carefully
22
+ BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
23
+ BrowserMatch "^gnome-vfs/1.0" redirect-carefully
24
+ BrowserMatch "^XML Spy" redirect-carefully
25
+ BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
26
+ </IfModule>