Puppet Class: role::quips

Defined in:
puppet/modules/role/manifests/quips.pp

Overview

Class: role::quips

Provisions the quips application

Parameters

vhost_name

Vhost name of quips service. Default 'quips.local.wmftest.net'.

dir

Deployment directory.

env

Hash of environment settings.

Parameters:

  • vhost_name (Any)
  • dir (Any)
  • env (Any)


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
# File 'puppet/modules/role/manifests/quips.pp', line 14

class role::quips(
    $vhost_name,
    $dir,
    $env,
) {
    include ::elasticsearch

    git::clone { 'quips':
        directory => $dir,
        remote    => 'https://github.com/bd808/quips.git',
    }

    php::composer::install { $dir:
        require => Git::Clone['quips'],
    }

    file { '/var/cache/quips':
        ensure => directory,
        owner  => 'www-data',
        group  => 'www-data',
        mode   => '0770',
    }

    apache::site { $vhost_name:
        content => template('role/quips/apache.conf.erb'),
        require => Git::Clone['quips'],
    }
}