Commit Graph

11 Commits

Author SHA1 Message Date
Monty Taylor ff8acfb6b4 Retire repo
Depends-On: https://review.opendev.org/720892
Change-Id: I7b36dd190fba304ce19ba5fa2fb994504f1368cc
2020-04-22 10:18:52 -05:00
Clark Boylan dc7e58943d Use systemd'd git-daemon on Centos7
Centos7 is a bit more opinionated on how git-daemon should run. In
particular with selinux the git_system_t context does not have
permissions to the git_port_t port(s) because systemd is expected to do
socket activation for git-daemon.

Fix this by not fighting systemd and embracing it. Use it for socket
activation with the git-daemon process and potentially add the git
daemon port to git_port_t label if necessary.

Change-Id: Id3fadfa74261649d158f4f31879f74f83d5856a8
2015-08-28 09:31:37 -07:00
Yolanda Robla 72bd729358 Add puppet-cgit load balancer class
Provide a load balancer class that will setup
haproxy for git.

Originally from
system-config/modules/openstack_project/manifests/git

Co-Authored-By: Elizabeth Krumbach <lyz@princessleia.com>

Change-Id: I1d5afd8b1f27c6755e7f5bc5582af7573ef9d29c
2015-05-07 10:14:06 +02:00
Clark Boylan 68f65412fe Move location of haproxy rsyslog conf file.
The haproxy rsyslog config file was left in the cgit module despite
pulling the haproxy stuff out of cgit and putting it in
openstack_project. Move the rsyslog config file into the
openstack_project module where it belongs.

Change-Id: I0fc45f7497f0f2682bbc5c7ae0da546a71b67188
2013-08-28 15:53:38 -07:00
Clark Boylan 69d776c80e 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 58a1a68cc0 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 0ff812bf14 Enable ssl module in httpd on git.openstack.org
Adding CentOS ssl.conf and make sure mod_ssl package is
installed.

Change-Id: Ie891716b815a4b103aa1911696ee5b2cb8af13a4
2013-08-09 11:47:39 -07:00
Elizabeth Krumbach 9ccd4b7ef4 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
Clark Boylan 3fbd7717c1 Add git-daemon to cgit server.
* modules/cgit/files/git.xinetd: Configure git xinetd

* modules/cgit/manifests/init.pp: Install git xinetd file and make sure the
* service is running.

Change-Id: I7686b1cacd257e2aa519885b969272055a74e48e
2013-08-05 11:01:22 -07:00
Elizabeth Krumbach a039d2f13e Add /cgit rewrite for git server docroot
Update the cgit Apache config to make requests to
http://git.openstack.org be rewritten to go to /cgit

Change-Id: I3589868e9cb202f4d4b89378ca5e38ec57869b2c
2013-07-17 22:45:36 -07:00
Elizabeth Krumbach 068e5d0091 Add cgit web service and git server
Define git.openstack.org server and deploy cgit web service with
Apache on CentOS.

Change-Id: Id3c7c870e25e4202915bc081454896895084f9af
2013-07-16 09:55:11 -07:00