This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
class prometheus_cd::main::dirs (
|
class prometheus_cd::main::dirs (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::install
|
require prometheus_cd::main::install
|
||||||
if $ps_prom_host == fqdn {
|
($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||||
file { $ps_main_dir:
|
file { $ps_main_dir:
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
class prometheus_cd::main::files (
|
class prometheus_cd::main::files (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::dirs
|
require prometheus_cd::main::dirs
|
||||||
if $ps_prom_host == fqdn {
|
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||||
file { $ps_main_file:
|
file { $ps_main_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
class prometheus_cd::main::service (
|
class prometheus_cd::main::service (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::files
|
|
||||||
require prometheus_cd::firewall::iptables
|
|
||||||
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||||
|
require prometheus_cd::main::files
|
||||||
|
require prometheus_cd::firewall::iptables
|
||||||
service { $ps_prom_service:
|
service { $ps_prom_service:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
###############################################################################
|
||||||
|
##### File created by Puppet - manual changes will be overwritten #####
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
global:
|
global:
|
||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
scrape_timeout: 10s
|
scrape_timeout: 10s
|
||||||
|
|||||||
Reference in New Issue
Block a user