Page MenuHomeDevCentral

service.sls
No OneTemporary

service.sls

# -------------------------------------------------------------
# Salt — Provision OpenSearch
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# systemd
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% from "map.jinja" import services with context %}
# -------------------------------------------------------------
# Unit configuration
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if services['manager'] == 'systemd' %}
opensearch_unit:
file.managed:
- name: /etc/systemd/system/opensearch.service
- source: salt://roles/opensearch/opensearch/files/opensearch.service
- mode: 644
service.running:
- name: opensearch
- enable: true
- watch:
- file: opensearch_unit
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Tue, Jun 3, 01:43 (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569320
Default Alt Text
service.sls (1011 B)

Event Timeline