Puppet Class: prometheusforemansd::config

Defined in:
manifests/config.pp

Overview

Class prometheusforemansd::config

This class is called from prometheusforemansd



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/config.pp', line 5

class prometheusforemansd::config {
  case $::prometheusforemansd::install_method {
    'archive': {
      $cfg = $::prometheusforemansd::cfg

      file { "${::prometheusforemansd::install_dir}/prometheusforemansd.yaml":
        ensure  => present,
        content => template('prometheusforemansd/config.yaml.erb'),
      }
    }
    default: {
      fail("Installation method ${::prometheusforemansd::install_method} not supported")
    }
  }
}