salted-rails 0.0.2

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 (96) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +48 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +20 -0
  5. data/README.md +79 -0
  6. data/Rakefile +1 -0
  7. data/lib/salted_rails.rb +5 -0
  8. data/lib/salted_rails/base.rb +5 -0
  9. data/lib/salted_rails/capistrano.rb +6 -0
  10. data/lib/salted_rails/vagrant_helper.rb +155 -0
  11. data/lib/salted_rails/version.rb +3 -0
  12. data/pillar/capistrano.sls +3 -0
  13. data/pillar/capistrano/top.sls +5 -0
  14. data/pillar/common.sls +15 -0
  15. data/pillar/vagrant.sls +3 -0
  16. data/pillar/vagrant/top.sls +5 -0
  17. data/salt/apt/partner-sources.sls +13 -0
  18. data/salt/apt/unwanted.sls +5 -0
  19. data/salt/capistrano.sls +0 -0
  20. data/salt/capistrano/minion +14 -0
  21. data/salt/capistrano/minion.sls +6 -0
  22. data/salt/capistrano/top.sls +8 -0
  23. data/salt/common.sls +19 -0
  24. data/salt/crons/init.sls +23 -0
  25. data/salt/databases/mysql/client-encoding-and-collation.cnf +2 -0
  26. data/salt/databases/mysql/client.sls +17 -0
  27. data/salt/databases/mysql/common.sls +22 -0
  28. data/salt/databases/mysql/config.sls +6 -0
  29. data/salt/databases/mysql/custom_config.sls +14 -0
  30. data/salt/databases/mysql/default-table-engine.cnf +2 -0
  31. data/salt/databases/mysql/group.sls +4 -0
  32. data/salt/databases/mysql/init.sls +8 -0
  33. data/salt/databases/mysql/server-encoding-and-collation.cnf +4 -0
  34. data/salt/databases/mysql/server.sls +59 -0
  35. data/salt/databases/phpmyadmin/etc/nginx/sites-available/.gitignore +3 -0
  36. data/salt/databases/phpmyadmin/etc/nginx/sites-available/phpmyadmin.conf +24 -0
  37. data/salt/databases/phpmyadmin/init.sls +27 -0
  38. data/salt/develop/init.sls +3 -0
  39. data/salt/echo_pillar.sls +9 -0
  40. data/salt/editors/vim/init.sls +12 -0
  41. data/salt/editors/vim/vimrc +23 -0
  42. data/salt/lang/php/composer.sls +9 -0
  43. data/salt/lang/php/etc/php5/fpm/php.fpm.ini +1818 -0
  44. data/salt/lang/php/etc/php5/fpm/pool.d/www.conf +393 -0
  45. data/salt/lang/php/init.sls +38 -0
  46. data/salt/lang/php/nginx.sls +9 -0
  47. data/salt/lang/python/python-libs.sls +28 -0
  48. data/salt/lang/ruby.sls +60 -0
  49. data/salt/lang/ruby.sls.bak +106 -0
  50. data/salt/lang/system_ruby.sls +43 -0
  51. data/salt/munin/files/nginx/plugin-conf.d/nginx +2 -0
  52. data/salt/munin/files/nginx/plugins/nginx_combined_localhost +160 -0
  53. data/salt/munin/files/nginx/plugins/nginx_request +114 -0
  54. data/salt/munin/files/nginx/plugins/nginx_status +126 -0
  55. data/salt/munin/files/node/checkPermissions.sh +10 -0
  56. data/salt/munin/files/node/munin-node.conf +54 -0
  57. data/salt/munin/files/php5-fpm/plugins/phpfpm_average +39 -0
  58. data/salt/munin/files/php5-fpm/plugins/phpfpm_connections +71 -0
  59. data/salt/munin/files/php5-fpm/plugins/phpfpm_memory +24 -0
  60. data/salt/munin/files/php5-fpm/plugins/phpfpm_processes +38 -0
  61. data/salt/munin/files/php5-fpm/plugins/phpfpm_status +83 -0
  62. data/salt/munin/files/server/munin.conf +107 -0
  63. data/salt/munin/nginx.sls +13 -0
  64. data/salt/munin/node.sls +34 -0
  65. data/salt/munin/php5-fpm.sls +13 -0
  66. data/salt/munin/server.sls +7 -0
  67. data/salt/railsapp/database.sls +25 -0
  68. data/salt/railsapp/files/Gemfile +57 -0
  69. data/salt/railsapp/files/Gemfile.lock +133 -0
  70. data/salt/railsapp/gems.sls +18 -0
  71. data/salt/railsapp/init.sls +3 -0
  72. data/salt/run-standalone +3 -0
  73. data/salt/salt/minion/config.template +259 -0
  74. data/salt/salt/minion/debconf.sls +3 -0
  75. data/salt/salt/minion/init.sls +49 -0
  76. data/salt/salt/minion/lsb.sls +8 -0
  77. data/salt/salt/minion/mysql.conf +1 -0
  78. data/salt/salt/minion/mysql.sls +20 -0
  79. data/salt/server/monit.sls +31 -0
  80. data/salt/server/sudo/init.sls +16 -0
  81. data/salt/server/sudo/sudoers +90 -0
  82. data/salt/sysutils/file.sls +8 -0
  83. data/salt/sysutils/init.sls +5 -0
  84. data/salt/sysutils/net.sls +9 -0
  85. data/salt/sysutils/status.sls +11 -0
  86. data/salt/sysutils/tmux.sls +3 -0
  87. data/salt/vagrant.sls +0 -0
  88. data/salt/vagrant/minion +14 -0
  89. data/salt/vagrant/minion.sls +6 -0
  90. data/salt/vagrant/top.sls +8 -0
  91. data/salt/www/chromium.sls +6 -0
  92. data/salt/www/nginx/etc/nginx/nginx.conf +53 -0
  93. data/salt/www/nginx/init.sls +20 -0
  94. data/salt/www/users.sls +12 -0
  95. data/salted-rails.gemspec +23 -0
  96. metadata +163 -0
