
This is a mechanically generated change to replace openstack.org git:// URLs with https:// equivalents. This is in aid of a planned future move of the git hosting infrastructure to a self-hosted instance of gitea (https://gitea.io), which does not support the git wire protocol at this stage. This update should result in no functional change. For more information see the thread at http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html Change-Id: I8f5c94b34373cb0cc7696e0a19168db186e8164e
31 lines
1.0 KiB
Puppet
31 lines
1.0 KiB
Puppet
if ($::osfamily == 'RedHat') {
|
|
exec { 'reload systemd to have ports updated':
|
|
command => '/bin/systemctl daemon-reload',
|
|
refreshonly => true,
|
|
subscribe => File['/usr/lib/systemd/system/git-daemon.socket'],
|
|
}
|
|
|
|
class { '::cgit':
|
|
vhost_name => 'localhost',
|
|
serveradmin => 'webmaster@localhost',
|
|
ssl_cert_file_contents => file('/etc/ssl/certs/ssl-cert-snakeoil.pem'),
|
|
ssl_cert_file => '/etc/pki/tls/certs/localhost.pem',
|
|
ssl_key_file_contents => file('/etc/ssl/private/ssl-cert-snakeoil.key'),
|
|
ssl_key_file => '/etc/pki/tls/private/localhost.key',
|
|
manage_cgitrc => true,
|
|
behind_proxy => true,
|
|
cgitrc_settings => {
|
|
'clone-prefix' => 'https://git.openstack.org https://git.openstack.org',
|
|
'root-title' => 'OpenStack git repository browser',
|
|
},
|
|
}
|
|
|
|
class { '::cgit::ssh':
|
|
manage_home => false,
|
|
require => Class['::cgit'],
|
|
authorized_keys => [
|
|
'ssh-key 1a2b3c4d5e',
|
|
],
|
|
}
|
|
}
|