Puppet Class: openshift::role::node

Defined in:
manifests/role/node.pp

Overview



1
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
32
# File 'manifests/role/node.pp', line 1

class openshift::role::node (
) {
  include ::openshift::util::cacert

  # Install pre-req packages
  # See https://docs.openshift.org/latest/install_config/install/host_preparation.html#installing-base-packages
  ensure_packages([
    'NetworkManager',
    'bash-completion',
    'bind-utils',
    'bridge-utils',
    'git',
    'lvm2',
    'net-tools',
    'wget',
  ])

  if downcase($::operatingsystem) == 'centos' {
    # The OpenShift Ansible playbooks require NetworkManager to be enabled and
    # started. Unlike on RedHat, CentOS does not install NetworkManager by default.
    # The playbooks don't handle this situation as of version 3.3.57-1.
    #
    # https://github.com/openshift/openshift-ansible/issues/1807
    #
    Package[NetworkManager] ->
    service { 'openshift-networkmanager':
      name   => 'NetworkManager',
      ensure => 'running',
      enable => true,
    }
  }
}