@@ -0,0 +1,393 @@
1
+ ; Start a new pool named 'www'.
2
+ ; the variable $pool can we used in any directive and will be replaced by the
3
+ ; pool name ('www' here)
4
+ [www]
5
+
6
+ ; Per pool prefix
7
+ ; It only applies on the following directives:
8
+ ; - 'slowlog'
9
+ ; - 'listen' (unixsocket)
10
+ ; - 'chroot'
11
+ ; - 'chdir'
12
+ ; - 'php_values'
13
+ ; - 'php_admin_values'
14
+ ; When not set, the global prefix (or /usr) applies instead.
15
+ ; Note: This directive can also be relative to the global prefix.
16
+ ; Default Value: none
17
+ ;prefix = /path/to/pools/$pool
18
+
19
+ ; Unix user/group of processes
20
+ ; Note: The user is mandatory. If the group is not set, the default user's group
21
+ ; will be used.
22
+ user = www-data
23
+ group = www-data
24
+
25
+ ; The address on which to accept FastCGI requests.
26
+ ; Valid syntaxes are:
27
+ ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
28
+ ; a specific port;
29
+ ; 'port' - to listen on a TCP socket to all addresses on a
30
+ ; specific port;
31
+ ; '/path/to/unix/socket' - to listen on a unix socket.
32
+ ; Note: This value is mandatory.
33
+ ; listen = /var/run/php5-fpm.sock
34
+ listen = 127.0.0.1:9000
35
+
36
+ ; Set listen(2) backlog.
37
+ ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
38
+ ;listen.backlog = 128
39
+
40
+ ; Set permissions for unix socket, if one is used. In Linux, read/write
41
+ ; permissions must be set in order to allow connections from a web server. Many
42
+ ; BSD-derived systems allow connections regardless of permissions.
43
+ ; Default Values: user and group are set as the running user
44
+ ; mode is set to 0666
45
+ ;listen.owner = www-data
46
+ ;listen.group = www-data
47
+ ;listen.mode = 0666
48
+
49
+ ; List of ipv4 addresses of FastCGI clients which are allowed to connect.
50
+ ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
51
+ ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
52
+ ; must be separated by a comma. If this value is left blank, connections will be
53
+ ; accepted from any ip address.
54
+ ; Default Value: any
55
+ ;listen.allowed_clients = 127.0.0.1
56
+
57
+ ; Specify the nice(2) priority to apply to the pool processes (only if set)
58
+ ; The value can vary from -19 (highest priority) to 20 (lower priority)
59
+ ; Note: - It will only work if the FPM master process is launched as root
60
+ ; - The pool processes will inherit the master process priority
61
+ ; unless it specified otherwise
62
+ ; Default Value: no set
63
+ ; priority = -19
64
+
65
+ ; Choose how the process manager will control the number of child processes.
66
+ ; Possible Values:
67
+ ; static - a fixed number (pm.max_children) of child processes;
68
+ ; dynamic - the number of child processes are set dynamically based on the
69
+ ; following directives. With this process management, there will be
70
+ ; always at least 1 children.
71
+ ; pm.max_children - the maximum number of children that can
72
+ ; be alive at the same time.
73
+ ; pm.start_servers - the number of children created on startup.
74
+ ; pm.min_spare_servers - the minimum number of children in 'idle'
75
+ ; state (waiting to process). If the number
76
+ ; of 'idle' processes is less than this
77
+ ; number then some children will be created.
78
+ ; pm.max_spare_servers - the maximum number of children in 'idle'
79
+ ; state (waiting to process). If the number
80
+ ; of 'idle' processes is greater than this
81
+ ; number then some children will be killed.
82
+ ; ondemand - no children are created at startup. Children will be forked when
83
+ ; new requests will connect. The following parameter are used:
84
+ ; pm.max_children - the maximum number of children that
85
+ ; can be alive at the same time.
86
+ ; pm.process_idle_timeout - The number of seconds after which
87
+ ; an idle process will be killed.
88
+ ; Note: This value is mandatory.
89
+ pm = dynamic
90
+
91
+ ; The number of child processes to be created when pm is set to 'static' and the
92
+ ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
93
+ ; This value sets the limit on the number of simultaneous requests that will be
94
+ ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
95
+ ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
96
+ ; CGI. The below defaults are based on a server without much resources. Don't
97
+ ; forget to tweak pm.* to fit your needs.
98
+ ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
99
+ ; Note: This value is mandatory.
100
+ pm.max_children = 5
101
+
102
+ ; The number of child processes created on startup.
103
+ ; Note: Used only when pm is set to 'dynamic'
104
+ ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
105
+ pm.start_servers = 2
106
+
107
+ ; The desired minimum number of idle server processes.
108
+ ; Note: Used only when pm is set to 'dynamic'
109
+ ; Note: Mandatory when pm is set to 'dynamic'
110
+ pm.min_spare_servers = 1
111
+
112
+ ; The desired maximum number of idle server processes.
113
+ ; Note: Used only when pm is set to 'dynamic'
114
+ ; Note: Mandatory when pm is set to 'dynamic'
115
+ pm.max_spare_servers = 3
116
+
117
+ ; The number of seconds after which an idle process will be killed.
118
+ ; Note: Used only when pm is set to 'ondemand'
119
+ ; Default Value: 10s
120
+ ;pm.process_idle_timeout = 10s;
121
+
122
+ ; The number of requests each child process should execute before respawning.
123
+ ; This can be useful to work around memory leaks in 3rd party libraries. For
124
+ ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
125
+ ; Default Value: 0
126
+ ;pm.max_requests = 500
127
+
128
+ ; The URI to view the FPM status page. If this value is not set, no URI will be
129
+ ; recognized as a status page. It shows the following informations:
130
+ ; pool - the name of the pool;
131
+ ; process manager - static, dynamic or ondemand;
132
+ ; start time - the date and time FPM has started;
133
+ ; start since - number of seconds since FPM has started;
134
+ ; accepted conn - the number of request accepted by the pool;
135
+ ; listen queue - the number of request in the queue of pending
136
+ ; connections (see backlog in listen(2));
137
+ ; max listen queue - the maximum number of requests in the queue
138
+ ; of pending connections since FPM has started;
139
+ ; listen queue len - the size of the socket queue of pending connections;
140
+ ; idle processes - the number of idle processes;
141
+ ; active processes - the number of active processes;
142
+ ; total processes - the number of idle + active processes;
143
+ ; max active processes - the maximum number of active processes since FPM
144
+ ; has started;
145
+ ; max children reached - number of times, the process limit has been reached,
146
+ ; when pm tries to start more children (works only for
147
+ ; pm 'dynamic' and 'ondemand');
148
+ ; Value are updated in real time.
149
+ ; Example output:
150
+ ; pool: www
151
+ ; process manager: static
152
+ ; start time: 01/Jul/2011:17:53:49 +0200
153
+ ; start since: 62636
154
+ ; accepted conn: 190460
155
+ ; listen queue: 0
156
+ ; max listen queue: 1
157
+ ; listen queue len: 42
158
+ ; idle processes: 4
159
+ ; active processes: 11
160
+ ; total processes: 15
161
+ ; max active processes: 12
162
+ ; max children reached: 0
163
+ ;
164
+ ; By default the status page output is formatted as text/plain. Passing either
165
+ ; 'html', 'xml' or 'json' in the query string will return the corresponding
166
+ ; output syntax. Example:
167
+ ; http://www.foo.bar/status
168
+ ; http://www.foo.bar/status?json
169
+ ; http://www.foo.bar/status?html
170
+ ; http://www.foo.bar/status?xml
171
+ ;
172
+ ; By default the status page only outputs short status. Passing 'full' in the
173
+ ; query string will also return status for each pool process.
174
+ ; Example:
175
+ ; http://www.foo.bar/status?full
176
+ ; http://www.foo.bar/status?json&full
177
+ ; http://www.foo.bar/status?html&full
178
+ ; http://www.foo.bar/status?xml&full
179
+ ; The Full status returns for each process:
180
+ ; pid - the PID of the process;
181
+ ; state - the state of the process (Idle, Running, ...);
182
+ ; start time - the date and time the process has started;
183
+ ; start since - the number of seconds since the process has started;
184
+ ; requests - the number of requests the process has served;
185
+ ; request duration - the duration in µs of the requests;
186
+ ; request method - the request method (GET, POST, ...);
187
+ ; request URI - the request URI with the query string;
188
+ ; content length - the content length of the request (only with POST);
189
+ ; user - the user (PHP_AUTH_USER) (or '-' if not set);
190
+ ; script - the main script called (or '-' if not set);
191
+ ; last request cpu - the %cpu the last request consumed
192
+ ; it's always 0 if the process is not in Idle state
193
+ ; because CPU calculation is done when the request
194
+ ; processing has terminated;
195
+ ; last request memory - the max amount of memory the last request consumed
196
+ ; it's always 0 if the process is not in Idle state
197
+ ; because memory calculation is done when the request
198
+ ; processing has terminated;
199
+ ; If the process is in Idle state, then informations are related to the
200
+ ; last request the process has served. Otherwise informations are related to
201
+ ; the current request being served.
202
+ ; Example output:
203
+ ; ************************
204
+ ; pid: 31330
205
+ ; state: Running
206
+ ; start time: 01/Jul/2011:17:53:49 +0200
207
+ ; start since: 63087
208
+ ; requests: 12808
209
+ ; request duration: 1250261
210
+ ; request method: GET
211
+ ; request URI: /test_mem.php?N=10000
212
+ ; content length: 0
213
+ ; user: -
214
+ ; script: /home/fat/web/docs/php/test_mem.php
215
+ ; last request cpu: 0.00
216
+ ; last request memory: 0
217
+ ;
218
+ ; Note: There is a real-time FPM status monitoring sample web page available
219
+ ; It's available in: ${prefix}/share/fpm/status.html
220
+ ;
221
+ ; Note: The value must start with a leading slash (/). The value can be
222
+ ; anything, but it may not be a good idea to use the .php extension or it
223
+ ; may conflict with a real PHP file.
224
+ ; Default Value: not set
225
+ ;pm.status_path = /status
226
+
227
+ ; The ping URI to call the monitoring page of FPM. If this value is not set, no
228
+ ; URI will be recognized as a ping page. This could be used to test from outside
229
+ ; that FPM is alive and responding, or to
230
+ ; - create a graph of FPM availability (rrd or such);
231
+ ; - remove a server from a group if it is not responding (load balancing);
232
+ ; - trigger alerts for the operating team (24/7).
233
+ ; Note: The value must start with a leading slash (/). The value can be
234
+ ; anything, but it may not be a good idea to use the .php extension or it
235
+ ; may conflict with a real PHP file.
236
+ ; Default Value: not set
237
+ ;ping.path = /ping
238
+
239
+ ; This directive may be used to customize the response of a ping request. The
240
+ ; response is formatted as text/plain with a 200 response code.
241
+ ; Default Value: pong
242
+ ;ping.response = pong
243
+
244
+ ; The access log file
245
+ ; Default: not set
246
+ ;access.log = log/$pool.access.log
247
+
248
+ ; The access log format.
249
+ ; The following syntax is allowed
250
+ ; %%: the '%' character
251
+ ; %C: %CPU used by the request
252
+ ; it can accept the following format:
253
+ ; - %{user}C for user CPU only
254
+ ; - %{system}C for system CPU only
255
+ ; - %{total}C for user + system CPU (default)
256
+ ; %d: time taken to serve the request
257
+ ; it can accept the following format:
258
+ ; - %{seconds}d (default)
259
+ ; - %{miliseconds}d
260
+ ; - %{mili}d
261
+ ; - %{microseconds}d
262
+ ; - %{micro}d
263
+ ; %e: an environment variable (same as $_ENV or $_SERVER)
264
+ ; it must be associated with embraces to specify the name of the env
265
+ ; variable. Some exemples:
266
+ ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
267
+ ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
268
+ ; %f: script filename
269
+ ; %l: content-length of the request (for POST request only)
270
+ ; %m: request method
271
+ ; %M: peak of memory allocated by PHP
272
+ ; it can accept the following format:
273
+ ; - %{bytes}M (default)
274
+ ; - %{kilobytes}M
275
+ ; - %{kilo}M
276
+ ; - %{megabytes}M
277
+ ; - %{mega}M
278
+ ; %n: pool name
279
+ ; %o: ouput header
280
+ ; it must be associated with embraces to specify the name of the header:
281
+ ; - %{Content-Type}o
282
+ ; - %{X-Powered-By}o
283
+ ; - %{Transfert-Encoding}o
284
+ ; - ....
285
+ ; %p: PID of the child that serviced the request
286
+ ; %P: PID of the parent of the child that serviced the request
287
+ ; %q: the query string
288
+ ; %Q: the '?' character if query string exists
289
+ ; %r: the request URI (without the query string, see %q and %Q)
290
+ ; %R: remote IP address
291
+ ; %s: status (response code)
292
+ ; %t: server time the request was received
293
+ ; it can accept a strftime(3) format:
294
+ ; %d/%b/%Y:%H:%M:%S %z (default)
295
+ ; %T: time the log has been written (the request has finished)
296
+ ; it can accept a strftime(3) format:
297
+ ; %d/%b/%Y:%H:%M:%S %z (default)
298
+ ; %u: remote user
299
+ ;
300
+ ; Default: "%R - %u %t \"%m %r\" %s"
301
+ ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
302
+
303
+ ; The log file for slow requests
304
+ ; Default Value: not set
305
+ ; Note: slowlog is mandatory if request_slowlog_timeout is set
306
+ ;slowlog = log/$pool.log.slow
307
+
308
+ ; The timeout for serving a single request after which a PHP backtrace will be
309
+ ; dumped to the 'slowlog' file. A value of '0s' means 'off'.
310
+ ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
311
+ ; Default Value: 0
312
+ ;request_slowlog_timeout = 0
313
+
314
+ ; The timeout for serving a single request after which the worker process will
315
+ ; be killed. This option should be used when the 'max_execution_time' ini option
316
+ ; does not stop script execution for some reason. A value of '0' means 'off'.
317
+ ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
318
+ ; Default Value: 0
319
+ ;request_terminate_timeout = 0
320
+
321
+ ; Set open file descriptor rlimit.
322
+ ; Default Value: system defined value
323
+ ;rlimit_files = 1024
324
+
325
+ ; Set max core size rlimit.
326
+ ; Possible Values: 'unlimited' or an integer greater or equal to 0
327
+ ; Default Value: system defined value
328
+ ;rlimit_core = 0
329
+
330
+ ; Chroot to this directory at the start. This value must be defined as an
331
+ ; absolute path. When this value is not set, chroot is not used.
332
+ ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one
333
+ ; of its subdirectories. If the pool prefix is not set, the global prefix
334
+ ; will be used instead.
335
+ ; Note: chrooting is a great security feature and should be used whenever
336
+ ; possible. However, all PHP paths will be relative to the chroot
337
+ ; (error_log, sessions.save_path, ...).
338
+ ; Default Value: not set
339
+ ;chroot =
340
+
341
+ ; Chdir to this directory at the start.
342
+ ; Note: relative path can be used.
343
+ ; Default Value: current directory or / when chroot
344
+ chdir = /
345
+
346
+ ; Redirect worker stdout and stderr into main error log. If not set, stdout and
347
+ ; stderr will be redirected to /dev/null according to FastCGI specs.
348
+ ; Note: on highloaded environement, this can cause some delay in the page
349
+ ; process time (several ms).
350
+ ; Default Value: no
351
+ ;catch_workers_output = yes
352
+
353
+ ; Limits the extensions of the main script FPM will allow to parse. This can
354
+ ; prevent configuration mistakes on the web server side. You should only limit
355
+ ; FPM to .php extensions to prevent malicious users to use other extensions to
356
+ ; exectute php code.
357
+ ; Note: set an empty value to allow all extensions.
358
+ ; Default Value: .php
359
+ ;security.limit_extensions = .php .php3 .php4 .php5
360
+
361
+ ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
362
+ ; the current environment.
363
+ ; Default Value: clean env
364
+ ;env[HOSTNAME] = $HOSTNAME
365
+ ;env[PATH] = /usr/local/bin:/usr/bin:/bin
366
+ ;env[TMP] = /tmp
367
+ ;env[TMPDIR] = /tmp
368
+ ;env[TEMP] = /tmp
369
+
370
+ ; Additional php.ini defines, specific to this pool of workers. These settings
371
+ ; overwrite the values previously defined in the php.ini. The directives are the
372
+ ; same as the PHP SAPI:
373
+ ; php_value/php_flag - you can set classic ini defines which can
374
+ ; be overwritten from PHP call 'ini_set'.
375
+ ; php_admin_value/php_admin_flag - these directives won't be overwritten by
376
+ ; PHP call 'ini_set'
377
+ ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.
378
+
379
+ ; Defining 'extension' will load the corresponding shared extension from
380
+ ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
381
+ ; overwrite previously defined php.ini values, but will append the new value
382
+ ; instead.
383
+
384
+ ; Note: path INI options can be relative and will be expanded with the prefix
385
+ ; (pool, global or /usr)
386
+
387
+ ; Default Value: nothing is defined by default except the values in php.ini and
388
+ ; specified at startup with the -d argument
389
+ ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
390
+ ;php_flag[display_errors] = off
391
+ ;php_admin_value[error_log] = /var/log/fpm-php.www.log
392
+ ;php_admin_flag[log_errors] = on
393
+ ;php_admin_value[memory_limit] = 32M
@@ -0,0 +1,38 @@
1
+ php:
2
+ pkg:
3
+ - latest
4
+ - names:
5
+ - php5-fpm
6
+ - php5-cli
7
+ - php5-mysql
8
+ - php5-gd
9
+ - php5-curl
10
+ service:
11
+ - name: php5-fpm
12
+ - running
13
+ - enable: True
14
+ - reload: True
15
+ - watch:
16
+ - file: {{ pillar['etc_dir'] }}php5/fpm/*
17
+ - file: {{ pillar['etc_dir'] }}php5/fpm/pool.d/*
18
+
19
+ /etc/php5/fpm/php.ini:
20
+ file:
21
+ - managed
22
+ - source: salt://lang/php/etc/php5/fpm/php.fpm.ini
23
+ - user: root
24
+ - group: root
25
+ - mode: 644
26
+ - require:
27
+ - pkg: php
28
+
29
+
30
+ /etc/php5/fpm/pool.d/www.conf:
31
+ file:
32
+ - managed
33
+ - source: salt://lang/php/etc/php5/fpm/pool.d/www.conf
34
+ - user: root
35
+ - group: root
36
+ - mode: 644
37
+ - require:
38
+ - pkg: php
@@ -0,0 +1,9 @@
1
+ include:
2
+ - lang.php
3
+ - www.nginx
4
+
5
+ extend:
6
+ php:
7
+ pkg:
8
+ - require:
9
+ - service: nginx
@@ -0,0 +1,28 @@
1
+ python-software-properties:
2
+ pkg.installed
3
+
4
+ #python-virtualenv:
5
+ # pkg.installed:
6
+ # - name: python-virtualenv
7
+ # require:
8
+ # - pkg: python2.7
9
+
10
+ python2:
11
+ pkg.installed:
12
+ - names:
13
+ - python2.7
14
+ - python-dev
15
+ - python-pip
16
+
17
+
18
+ virtualenv:
19
+ pip:
20
+ - installed
21
+ require:
22
+ - pkg.installed: python2
23
+
24
+ virtualenvwrapper:
25
+ pip:
26
+ - installed
27
+ - require:
28
+ - pip.installed: virtualenv