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
Fri, Feb 28, 21:39 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2439442
Default Alt Text
service.sls (941 B)

Event Timeline