Puppet Class: cd4peadm

Defined in:
manifests/init.pp

Summary

Base cd4pe class that configures the system for anything shared across

Overview

all components.

Parameters:

  • runtime (Cd4peadm::Runtime)

    which runtime is being used



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'manifests/init.pp', line 5

class cd4peadm (
  Cd4peadm::Runtime $runtime,
) {
  file { '/etc/puppetlabs/cd4pe':
    ensure => directory,
    owner  => 'root',
    group  => 'root',
    mode   => '0700',
  }

  if($runtime == 'docker') {
    docker_network { 'cd4pe':
      ensure  => present,
    }
  } elsif($runtime == 'podman') {
    exec { 'podman network create cd4pe':
      path   => '/usr/bin',
      unless => 'podman network inspect cd4pe',
    }
  }
}