Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12944904
rest_cherrypy.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
rest_cherrypy.sls
View Options
# -------------------------------------------------------------
# Salt — Provision a salt primary server
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{%
from
"map.jinja"
import
dirs
,
packages_prefixes
with context
%}
# -------------------------------------------------------------
# Additional software
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
install_salt_api_extra_software
:
pkg.installed
:
-
pkgs
:
-
{{
packages_prefixes.python3
}}
cherrypy
# -------------------------------------------------------------
# Configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{{
dirs.etc
}}
/salt/master.d/api.conf
:
file.managed
:
-
source
:
salt://roles/salt-primary/api/files/api.conf
-
template
:
jinja
-
context
:
certificates_path
:
{{
dirs.etc
}}
/certificates/salt-api
# -------------------------------------------------------------
# Fix for contextvars issue
#
# This package is now a part of the Python library since 3.7
# Yes, this is hacky.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{%
set
pythonversion
=
"{}.{}"
.format
(
grains
[
"pythonversion"
][
0
],
grains
[
"pythonversion"
][
1
])
%}
drop_contextvars
:
file.comment
:
-
name
:
{{
grains
[
"saltpath"
]
}}
-
{{
grains
[
"saltversion"
]
}}
-py
{{
pythonversion
}}
.egg-info/requires.txt
-
regex
:
^contextvars
-
backup
:
False
-
ignore_missing
:
True
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 17:24 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3166926
Default Alt Text
rest_cherrypy.sls (1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment