Puppet Class: profile::acme_chief

Defined in:
modules/profile/manifests/acme_chief.pp

Overview

Parameters:

  • accounts (Hash[String, Hash[String, String]]) (defaults to: hiera('profile::acme_chief::accounts'))
  • certificates (Hash[String, Hash[String, Any]]) (defaults to: hiera('profile::acme_chief::certificates'))
  • shared_acme_certificates (Optional[Hash[String, Hash[String, Any]]]) (defaults to: hiera('shared_acme_certificates', undef))
  • challenges (Hash[String, Hash[String, Any]]) (defaults to: hiera('profile::acme_chief::challenges'))
  • http_proxy (String) (defaults to: hiera('http_proxy'))
  • active_host (String) (defaults to: hiera('profile::acme_chief::active'))
  • passive_host (String) (defaults to: hiera('profile::acme_chief::passive'))
  • authdns_servers (Hash[Stdlib::Fqdn, Stdlib::IP::Address::Nosubnet]) (defaults to: lookup('authdns_servers'))


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'modules/profile/manifests/acme_chief.pp', line 34

class profile::acme_chief (
    Hash[String, Hash[String, String]] $accounts = hiera('profile::acme_chief::accounts'),
    Hash[String, Hash[String, Any]] $certificates = hiera('profile::acme_chief::certificates'),
    Optional[Hash[String, Hash[String, Any]]] $shared_acme_certificates = hiera('shared_acme_certificates', undef),
    Hash[String, Hash[String, Any]] $challenges = hiera('profile::acme_chief::challenges'),
    String $http_proxy = hiera('http_proxy'),
    String $active_host = hiera('profile::acme_chief::active'),
    String $passive_host = hiera('profile::acme_chief::passive'),
    Hash[Stdlib::Fqdn, Stdlib::IP::Address::Nosubnet] $authdns_servers = lookup('authdns_servers'),
) {
    if(!empty($shared_acme_certificates)) {
        $acme_chief_certificates = $certificates + $shared_acme_certificates
    } else {
        $acme_chief_certificates = $certificates
    }

    class { '::acme_chief::server':
        accounts      => $accounts,
        certificates  => $acme_chief_certificates,
        challenges    => $challenges,
        http_proxy    => $http_proxy,
        active_host   => $active_host,
        passive_host  => $passive_host,
        authdns_hosts => $authdns_servers.keys(),
    }
}