Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions certs_to_sign/manifests/web_client_example.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
# write out our openssl.conf for this CSR
file { "${csr_dir}/${common_name}-openssl.conf":
ensure => 'file',
content => template('certs_to_sign/openssl.conf.erb'),
content => template("${module_name}/openssl.conf.erb"),
}

# So we already have a private key, we need to generate a CSR
# that is exported for our CA to sign and "return" to us.
x509_request { "${csr_dir}/${common_name}.csr":
ensure => 'present',
private_key => $key_file,
template => 'certs_to_sign/openssl.conf.erb',
template => "${module_name}/openssl.conf.erb",
encrypted => false,
force => false,
}

# grab the CSRs that have been converted to facts by the next run
# so that we can export the resources
if defined($facts['x509_csrs']) {
create_resources(certs_to_sign::x509_csr, $facts['x509_csrs'])
create_resources($module_name::x509_csr, $facts['x509_csrs'])
}
}