Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F34566515
config.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
config.sls
View Options
# -------------------------------------------------------------
# Salt — Anubis (WAF/Reverse Proxy)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
with context
%}
# -------------------------------------------------------------
# Global configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
dirs.etc
}}
/anubis/private.key
:
file.managed
:
-
source
:
salt://roles/paas-docker/anubis/files/private.key
-
template
:
jinja
-
context
:
key
:
{{
salt
[
"credentials.get_password"
](
"anubis/"
+
grains
[
"id"
])
}}
-
user
:
anubis
-
group
:
anubis
-
mode
:
400
-
makedirs
:
True
{{
dirs.etc
}}
/anubis/policies.yaml
:
file.managed
:
-
source
:
salt://roles/paas-docker/anubis/files/policies.yaml
-
user
:
root
-
group
:
anubis
-
mode
:
644
-
makedirs
:
True
# -------------------------------------------------------------
# Per-instance configuration and service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
for
instance
,
config
in
salt
[
"pillar.get"
](
"anubis_instances"
,
{})
.items
()
%}
{{
dirs.etc
}}
/anubis/
{{
instance
}}
/instance.env
:
file.managed
:
-
source
:
salt://roles/paas-docker/anubis/files/instance.env
-
template
:
jinja
-
context
:
instance
:
{{
instance
}}
config
:
{{
config
}}
port
:
{{
pillar
[
"docker_containers"
][
config.target.service
][
config.target.container
][
"app_port"
]
}}
-
user
:
root
-
group
:
anubis
-
mode
:
644
-
makedirs
:
True
# e.g. systemctl status anubis@devcentral
/etc/systemd/system/anubis@
{{
instance
}}
.service
:
file.managed
:
-
source
:
salt://roles/paas-docker/anubis/files/anubis.service
-
template
:
jinja
-
context
:
instance
:
{{
instance
}}
anubis@
{{
instance
}}
:
service.running
:
-
enable
:
True
-
watch
:
-
file
:
{{
dirs.etc
}}
/anubis/
{{
instance
}}
/instance.env
-
file
:
{{
dirs.etc
}}
/anubis/policies.yaml
-
file
:
{{
dirs.etc
}}
/anubis/private.key
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 4, 03:06 (18 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3826583
Default Alt Text
config.sls (2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment