Skip to content

Commit

Permalink
Remove the ability to specify a custom directory for mediawiki
Browse files Browse the repository at this point in the history
It doesn't actually work because the timer jobs assums they can
infer the directory from the site name.
  • Loading branch information
tomhughes committed Sep 20, 2023
1 parent 3df3f8f commit 01e2c8d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion cookbooks/foundation/recipes/board.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
mediawiki_site "board.osmfoundation.org" do
sitename "OSMF Board Wiki"
metanamespace "OSMFBoard"
directory "/srv/board.osmfoundation.org"
fpm_prometheus_port 11004
database_name "board-wiki"
database_user "board-wikiuser"
Expand Down
1 change: 0 additions & 1 deletion cookbooks/foundation/recipes/dwg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
mediawiki_site "dwg.osmfoundation.org" do
sitename "OSMF Data Working Group Wiki"
metanamespace "OSMFDWG"
directory "/srv/dwg.osmfoundation.org"
fpm_prometheus_port 11002
database_name "dwg-wiki"
database_user "dwg-wikiuser"
Expand Down
1 change: 0 additions & 1 deletion cookbooks/foundation/recipes/mwg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
mediawiki_site "mwg.osmfoundation.org" do
sitename "OSMF Membership Working Group Wiki"
metanamespace "OSMFMWG"
directory "/srv/mwg.osmfoundation.org"
fpm_prometheus_port 11003
database_name "mwg_wiki"
database_user "mwg_wikiuser"
Expand Down
1 change: 0 additions & 1 deletion cookbooks/foundation/recipes/wiki.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
aliases ["wiki.osmfoundation.org", "www.osmfoundation.org",
"foundation.openstreetmap.org", "foundation.osm.org"]
sitename "OpenStreetMap Foundation"
directory "/srv/wiki.osmfoundation.org"
fpm_max_children 20
fpm_start_servers 5
fpm_min_spare_servers 5
Expand Down
3 changes: 1 addition & 2 deletions cookbooks/mediawiki/resources/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

property :site, :kind_of => String, :name_property => true
property :aliases, :kind_of => [String, Array]
property :directory, :kind_of => String
property :version, :kind_of => String, :default => "1.39"
property :database_name, :kind_of => String, :required => true
property :database_user, :kind_of => String, :required => [:create, :update]
Expand Down Expand Up @@ -560,7 +559,7 @@
include OpenStreetMap::Mixin::PersistentToken

def site_directory
new_resource.directory || "/srv/#{new_resource.site}"
"/srv/#{new_resource.site}"
end

def mediawiki_reference
Expand Down
1 change: 0 additions & 1 deletion cookbooks/wiki/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"wiki.openstreetmap.ca", "wiki.openstreetmap.eu",
"wiki.openstreetmap.pro", "wiki.openstreetmaps.org",
"osm.wiki", "www.osm.wiki", "wiki.osm.wiki"]
directory "/srv/wiki.openstreetmap.org"

fpm_max_children 50
fpm_start_servers 10
Expand Down

0 comments on commit 01e2c8d

Please sign in to comment.