Documentation by YARD 0.9.36
+Alphabetic Index
+ +Puppet Class Listing A-Z
+ + +
+
+
+
|
+
File Listing
+-
+
+
+
- README + + +
diff --git a/doc/_index.html b/doc/_index.html new file mode 100644 index 0000000..d25a8e9 --- /dev/null +++ b/doc/_index.html @@ -0,0 +1,148 @@ + + +
+ + +
+
+
+
|
+
| t |
+ + + +6 +7 +8+ |
+
+ # File 'manifests/init.pp', line 6
+
+class prometheus_cd {
+ include prometheus_cd::params
+}
+ |
+
prometheus_cd::main::config.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9+ |
+
+ # File 'manifests/main/config.pp', line 6
+
+class prometheus_cd::main::config (
+) inherits prometheus_cd::params {
+ include prometheus_cd::main::service
+}
+ |
+
prometheus_cd::main::dirs.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9+ |
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class prometheus_cd::main::dirs (
+) inherits prometheus_cd::params {
+ require prometheus_cd::main::install
+}
+ |
+
prometheus_cd::main::files.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9+ |
+
+ # File 'manifests/main/files.pp', line 6
+
+class prometheus_cd::main::files (
+) inherits prometheus_cd::params {
+ require prometheus_cd::main::dirs
+}
+ |
+
prometheus_cd::main::install.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19+ |
+
+ # File 'manifests/main/install.pp', line 6
+
+class prometheus_cd::main::install (
+) inherits prometheus_cd::params {
+ require prometheus_cd::main::yumrepo
+ if $manage_prometheus == true {
+ package { $reqpackage_prom:
+ ensure => $pkg_ensure,
+ }
+ }
+ if $manage_node_exporter == true {
+ package { $reqpackage_ne:
+ ensure => $pkg_ensure,
+ }
+ }
+}
+ |
+
prometheus_cd::main::service.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25+ |
+
+ # File 'manifests/main/service.pp', line 6
+
+class prometheus_cd::main::service (
+) inherits prometheus_cd::params {
+ require prometheus_cd::main::files
+ if $manage_prometheus == true {
+ service { 'prometheus':
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+ }
+ if $manage_node_exporter == true {
+ service { 'node_exporter':
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+ }
+}
+ |
+
prometheus_cd::main::yumrepo.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18+ |
+
+ # File 'manifests/main/yumrepo.pp', line 6
+
+class prometheus_cd::main::yumrepo (
+) inherits prometheus_cd::params {
+ yumrepo { 'prometheus':
+ ensure => 'present',
+ name => 'prometheus',
+ descr => 'prometheus rpms',
+ baseurl => 'https://packagecloud.io/prometheus-rpm/release/el/9/$basearch',
+ gpgkey => 'https://packagecloud.io/prometheus-rpm/release/gpgkey',
+ enabled => '1',
+ gpgcheck => '0',
+ target => '/etc/yum.repo.d/prometheus.repo',
+ }
+}
+ |
+
prometheus_cd::params.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
+ +
+ + + +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28+ |
+
+ # File 'manifests/params.pp', line 11
+
+class prometheus_cd::params (
+
+ String $reqpackage_prom = 'prometheus2',
+ String $reqpackage_ne = 'node_exporter',
+ String $pkg_ensure = 'present',
+ Boolean $manage_prometheus = false,
+ Boolean $manage_node_exporter = false,
+
+) {
+ # defaults
+ $fqdn = $facts['networking']['fqdn']
+ $domain = $facts['networking']['domain']
+ $os_name = $facts['os']['name']
+ $os_release = $facts['os']['release']['major']
+
+ # includes must be last
+ include prometheus_cd::main::config
+}
+ |
+