# Puppet Class: puppet_cd::puppetdb::service

Inherits:
  puppet_cd::params

Defined in:
  manifests/puppetdb/service.pp

## Summary

Class manages puppetdb service

## Overview

puppet_cd::puppetdb::service.pp Module name: puppet_cd Author: Arne Teuke (arne_teuke@confdroid)

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

    class puppet_cd::puppetdb::service (

    ) inherits puppet_cd::params {
      if ($fqdn == $pt_puppetdb_server) and ($pt_use_puppetdb == true) {
        require puppet_cd::puppetdb::files

        service { $pt_puppetdb:
          ensure     => running,
          hasstatus  => true,
          hasrestart => true,
          enable     => true,
        }
      }
    }