Puppet Class: profile::kubernetes::deployment_server::mediawiki::mwscript

Defined in:
modules/profile/manifests/kubernetes/deployment_server/mediawiki/mwscript.pp

Overview

SPDX-License-Identifier: Apache-2.0



2
3
4
5
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
# File 'modules/profile/manifests/kubernetes/deployment_server/mediawiki/mwscript.pp', line 2

class profile::kubernetes::deployment_server::mediawiki::mwscript {
    file { '/usr/local/bin/mwscript-k8s':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/profile/kubernetes/deployment_server/mwscript_k8s.py'
    }

    file { '/usr/local/bin/mwscript-cleanup':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/profile/kubernetes/deployment_server/mwscript_cleanup.py'
    }

    systemd::timer::job { 'mwscript-cleanup':
        ensure             => present,
        description        => 'Remove lingering Helm releases from completed maintenance scripts.',
        command            => "/usr/local/bin/mwscript-cleanup --debug ${::site}",
        interval           => {
            start    => 'OnUnitActiveSec',
            interval => '1 day',
        },
        user               => 'mwdeploy',
        monitoring_enabled => true,
        team               => 'ServiceOps'
    }
}