Puppet Class: crm

Defined in:
puppet/modules/crm/manifests/init.pp

Overview

Class: crm

Drupal + CiviCRM system for managing donor contact info

Parameters

dir

Root directory for the code

site_name

fqdn for generating resource URLs

drupal_db

Drupal database name

civicrm_db

CiviCRM database name

db_user

Database user

db_pass

Database user's password

Parameters:

  • dir (Any)
  • site_name (Any)
  • sites_default_path (Any)
  • repo (Any)


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'puppet/modules/crm/manifests/init.pp', line 25

class crm(
    $dir,
    $site_name,
    $sites_default_path,
    $repo,
) {
    $base_url = "http://${site_name}${::port_fragment}/"

    include ::php
    include ::postfix
    include ::crm::apache
    include ::crm::civicrm
    include ::crm::dash
    include ::crm::tools

    git::clone { $repo:
        directory => $dir,
    }

    php::composer::install { 'crm-composer':
        directory => $dir,
        require   => Git::Clone[$repo],
    }

    service::gitupdate { 'crm':
        dir    => $dir,
        type   => 'php',
        update => true,
    }

    # required by module ganglia_reporter
    package { 'ganglia-monitor': }

    class { 'crm::drupal':
        drupal_settings => {
            'environment_indicator_enabled'                        => 1,
            'environment_indicator_text'                           => 'DEVELOPMENT',
            'environment_indicator_position'                       => 'left',
            'environment_indicator_color'                          => '#3FBF57',
            'amazon_audit_log_search_past_days'                    => 7,
            'amazon_audit_recon_completed_dir'                     => '/var/spool/audit/amazon/completed',
            'amazon_audit_recon_files_dir'                         => '/var/spool/audit/amazon/incoming/',
            'amazon_audit_working_log_dir'                         => '/tmp/amazon_audit/',
            'astropay_audit_log_search_past_days'                  => 7,
            'astropay_audit_recon_completed_dir'                   => '/var/spool/audit/astropay/completed',
            'astropay_audit_recon_files_dir'                       => '/var/spool/audit/astropay/incoming/',
            'astropay_audit_working_log_dir'                       => '/tmp/astropay_audit/',
            'banner_history_queue'                                 => 'banner-history',
            'fredge_payments_antifraud_queue'                      => 'payments-antifraud',
            'fredge_payments_init_queue'                           => 'payments-init',
            'queue2civicrm_batch'                                  => 5,
            'queue2civicrm_batch_time'                             => 90,
            'queue2civicrm_gateways_to_monitor'                    => 'adyen,amazon,astropay,globalcollect,paypal',
            'queue2civicrm_gmetric_dmax'                           => 360,
            'queue2civicrm_gmetric_tmax'                           => 60,
            'recurring_globalcollect_batch'                        => 1,
            'recurring_globalcollect_batch_max'                    => 100,
            'recurring_globalcollect_failure_retry_rate'           => 1,
            'recurring_globalcollect_failures_before_cancellation' => 3,
            'recurring_globalcollect_run_missed_days'              => 7,
            'refund_batch'                                         => 0,
            'refund_batch_time'                                    => 90,
            'thank_you_days'                                       => 14,
            'thank_you_batch'                                      => 100,
        },
        require         => Php::Composer::Install['crm-composer'],
    }
}