9 Commits

Author SHA1 Message Date
Manuel Desbonnet
e39b5ce777 Add serveraliases to cgit vhost template
Allow for specifying ServerAlias entries in the apache
vhost for the cgit puppet module.
(vhost template section lifted from the puppetlabs-apache v0.0.4
vhost-default template).

Change-Id: If7c297247b9556458154e4d01a1e0165a25a14b5
2014-05-16 08:30:29 +01:00
Mathieu Gagné
ae3d3d1ff4 Configure cgit to show git notes
Change-Id: Id76bfa2b269591b6c125b31584542962d32fb048
2013-08-28 18:58:25 -04:00
Clark Boylan
dea75ed695 Load balance git requests.
* install_modules.sh: Add puppetlabs-haproxy forge module.

* modules/cgit/manifests/init.pp: Add haproxy config to load balance
https, https and git protocol git access. Each git server will host git
http on port 8080, https on port 4443 and git protocol on 29418. These
endpoints will then be load balanced by a single haproxy instance
listening on ports 80, 443 and 9418. The use of haproxy and having
services listen on offset ports to accomodate haproxy is toggleable
using the $balance_git and $behind_proxy boolean flags.
Additionally, configure rsyslog for haproxy.

* modules/cgit/files/rsyslog.haproxy.conf: Enable syslog over UDP on
port 514. This is needed by haproxy to perform logging. Send local0
messages to /var/log/haproxy.log.

* modules/cgit/templates/ssl.conf.erb: Make Apache https listen port
configurable. Remove default virtualhost.

* modules/cgit/templates/httpd.conf.erb: Make Apache http listen port
configurable.

* modules/cgit/templates/git.vhost..erb: Make Apache http(s) listen
ports configuruable. Allow http without redirecting to https as a
fallback option to accomodate CentOS clients.

* modules/openstack_project/manifests/git.pp: Pass load balancer
variables through to the cgit manifest.

* manifests/site.pp: Configure git.o.o to run the load balancer haproxy
and balance across the new gitXX.o.o nodes.

Change-Id: Icefc5923cff9a7c6ce62c1923ec2ea87ebc6474a
2013-08-22 10:52:04 -07:00
Elizabeth Krumbach Joseph
a6e4c8952b Swap git daemon in xinetd for service
Add git-daemon init file to /etc/init.d and make sure the service
is started.

For transition, keep the git xinetd file and service defined but
switch git service to stopped, we can remove this later.

Change-Id: I0cf02c7292496e39695b80b00cdcb82ec7a61700
2013-08-22 10:03:05 -07:00
Elizabeth Krumbach Joseph
8dd215bece Add static web directory for cgit & initial files
Create and define a static directory for cgit to use.

Add initial favicon and logo files and include in cgitrc.

Also include custom CSS and background image.

Change-Id: If1e20d8e62557cc90aafbf92f4291b964400e029
2013-08-16 16:41:30 -07:00
Jeremy Stanley
ef54ed93c9 Serve repos via git+https outside of cgit
* modules/cgit/templates/git.vhost.erb: Add Apache aliases to the
git-http-backend CGI and static git files where possible. This makes
git clone, pull and fetch HTTPS URLs more consistent with their git
protocol counterparts.

* modules/openstack_project/files/git/cgitrc: Adjust the displayed
HTTPS clone URL in the WebUI to match.

Change-Id: Ibb4fd41191f33b615ed36f78e1951555a1c0dad1
2013-08-15 03:04:04 +00:00
Monty Taylor
60ef5a3fd0 Remove if module statements
Because of the way we're doing ssl on the centos, the ifmodule
statements evaluate to false. Remove them.

Change-Id: Iad771249c6dc5cf5ede493183f5cebb98c3deb69
2013-08-10 20:52:55 -03:00
Elizabeth Krumbach
9a07f307a7 Update httpd log directory in template for git.o.o
The ${APACHE_LOG_DIR} isn't expanding as I had expected on
the CentOS server, updating to default CentOS apache log
directory.

Change-Id: I8fc6ee5084e2ef69be9e888473155c865bdbdfd0
2013-08-07 22:14:02 -07:00
Elizabeth Krumbach
8b81e9d213 Add httpd ssl support to git.openstack.org
Certificates have been added to hiera, now adding the support for
https in a new apache file.

Change-Id: I8447d60a15779b103556e53f04accf671dbf4843
2013-08-06 16:26:52 -07:00