saltstack-formulas / prometheus-formula

Manage a Prometheus installation
Other
27 stars 51 forks source link

[BUG] Cannot install only node_exporter #37

Closed n-rodriguez closed 4 years ago

n-rodriguez commented 4 years ago

Your setup

Formula commit hash / release tag

Versions reports (master & minion)

Pillar / config used


Bug details

Describe the bug

It fails with

       ----------
                 ID: prometheus-archive-install-prerequisites
           Function: file.directory
               Name: /var/lib/prometheus
             Result: False
            Comment: User prometheus is not available Group prometheus is not available
            Started: 19:23:19.133033
           Duration: 2.279 ms
            Changes:   
       ----------
                 ID: prometheus-archive-install-node_exporter
           Function: file.directory
               Name: /opt/prometheus/node_exporter-v0.18.1
             Result: False
            Comment: One or more requisite failed: prometheus.archive.install.prometheus-archive-install-prerequisites
            Started: 19:23:19.135989
           Duration: 0.006 ms
            Changes: 

because of https://github.com/saltstack-formulas/prometheus-formula/blob/master/prometheus/archive/install.sls#L16

Steps to reproduce the bug

Expected behaviour

Attempts to fix the bug

Additional context

n-rodriguez commented 4 years ago

@noelmcloughlin thank you!