## puppet_cd::puppetdb::service.pp
# Module name: puppet_cd
# Author: Arne Teuke (arne_teuke@confdroid)
# @summary  Class manages puppetdb service
###############################################################################
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,
    }
  }
}
