diff --git a/doc/puppet_classes/confdroid_prometheus.html b/doc/puppet_classes/confdroid_prometheus.html index 74f1330..1922ed5 100644 --- a/doc/puppet_classes/confdroid_prometheus.html +++ b/doc/puppet_classes/confdroid_prometheus.html @@ -78,7 +78,7 @@
confdroid_prometheus::init.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::init.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
confdroid_prometheus::main::config.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::config.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
confdroid_prometheus::main::dirs.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::dirs.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/main/dirs.pp', line 6 @@ -190,7 +203,20 @@ class confdroid_prometheus::main::dirs ( } if $ps_enable_pruning == false { file { $ps_pruning_dir: - ensure => absent, + ensure => absent, + } + } + # binary install directory + if $install_from_binary == true { + file { $ps_install_dir: + ensure => directory, + owner => 'root', + group => 'root', + mode => '0755', + selrange => s0, + selrole => object_r, + seltype => usr_, + seluser => unconfined_u, } } } diff --git a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html index cf826e3..4f4f663 100644 --- a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html @@ -83,7 +83,7 @@+19 +20 +21 +22 +23 +24 +25diff --git a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html index 334e2e6..5b29927 100644 --- a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html +++ b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html @@ -83,7 +83,7 @@-confdroid_prometheus::main::files.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::files.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
@@ -114,7 +114,13 @@ 16 17 18 -19-confdroid_prometheus::main::install.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::install.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
# File 'manifests/main/install.pp', line 6 @@ -123,10 +129,16 @@ class confdroid_prometheus::main::install ( ) inherits confdroid_prometheus::params { require confdroid_prometheus::main::yumrepo if $manage_prometheus == true { - package { $reqpackage_prom: - ensure => $pkg_ensure, + if $install_from_binary == false { + package { $reqpackage_prom: + ensure => $pkg_ensure, + } + } + if $install_from_binary == true { + # place function here to install from binary releases, e.g. using the archive module } } + if $manage_node_exporter == true { package { $reqpackage_ne: ensure => $pkg_ensure, diff --git a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html index 8ecb52a..191025a 100644 --- a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html +++ b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html @@ -83,7 +83,7 @@diff --git a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html index 36f8843..9dc9b3e 100644 --- a/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html +++ b/doc/puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html @@ -83,7 +83,7 @@-confdroid_prometheus::main::service.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::service.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
diff --git a/doc/puppet_classes/confdroid_prometheus_3A_3Aparams.html b/doc/puppet_classes/confdroid_prometheus_3A_3Aparams.html index 216eeac..edda519 100644 --- a/doc/puppet_classes/confdroid_prometheus_3A_3Aparams.html +++ b/doc/puppet_classes/confdroid_prometheus_3A_3Aparams.html @@ -99,7 +99,7 @@-confdroid_prometheus::main::yumrepo.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::main::yumrepo.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
@@ -808,6 +808,24 @@ —-confdroid_prometheus::params.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)
+confdroid_prometheus::params.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)
+ + + +the SQL template to use for checks.
+
whether to install from binary releases instead of packages
-45 -46 47 48 49 @@ -910,10 +926,14 @@ 129 130 131 -132+132 +133 +134 +135 +136
# File 'manifests/params.pp', line 45
+ # File 'manifests/params.pp', line 47
class confdroid_prometheus::params (
@@ -921,6 +941,7 @@ class confdroid_prometheus::params (
String $reqpackage_prom = 'prometheus2',
String $reqpackage_ne = 'node_exporter',
String $pkg_ensure = 'present',
+ Boolean $install_from_binary = false,
# config logic
Boolean $manage_prometheus = false,
@@ -985,6 +1006,7 @@ class confdroid_prometheus::params (
$ps_main_dir = '/etc/prometheus'
$ps_system_file_dir = '/etc/systemd/system/prometheus.service.d'
$ps_system_dir = '/etc/systemd/system/'
+ $ps_install_dir = '/opt/prometheus'
# files
$ps_main_file = "${ps_main_dir}/prometheus.yml"