Puppet Class: openssl::packages

Defined in:
manifests/packages.pp

Summary

Sets up packages for openssl

Overview



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

class openssl::packages {
  assert_private()

  if $openssl::package_name {
    package { 'openssl':
      ensure => $openssl::package_ensure,
      name   => $openssl::package_name,
    }
  }

  if $facts['os']['family'] in ['Debian', 'RedHat'] {
    stdlib::ensure_packages(['ca-certificates'], { ensure => $openssl::ca_certificates_ensure, })

    if $facts['os']['family'] == 'Debian' {
      exec { 'update-ca-certificates':
        path        => $facts['path'],
        refreshonly => true,
        require     => Package['ca-certificates'],
      }
    }
  }
}