Page MenuHomeDevCentral

service.sls
No OneTemporary

service.sls

# -------------------------------------------------------------
# Salt — Provision Prometheus
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
# -------------------------------------------------------------
# Prometheus service
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{% if grains["os"] == "FreeBSD" %}
/usr/local/etc/rc.d/prometheus:
file.managed:
- source: salt://roles/prometheus/prometheus/files/rc/prometheus
- mode: 755
/etc/rc.conf.d/prometheus:
file.managed:
- source: salt://roles/prometheus/prometheus/files/rc/prometheus.conf
- template: jinja
- context:
ip: {{ pillar["nasqueron_services"]["prometheus"] }}
{% endif %}
prometheus_running:
service.running:
- name: prometheus

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 14, 19:36 (4 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3985540
Default Alt Text
service.sls (941 B)

Event Timeline