Page MenuHomeDevCentral

init.sls
No OneTemporary

init.sls

# -------------------------------------------------------------
# Salt — Provision a salt primary server
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
# Salt configuration
#
# When reactor is available, symlink it.
#
# As Salt primary server will fail if a configuration file
# is not readable, it is necessary to remove the symlink when
# the reactor config does not exist.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if salt["slsutil.file_exists"]("reactor/reactor.conf") %}
{{ dirs.etc }}/salt/master.d/reactor.conf:
file.symlink:
- target: /opt/salt/nasqueron-operations/reactor/reactor.conf
{% else %}
{{ dirs.etc }}/salt/master.d/reactor.conf:
file.absent
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 19:27 (7 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260853
Default Alt Text
init.sls (1020 B)

Event Timeline