Don't hardcode names on certs

It should be more flexible to just add use vhost_name
as part of the name, instead of hardcoding to openstack.

Change-Id: I0f3e9216480e4ef008b965481e669b12597566d1
This commit is contained in:
Yolanda Robla 2015-04-30 15:37:20 +02:00
parent 409692774a
commit 767a7a0cb9

View File

@ -44,8 +44,8 @@ class openstack_project::git_backend (
class { '::cgit':
vhost_name => $vhost_name,
ssl_cert_file => '/etc/pki/tls/certs/git.openstack.org.pem',
ssl_key_file => '/etc/pki/tls/private/git.openstack.org.key',
ssl_cert_file => '/etc/pki/tls/certs/${vhost_name}.pem',
ssl_key_file => '/etc/pki/tls/private/${vhost_name}.key',
ssl_chain_file => '/etc/pki/tls/certs/intermediate.pem',
ssl_cert_file_contents => $ssl_cert_file_contents,
ssl_key_file_contents => $ssl_key_file_contents,