Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F8321770
redis.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
redis.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-10-30
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
set
has_selinux
=
salt
[
'grains.get'
](
'selinux:enabled'
,
False
)
%}
{%
for
instance
,
container
in
pillar
[
'docker_containers'
][
'redis'
]
.items
()
%}
{%
set
image
=
salt
[
'paas_docker.get_image'
](
"library/redis"
,
container
)
%}
# -------------------------------------------------------------
# Data directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/redis/
{{
instance
}}
:
file.directory
:
-
user
:
999
-
group
:
999
-
makedirs
:
True
{%
if
has_selinux
%}
selinux_context_
{{
instance
}}
_redis_data
:
selinux.fcontext_policy_present
:
-
name
:
/srv/redis/
{{
instance
}}
-
sel_type
:
container_file_t
selinux_context_
{{
instance
}}
_redis_data_applied
:
selinux.fcontext_policy_applied
:
-
name
:
/srv/redis/
{{
instance
}}
{%
endif
%}
# -------------------------------------------------------------
# Container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
instance
}}
:
docker_container.running
:
-
detach
:
True
-
interactive
:
True
-
image
:
{{
image
}}
-
binds
:
/srv/redis/
{{
instance
}}
:/data
-
healthcheck
:
Test
:
redis-cli ping
Interval
:
30000000000
{%
if
'network'
in
container
%}
-
networks
:
-
{{
container
[
'network'
]
}}
{%
endif
%}
{%
endfor
%}
# -------------------------------------------------------------
# Host preparation
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vm.overcommit_memory
:
sysctl.present
:
-
value
:
1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 13, 16:51 (1 d, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2562199
Default Alt Text
redis.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment