Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12239320
hauk.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
hauk.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2021-07-30
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
set
has_selinux
=
salt
[
'grains.get'
](
'selinux:enabled'
,
False
)
%}
{%
for
instance
,
container
in
pillar
[
'docker_containers'
][
'hauk'
]
.items
()
%}
# -------------------------------------------------------------
# Storage directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/hauk/
{{
instance
}}
:
file.directory
:
-
user
:
9001
-
makedirs
:
True
/srv/hauk/
{{
instance
}}
/config.php
:
file.managed
:
-
source
:
salt:///roles/paas-docker/containers/files/hauk/config.php.jinja
-
template
:
jinja
-
mode
:
644
-
context
:
url
:
https://
{{
container
[
'host'
]
}}{{
container
[
'api_entry_point'
]
}}
/
{%
if
has_selinux
%}
selinux_context_
{{
instance
}}
_data
:
selinux.fcontext_policy_present
:
-
name
:
/srv/hauk/
{{
instance
}}
-
sel_type
:
container_file_t
selinux_context_
{{
instance
}}
_data_applied
:
selinux.fcontext_policy_applied
:
-
name
:
/srv/hauk/
{{
instance
}}
{%
endif
%}
# -------------------------------------------------------------
# Container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
instance
}}
:
docker_container.running
:
-
detach
:
True
-
interactive
:
True
-
image
:
bilde2910/hauk
-
binds
:
/srv/hauk/
{{
instance
}}
:/etc/hauk
-
ports
:
-
80
-
port_bindings
:
-
{{
container
[
'app_port'
]
}}
:80
# Prevent the container from using swap
# Privacy: data is so only stored on RAM, not on disk
-
mem_limit
:
256m
-
memswap_limit
:
256m
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 11, 21:20 (1 d, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3064054
Default Alt Text
hauk.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment