Sha256: b6254394d417de10d771542ed97111a4c3a6bcc0f28683f5eedeb44e157b9c89

Contents?: true

Size: 405 Bytes

Versions: 22

Compression:

Stored size: 405 Bytes

Contents

class freighthop::web::ssl(
  $server_name,
  $ssl_cert_path,
  $ssl_key_path,
){
  $cert_subject = "/C=US/ST=IL/L=Chicago/O=Freighthop/CN=${server_name}"

  exec { 'generate-self-signed-ssl-cert':
    command => "openssl req -x509 -nodes -days 3650 -subj '${cert_subject}' -newkey rsa:1024 -keyout ${ssl_key_path} -out ${ssl_cert_path}",
    path    => ['/usr/bin'],
    creates => $ssl_cert_path,
  }
}

Version data entries

22 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/freighthop/manifests/web/ssl.pp
freighthop-0.6.1 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.6.0 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.6.0 modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.2 modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.2 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.1 modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.1 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.0 modules/freighthop/manifests/web/ssl.pp
freighthop-0.5.0 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.4.1 modules/freighthop/manifests/web/ssl.pp
freighthop-0.4.1 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.4.0 modules/freighthop/manifests/web/ssl.pp
freighthop-0.4.0 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.3 modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.3 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.2 local_modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.2 modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.1 modules/freighthop/manifests/web/ssl.pp
freighthop-0.3.1 local_modules/freighthop/manifests/web/ssl.pp