Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12740652
acme_dns.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
acme_dns.sls
View Options
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2020-02-04
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
set
has_selinux
=
salt
[
'grains.get'
](
'selinux:enabled'
,
False
)
%}
{%
for
instance
,
container
in
pillar
[
'docker_containers'
][
'acme_dns'
]
.items
()
%}
# -------------------------------------------------------------
# Storage directory
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/
{{
instance
}}
:
file.directory
:
-
makedirs
:
True
/srv/
{{
instance
}}
/etc
:
file.directory
/srv/
{{
instance
}}
/lib
:
file.directory
{%
if
has_selinux
%}
selinux_context_acme_dns_data
:
selinux.fcontext_policy_present
:
-
name
:
/srv/
{{
instance
}}
-
sel_type
:
container_file_t
selinux_context_acme_dns_data_applied
:
selinux.fcontext_policy_applied
:
-
name
:
/srv/
{{
instance
}}
{%
endif
%}
# -------------------------------------------------------------
# Configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/
{{
instance
}}
/etc/config.cfg
:
file.managed
:
-
source
:
salt://roles/paas-docker/containers/files/acme/config.cfg
-
template
:
jinja
-
context
:
ip
:
{{
container
[
'ip'
]
}}
domain
:
{{
container
[
'host'
]
}}
nsadmin
:
{{
container
[
'nsadmin'
]
}}
# -------------------------------------------------------------
# Container
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
instance
}}
:
docker_container.running
:
-
detach
:
True
-
interactive
:
True
-
image
:
joohoi/acme-dns
-
binds
:
-
/srv/
{{
instance
}}
/etc:/etc/acme-dns:ro
-
/srv/
{{
instance
}}
/lib:/var/lib/acme-dns
-
ports
:
-
53
-
53/udp
-
80
-
port_bindings
:
-
53:53
-
53:53/udp
-
127.0.0.1:
{{
container
[
'app_port'
]
}}
:80
{%
endfor
%}
# -------------------------------------------------------------
# Troubleshoot
#
# Database uses sqlite3.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
acme_dns_host_software
:
pkg.installed
:
-
pkgs
:
-
sqlite
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 16, 13:03 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3156816
Default Alt Text
acme_dns.sls (2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment