peony 0.0.2 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +31 -1
- data/lib/peony/default.rb +2 -0
- data/lib/peony/settings.rb +5 -3
- data/lib/peony/utils.rb +25 -11
- data/lib/peony/version.rb +1 -1
- data/recipes/db/mongo.rake +59 -0
- data/recipes/db/mysql.rake +55 -0
- data/recipes/db/pg.rake +7 -9
- data/recipes/db/redis.rake +36 -0
- data/recipes/elasticsearch.rake +28 -0
- data/recipes/httpd.rake +42 -0
- data/recipes/nginx/www.rake +5 -3
- data/recipes/nginx.rake +4 -6
- data/recipes/php.rake +30 -0
- data/spec/settings_spec.rb +5 -3
- data/templates/elasticsearch/config.yml.erb +364 -0
- data/templates/elasticsearch/logging.yml.erb +54 -0
- data/templates/httpd/extra/httpd-autoindex.conf.erb +93 -0
- data/templates/httpd/extra/httpd-dav.conf.erb +56 -0
- data/templates/httpd/extra/httpd-info.conf.erb +37 -0
- data/templates/httpd/extra/httpd-languages.conf.erb +141 -0
- data/templates/httpd/extra/httpd-mpm.conf.erb +110 -0
- data/templates/httpd/extra/httpd-multilang-errordoc.conf.erb +52 -0
- data/templates/httpd/httpd.conf.erb +467 -0
- data/templates/httpd/magic.erb +382 -0
- data/templates/httpd/mime.types.erb +1357 -0
- data/templates/mongo/master.conf.erb +19 -0
- data/templates/mongo/slave.conf.erb +21 -0
- data/templates/mysql/my.cnf.erb +34 -0
- data/templates/nginx/sites-enabled/php.conf.erb +12 -0
- data/templates/redis.conf.erb +624 -0
- metadata +24 -3
- data/lib/peony/template_binding.rb +0 -22
@@ -0,0 +1,19 @@
|
|
1
|
+
# Store data in <%= mongo_master_dir %> instead of the default /data/db
|
2
|
+
dbpath = <%= mongo_master_dir %>
|
3
|
+
|
4
|
+
# Only accept local connections
|
5
|
+
#bind_ip = 127.0.0.1
|
6
|
+
|
7
|
+
logpath = <%= mongo_log_dir %>/<%= mongo_master_name %>.log
|
8
|
+
|
9
|
+
pidfilepath = <%= mongo_run_dir %>/<%= mongo_master_name %>.pid
|
10
|
+
|
11
|
+
fork = <%= mongo_fork %>
|
12
|
+
|
13
|
+
jsonp = <%= mongo_jsonp %>
|
14
|
+
|
15
|
+
rest = <%= mongo_rest %>
|
16
|
+
|
17
|
+
port = <%= mongo_master_port %>
|
18
|
+
|
19
|
+
master = true
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Store data in <%= mongo_slave_dir %> instead of the default /data/db
|
2
|
+
dbpath = <%= mongo_slave_dir %>
|
3
|
+
|
4
|
+
# Only accept local connections
|
5
|
+
#bind_ip = 127.0.0.1
|
6
|
+
|
7
|
+
logpath = <%= mongo_log_dir %>/<%= mongo_slave_name %>.log
|
8
|
+
|
9
|
+
pidfilepath = <%= mongo_run_dir %>/<%= mongo_slave_name %>.pid
|
10
|
+
|
11
|
+
fork = <%= mongo_fork %>
|
12
|
+
|
13
|
+
jsonp = <%= mongo_jsonp %>
|
14
|
+
|
15
|
+
rest = <%= mongo_rest %>
|
16
|
+
|
17
|
+
slave = true
|
18
|
+
|
19
|
+
port = <%= mongo_slave_port %>
|
20
|
+
|
21
|
+
source = <%= mongo_slave_source %>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
[client]
|
2
|
+
character-set-server=<%= mysql_charset %>
|
3
|
+
port=<%= mysql_port %>
|
4
|
+
socket=<%= mysql_socket %>
|
5
|
+
|
6
|
+
|
7
|
+
[mysqld]
|
8
|
+
character-set-server=<%= mysql_charset %>
|
9
|
+
user=<%= user %>
|
10
|
+
port=<%= mysql_port %>
|
11
|
+
socket=<%= mysql_socket %>
|
12
|
+
basedir=<%= mysql_home %>
|
13
|
+
datadir=<%= mysql_dir %>
|
14
|
+
|
15
|
+
pid-file=<%= mysql_pid_file %>
|
16
|
+
log-error=<%= mysql_log_dir %>/error.log
|
17
|
+
|
18
|
+
slow_query_log=<%= mysql_slow_query_log %>
|
19
|
+
slow_query_log_file=<%= mysql_log_dir %>/slow-query.log
|
20
|
+
|
21
|
+
general_log=<%= mysql_general_log %>
|
22
|
+
general_log_file=<%= mysql_log_dir %>/general.log
|
23
|
+
|
24
|
+
|
25
|
+
relay-log-index=<%= mysql_log_dir %>/relay-index.log
|
26
|
+
relay-log-info-file=<%= mysql_log_dir %>/relay-info.log
|
27
|
+
relay-log=<%= mysql_log_dir %>/relay.log
|
28
|
+
|
29
|
+
explicit_defaults_for_timestamp=TRUE
|
30
|
+
|
31
|
+
|
32
|
+
[mysqldump]
|
33
|
+
quick
|
34
|
+
max_allowed_packet=24M
|
@@ -0,0 +1,12 @@
|
|
1
|
+
location / {
|
2
|
+
root <%= www_dir %>;
|
3
|
+
index index.php index.html index.htm;
|
4
|
+
}
|
5
|
+
|
6
|
+
location ~ \.php$ {
|
7
|
+
root <%= www_dir %>;
|
8
|
+
fastcgi_pass fastcgi_server;
|
9
|
+
fastcgi_index index.php;
|
10
|
+
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
11
|
+
include conf/fastcgi_params;
|
12
|
+
}
|