Puppet Class: iop::core_ingress

Defined in:
manifests/core_ingress.pp

Overview

Class: iop::core_ingress

Install and configure the core ingress

Parameters:

$image

The container image

$ensure

Ensure service is present or absent

Parameters:

  • image (String[1]) (defaults to: 'quay.io/iop/ingress')
  • ensure (Enum['present', 'absent']) (defaults to: 'present')


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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'manifests/core_ingress.pp', line 11

class iop::core_ingress (
  String[1] $image = 'quay.io/iop/ingress',
  Enum['present', 'absent'] $ensure = 'present',
) {
  include podman
  include iop::core_kafka
  require iop::core_network

  podman::quadlet { 'iop-core-ingress':
    ensure       => $ensure,
    quadlet_type => 'container',
    user         => 'root',
    defaults     => {},
    require      => [
      Podman::Network['iop-core-network'],
    ],
    settings     => {
      'Unit'      => {
        'Description' => 'IOP Core Ingress Container',
      },
      'Container' => {
        'Image'         => $image,
        'ContainerName' => 'iop-core-ingress',
        'Network'       => 'iop-core-network',
        'Environment'   => [
          'INGRESS_VALID_UPLOAD_TYPES=advisor,compliance,qpc,rhv,tower,leapp-reporting,xavier,playbook,playbook-sat,malware-detection,tasks',
          'INGRESS_KAFKA_BROKERS=iop-core-kafka:9092',
          'INGRESS_STAGERIMPLEMENTATION=filebased',
          'INGRESS_STORAGEFILESYSTEMPATH=/var/tmp',
          'INGRESS_SERVICEBASEURL=http://iop-core-ingress:8080',
          'INGRESS_WEBPORT=8080',
          'INGRESS_METRICSPORT=3001',
        ],
      },
      'Service'   => {
        'Environment' => 'REGISTRY_AUTH_FILE=/etc/foreman/registry-auth.json',
        'Restart'     => 'on-failure',
      },
      'Install'   => {
        'WantedBy' => 'default.target',
      },
    },
  }
}