Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12298049
service.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
service.sls
View Options
# -------------------------------------------------------------
# Salt — Provision PHP websites — php-fpm service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
if
grains
[
'os'
]
==
'FreeBSD'
%}
{%
set
instances
=
" "
.join
(
pillar
[
'php_fpm_instances'
]
.keys
())
%}
/usr/local/etc/rc.d/php-fpm
:
file.managed
:
-
source
:
salt://roles/webserver-alkane/php/files/rc/php-fpm
-
mode
:
755
/etc/rc.conf.d/php_fpm
:
file.directory
/etc/rc.conf.d/php_fpm/instances
:
file.managed
:
-
source
:
salt://roles/webserver-alkane/php/files/rc/instances
-
template
:
jinja
-
context
:
instances
:
{{
instances
}}
{%
for
instance
,
config
in
pillar
[
'php_fpm_instances'
]
.items
()
%}
/etc/rc.conf.d/php_fpm/
{{
instance
}}
:
file.managed
:
-
source
:
salt://roles/webserver-alkane/php/files/rc/per_instance
-
template
:
jinja
-
context
:
instance
:
{{
instance
}}
command
:
{{
config
[
'command'
]
|
default
(
''
)
}}
{%
endfor
%}
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 22, 13:51 (15 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3092030
Default Alt Text
service.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment