Page MenuHomePhabricator
Paste P15914

(An Untitled Masterwork)
ActivePublic

Authored by jbond on May 11 2021, 1:26 PM.
Tags
None
Referenced Files
F34450335: raw-paste-data.txt
May 11 2021, 1:27 PM
F34450334: raw-paste-data.txt
May 11 2021, 1:26 PM
Subscribers
None
class profile::web::sslcerts (
$cert_content,
$key_content,
) {
$cert_file = "/etc/ssl/localcerts/wildcad.$foo.pem"
$cert_content = "/etc/ssl/private/wildcad.$foo.pem"
file {$cert_file:
ensure => file,
content => $cert_content,
}
file {$cert_key:
ensure => file,
content => $key_content # ideally this uses some key store and deferred functions
}
}
define profile::web::vhost(Hash $options) {
include profile::web::sslcerts
apache::vhost { $title:
cert_file => $profile::web::sslcert::cert_file,
key_file => $profile::web::sslcert::key_file,
* => $options,
}
}

Event Timeline

jbond edited the content of this paste. (Show Details)