Puppet Class: role::quicksurveys

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

Overview

Class: role::quicksurveys

Installs the QuickSurveys extension which shows simple, low-friction in-article surveys.

1

www.mediawiki.org/wiki/Extension:QuickSurveys



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

class role::quicksurveys {
    include role::eventlogging

    mediawiki::extension { 'QuickSurveys':
        needs_update => true,
        settings     => {
            wgQuickSurveysConfig => [
                {
                    enabled                 => true,
                    type                    => 'internal',
                    name                    => 'perceived-performance-survey',
                    question                => 'ext-quicksurveys-performance-internal-survey-question',
                    answers                 => [
                        'ext-quicksurveys-example-internal-survey-answer-positive',
                        'ext-quicksurveys-example-internal-survey-answer-neutral',
                        'ext-quicksurveys-example-internal-survey-answer-negative',
                    ],
                    coverage                => 0.0,
                    platforms               => {
                        'desktop' => [
                            'stable',
                        ]
                    },
                    'privacyPolicy'         => 'ext-quicksurveys-performance-internal-survey-privacy-policy',
                    'shuffleAnswersDisplay' => true,
                },
            ]
        }
    }
}