Page MenuHomeDevCentral

service.sls
No OneTemporary

service.sls

# -------------------------------------------------------------
# Netbox
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import services, dirs with context %}
# -------------------------------------------------------------
# Service wrapper
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/srv/netbox/service.sh:
file.managed:
- source: salt://roles/netbox/netbox/files/service.sh
- mode: 755
# -------------------------------------------------------------
# RC service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if services["manager"] == "rc" %}
{{ dirs.etc }}/rc.d/netbox:
file.managed:
- source: salt://roles/netbox/netbox/files/rc/netbox
- mode: 755
- template: jinja
- context:
app_port: {{ pillar["netbox"]["app_port"] }}
/etc/rc.conf.d/netbox:
file.managed:
- source: salt://roles/netbox/netbox/files/rc/netbox.rc
{% endif %}

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 18, 17:22 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3162003
Default Alt Text
service.sls (1 KB)

Event Timeline