Puppet Class: pulp::crane

Defined in:
manifests/crane.pp

Overview

Install and configure Crane

Parameters:

  • debug (Boolean) (defaults to: false)

    Enable debug logging

  • server_name (Stdlib::Fqdn) (defaults to: $facts['networking']['fqdn'])

    The server name on the vhost

  • key (Stdlib::Absolutepath)

    Path to the SSL key for https

  • cert (Stdlib::Absolutepath)

    Path to the SSL certificate for https

  • ca_cert (Stdlib::Absolutepath)

    Path to the SSL CA cert for https

  • ssl_chain (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    Path to the SSL chain file for https

  • port (Stdlib::Port) (defaults to: 5000)

    Port for Crane to run on

  • data_dir (Stdlib::Absolutepath) (defaults to: '/var/lib/crane/metadata')

    Directory containing docker v1/v2 artifacts published by pulp

  • data_dir_polling_interval (Integer[0]) (defaults to: 60)

    The number of seconds between checks for updates to metadata files in the data_dir

  • ssl_protocol (Optional[Variant[Array[String], String]]) (defaults to: undef)

    SSLProtocol configuration to use



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/crane.pp', line 32

class pulp::crane (
  Stdlib::Absolutepath $key,
  Stdlib::Absolutepath $cert,
  Stdlib::Absolutepath $ca_cert,

  Boolean $debug = false,
  Stdlib::Fqdn $server_name = $facts['networking']['fqdn'],
  Stdlib::Port $port = 5000,
  Stdlib::Absolutepath $data_dir = '/var/lib/crane/metadata',
  Integer[0] $data_dir_polling_interval = 60,
  Optional[Stdlib::Absolutepath] $ssl_chain = undef,
  Optional[Variant[Array[String], String]] $ssl_protocol = undef,
){

  contain pulp::crane::install
  contain pulp::crane::config
  contain pulp::crane::apache

  Class['pulp::crane::install']
  ~> Class['pulp::crane::config']
  ~> Class['pulp::crane::apache']
}