diff --git a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html index 7dbf95e..5c1db14 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html @@ -104,7 +104,19 @@ 6 7 8 -9 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21
# File 'manifests/main/files.pp', line 6
@@ -112,6 +124,18 @@
 class prometheus_cd::main::files (
 ) inherits prometheus_cd::params {
   require prometheus_cd::main::dirs
+  file { $ps_main_file:
+    ensure   => file,
+    owner    => 'root',
+    group    => 'root',
+    mode     => '0644',
+    selrange => s0,
+    selrole  => object_r,
+    seltype  => etc_t,
+    seluser  => system_u,
+    content  => template('prometheus_cd/prometheus.yml.erb'),
+    notify   => Service[ps_prom_service],
+  }
 }
diff --git a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html index e88064a..7307ffe 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html @@ -131,7 +131,7 @@ class prometheus_cd::main::service ( require prometheus_cd::main::files require prometheus_cd::firewall::iptables if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) { - service { 'prometheus': + service { $ps_prom_service: ensure => running, hasstatus => true, hasrestart => true, @@ -139,7 +139,7 @@ class prometheus_cd::main::service ( } } if $manage_node_exporter == true { - service { 'node_exporter': + service { $ps_ne_service: ensure => running, hasstatus => true, hasrestart => true, diff --git a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html index f2ba616..2751e80 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html @@ -272,6 +272,55 @@ +
  • + + ps_auth_user + + + (String) + + + (defaults to: 'changeme') + + + — +
    +

    the username for authentication

    +
    + +
  • + +
  • + + ps_auth_user + + + (String) + + + (defaults to: 'changeme') + + + — +
    +

    the password for authentication

    +
    + +
  • + +
  • + + ps_auth_pass + + + (String) + + + (defaults to: 'changeme') + + +
  • + @@ -283,8 +332,6 @@
     
     
    -15
    -16
     17
     18
     19
    @@ -312,10 +359,21 @@
     41
     42
     43
    -44
    +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 -
    # File 'manifests/params.pp', line 15
    +        
    # File 'manifests/params.pp', line 17
     
     class prometheus_cd::params (
     
    @@ -334,6 +392,10 @@ class prometheus_cd::params (
       String $ps_fw_prefix          = '50',
       String $ps_main_port          = '9090',
     
    +  # auth
    +  String $ps_auth_user          = 'changeme',
    +  String $ps_auth_pass          = 'changeme',
    +
     ) {
       # defaults
       $fqdn                   = $facts['networking']['fqdn']
    @@ -344,6 +406,11 @@ class prometheus_cd::params (
       # dirs
       $ps_main_dir            = '/etc/prometheus'
     
    +  # files
    +
    +  # services
    +  $ps_prom_service        = 'prometheus'
    +  $ps_ne_service          = 'node_exporter'
       # includes must be last
       include prometheus_cd::main::config
     }