Add election alias to governance.openstack.org
Add an alias for /election/ to go to /srv/static/election where the election repo will be published to. Partially-Implements: spec publish-election-repo Change-Id: Ie5e783c65396e9fb74f3d739e775e51a948652fe
This commit is contained in:
@@ -49,6 +49,10 @@ class openstack_project::static (
|
||||
}
|
||||
}
|
||||
|
||||
if ! defined(Httpd::Mod['alias']) {
|
||||
httpd::mod { 'alias': ensure => present }
|
||||
}
|
||||
|
||||
if ! defined(File['/srv/static']) {
|
||||
file { '/srv/static':
|
||||
ensure => directory,
|
||||
@@ -252,22 +256,39 @@ class openstack_project::static (
|
||||
}
|
||||
|
||||
###########################################################
|
||||
# Governance
|
||||
# Governance & Election
|
||||
|
||||
# Extra aliases and directories needed for vhost template:
|
||||
$aliases = {
|
||||
'/election/' => '/srv/static/election/'
|
||||
}
|
||||
$directories = [
|
||||
'/srv/static/election',
|
||||
'/srv/static/governance'
|
||||
]
|
||||
|
||||
::httpd::vhost { 'governance.openstack.org':
|
||||
port => 443, # Is required despite not being used.
|
||||
docroot => '/srv/static/governance',
|
||||
priority => '50',
|
||||
ssl => true,
|
||||
template => 'openstack_project/static-http-and-https.vhost.erb',
|
||||
vhost_name => 'governance.openstack.org',
|
||||
require => [
|
||||
port => 443, # Is required despite not being used.
|
||||
docroot => '/srv/static/governance',
|
||||
priority => '50',
|
||||
ssl => true,
|
||||
template => 'openstack_project/static-http-and-https.vhost.erb',
|
||||
vhost_name => 'governance.openstack.org',
|
||||
require => [
|
||||
File['/srv/static/election'],
|
||||
File['/srv/static/governance'],
|
||||
File[$cert_file],
|
||||
File[$key_file],
|
||||
],
|
||||
}
|
||||
|
||||
file { '/srv/static/election':
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
group => 'jenkins',
|
||||
require => User['jenkins'],
|
||||
}
|
||||
|
||||
file { '/srv/static/governance':
|
||||
ensure => directory,
|
||||
owner => 'jenkins',
|
||||
|
||||
Reference in New Issue
Block a user