From: Grant Slater Date: Tue, 19 Jul 2022 00:30:26 +0000 (+0300) Subject: gitweb: Add notice about github. X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ab3cf06dd7f5ee5d793a683999bdd65e5d7f2ed0 gitweb: Add notice about github. --- diff --git a/cookbooks/git/recipes/web.rb b/cookbooks/git/recipes/web.rb index 7e1f38cc2..4bdd50160 100644 --- a/cookbooks/git/recipes/web.rb +++ b/cookbooks/git/recipes/web.rb @@ -45,6 +45,13 @@ template "/srv/#{git_site}/robots.txt" do mode "644" end +template "/srv/#{git_site}/indextext.html" do + source "indextext.html.erb" + owner "root" + group "root" + mode "644" +end + ssl_certificate git_site do domains [git_site] + Array(node[:git][:aliases]) notifies :reload, "service[apache2]" diff --git a/cookbooks/git/templates/default/gitweb.conf.erb b/cookbooks/git/templates/default/gitweb.conf.erb index 5d2eb7469..4cfe1c24f 100644 --- a/cookbooks/git/templates/default/gitweb.conf.erb +++ b/cookbooks/git/templates/default/gitweb.conf.erb @@ -10,7 +10,7 @@ $git_temp = "/tmp"; #$home_link = $my_uri || "/"; # html text to include at home page -$home_text = "indextext.html"; +$home_text = "/srv/<%= node[:git][:host] %>/indextext.html"; # file with project list; by default, simply scan the projectroot dir. $projects_list = $projectroot; diff --git a/cookbooks/git/templates/default/indextext.html.erb b/cookbooks/git/templates/default/indextext.html.erb new file mode 100644 index 000000000..c6493db1f --- /dev/null +++ b/cookbooks/git/templates/default/indextext.html.erb @@ -0,0 +1,3 @@ +

Want to contribute to OpenStreetMap software?

+

Head over to github.com/openstreetmap/

+

git.openstreetmap.org is an internal system we use as part of our deployment system.