# Puppet Class: puppet_cd::main::files

Inherits:
  puppet_cd::params

Defined in:
  manifests/main/files.pp

## Summary

Class manages config files for the puppet_cd module.

## Overview

puppet_cd::main::files.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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    # File 'manifests/main/files.pp', line 6

    class puppet_cd::main::files (

    ) inherits puppet_cd::params {
      require puppet_cd::main::dirs

      if $fqdn != $pt_pm_fqdn {
        file { $pt_puppet_conf_file:
          ensure  => file,
          path    => $pt_puppet_conf_file,
          owner   => 'root',
          group   => 'root',
          mode    => '0644',
          content => template($pt_puppet_conf_erb),
          notify  => Service[$pt_agent_service],
        }
      }

      if $fqdn == $pt_pm_fqdn {
        file { $pt_puppet_conf_file:
          ensure  => file,
          path    => $pt_puppet_conf_file,
          owner   => 'root',
          group   => 'root',
          mode    => '0644',
          content => template($pt_puppet_conf_erb),
          notify  => Service[$pt_agent_service,$pt_server_service],
        }
      }

      if $pt_use_puppetdb == true {
        file { $pt_puppetdb_conf_file:
          ensure  => filet,
          path    => $pt_puppetdb_conf_file,
          owner   => 'root',
          group   => 'root',
          mode    => '0644',
          content => template($pt_puppetdb_conf_erb),
          notify  => Service[$pt_agent_service,$pt_server_service],
        }
      }
    }