Puppet Class: profile::zuul::zuul_web

Defined in:
modules/profile/manifests/zuul/zuul_web.pp

Overview

SPDX-License-Identifier: Apache-2.0 new zuul (T393873) - zuul-web (T405119)

Parameters:

  • image (String) (defaults to: lookup('profile::zuul::zuul_web::image'))
  • service_ensure (Wmflib::Ensure) (defaults to: lookup('profile::zuul::zuul_web::service_ensure'))
  • http_proxy (Optional[Stdlib::HTTPUrl]) (defaults to: lookup('profile::zuul::web::http_proxy'))
  • no_proxy (Array[Stdlib::Host]) (defaults to: lookup('profile::zuul::web::no_proxy'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'modules/profile/manifests/zuul/zuul_web.pp', line 3

class profile::zuul::zuul_web(
    String $image = lookup('profile::zuul::zuul_web::image'),
    Wmflib::Ensure $service_ensure = lookup('profile::zuul::zuul_web::service_ensure'),
    Optional[Stdlib::HTTPUrl] $http_proxy = lookup('profile::zuul::web::http_proxy'),
    Array[Stdlib::Host] $no_proxy = lookup('profile::zuul::web::no_proxy'),
){

    $host_ip = $facts['networking']['ip']

    firewall::service { 'zuul-web-docker-httpd':
        proto  => 'tcp',
        port   => 80,
        srange => ['172.17.0.0/16'],
    }

    systemd::service { 'zuul-web':
        ensure    => $service_ensure,
        content   => systemd_template('zuul-web'),
        require   => File['/etc/zuul/zuul.conf'],
        subscribe => File['/etc/zuul/zuul.conf'],
    }
}