Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321828
init.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
init.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-11-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
if
grains
[
'os_family'
]
==
'RedHat'
%}
{%
if
salt
[
'file.file_exists'
](
"/etc/tuned"
)
%}
/etc/tuned/paas-docker
:
file.directory
/etc/tuned/paas-docker/tuned.conf
:
file.managed
:
-
source
:
salt://roles/paas-docker/kernel/files/tuned.conf
apply_paas_docker_tuned_configuration
:
cmd.run
:
-
name
:
tuned-adm profile paas-docker
-
onchanges
:
-
file
:
/etc/tuned/paas-docker/tuned.conf
{%
else
%}
# /sys/kernel allows to write settings and display the selected one in []
restrict_hugepages
:
cmd.run
:
-
name
:
echo madvise > /sys/kernel/mm/transparent_hugepage/enabled
-
unless
:
grep -q "\[madvise\]" /sys/kernel/mm/transparent_hugepage/enabled
{%
endif
%}
{%
endif
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 13, 16:52 (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2570077
Default Alt Text
init.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment