Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F4792385
zfs.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
zfs.sls
View Options
# -------------------------------------------------------------
# Salt — Database server — MySQL
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-10-27
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
if
salt
[
'node.has'
](
'zfs:pool'
)
%}
{%
set
tank
=
salt
[
'node.get'
](
"zfs:pool"
)
%}
{{
tank
}}
/mysql-root
:
zfs.filesystem_present
:
# This one is optimized for MyISAM
-
properties
:
mountpoint
:
/var/db/mysql
compression
:
lz4
recordsize
:
8K
{%
for
mysqldir
in
[
'innodb-data'
,
'innodb-logs'
]
%}
/var/db/mysql/mysql-
{{
mysqldir
}}
:
file.directory
:
-
user
:
mysql
-
group
:
mysql
-
dir_mode
:
711
{%
endfor
%}
{{
tank
}}
/mysql-innodb-data
:
zfs.filesystem_present
:
-
properties
:
mountpoint
:
/var/db/mysql/mysql-innodb-data
compression
:
lz4
recordsize
:
16K
primarycache
:
metadata
{{
tank
}}
/mysql-innodb-logs
:
zfs.filesystem_present
:
-
properties
:
mountpoint
:
/var/db/mysql/mysql-innodb-logs
compression
:
lz4
recordsize
:
128K
primarycache
:
metadata
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 28, 20:12 (4 m, 41 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2436051
Default Alt Text
zfs.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment