Merge "Add trystack.o.o into -infra"
This commit is contained in:
commit
6dfab80fac
@ -228,4 +228,22 @@ class openstack_project::static (
|
||||
serveraliases => ['*.devstack.org'],
|
||||
template => 'openstack_project/devstack.vhost.erb',
|
||||
}
|
||||
|
||||
###########################################################
|
||||
# Trystack
|
||||
|
||||
apache::vhost { 'trystack.openstack.org':
|
||||
port => 80,
|
||||
priority => '50',
|
||||
docroot => '/opt/trystack',
|
||||
template => 'openstack_project/trystack.vhost.erb',
|
||||
require => Vcsrepo['/opt/trystack'],
|
||||
}
|
||||
|
||||
vcsrepo { '/opt/trystack':
|
||||
ensure => latest,
|
||||
provider => git,
|
||||
revision => 'master',
|
||||
source => 'https://git.openstack.org/openstack-infra/trystack-site',
|
||||
}
|
||||
}
|
||||
|
21
modules/openstack_project/templates/trystack.vhost.erb
Normal file
21
modules/openstack_project/templates/trystack.vhost.erb
Normal file
@ -0,0 +1,21 @@
|
||||
# ************************************
|
||||
# Managed by Puppet
|
||||
# ************************************
|
||||
|
||||
NameVirtualHost <%= @vhost_name %>:<%= @port %>
|
||||
<VirtualHost <%= @vhost_name %>:<%= @port %>>
|
||||
ServerName <%= @srvname %>
|
||||
|
||||
DocumentRoot <%= @docroot %>
|
||||
<Directory <%= @docroot %>>
|
||||
Options <%= @options %>
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
|
||||
ErrorLog /var/log/apache2/<%= @name %>_error.log
|
||||
LogLevel warn
|
||||
CustomLog /var/log/apache2/<%= @name %>_access.log combined
|
||||
ServerSignature Off
|
||||
</VirtualHost>
|
Loading…
x
Reference in New Issue
Block a user