email_sender "webmaster@openstreetmap.org"
email_sender_name "OSMF Board Wiki"
private true
+ recaptcha_public_key "6LflIQATAAAAAMXyDWpba-FgipVzE-aGF4HIR59N"
+ recaptcha_private_key passwords["board"]["recaptcha"]
end
cookbook_file "/srv/board.osmfoundation.org/Wiki.png" do
email_sender "webmaster@openstreetmap.org"
email_sender_name "OSMF Wiki"
private_accounts true
+ recaptcha_public_key "6LflIQATAAAAAMXyDWpba-FgipVzE-aGF4HIR59N"
+ recaptcha_private_key passwords["wiki"]["recaptcha"]
end
cookbook_file "/srv/wiki.osmfoundation.org/Wiki.png" do
# limitations under the License.
#
-define :mediawiki_extension, :action => [ :enable ] do
+define :mediawiki_extension, :action => [ :enable ], :variables => {} do
name = params[:name]
site = params[:site]
site_directory = node[:mediawiki][:sites][site][:site_directory]
extension_directory = "#{mediawiki_directory}/extensions/#{name}"
source = params[:source]
template = params[:template]
+ template_variables = params[:variables]
if source
remote_directory extension_directory do
user node[:mediawiki][:user]
group node[:mediawiki][:group]
mode 0664
+ variables template_variables
notifies :create, resources(:template => "#{mediawiki_directory}/LocalSettings.php")
end
end
mediawiki_reference = "refs/heads/REL#{mediawiki_version}".tr(".", "_")
mediawiki = {
- :directory => "#{site_directory}/w",
- :site => name,
- :sitename => params[:sitename] || "OpenStreetMap Wiki",
- :metanamespace => params[:metanamespace] || "OpenStreetMap",
- :logo => params[:logo] || "$wgStylePath/common/images/wiki.png",
- :email_contact => params[:email_contact] || "",
- :email_sender => params[:email_sender] || "",
+ :directory => "#{site_directory}/w",
+ :site => name,
+ :sitename => params[:sitename] || "OpenStreetMap Wiki",
+ :metanamespace => params[:metanamespace] || "OpenStreetMap",
+ :logo => params[:logo] || "$wgStylePath/common/images/wiki.png",
+ :email_contact => params[:email_contact] || "",
+ :email_sender => params[:email_sender] || "",
:email_sender_name => params[:email_sender_name] || "MediaWiki Mail",
- :commons => params[:commons] || TRUE,
- :skin => params[:skin] || "vector",
- :site_notice => params[:site_notice] || "",
- :site_readonly => params[:site_readonly] || FALSE,
- :site_admin_user => "Admin",
- :site_admin_pw => params[:admin_password],
- :enable_ssl => params[:enable_ssl] || FALSE,
- :private_accounts => params[:private_accounts] || FALSE,
- :private => params[:private] || FALSE
+ :commons => params[:commons] || TRUE,
+ :skin => params[:skin] || "vector",
+ :site_notice => params[:site_notice] || "",
+ :site_readonly => params[:site_readonly] || FALSE,
+ :site_admin_user => "Admin",
+ :site_admin_pw => params[:admin_password],
+ :enable_ssl => params[:enable_ssl] || FALSE,
+ :private_accounts => params[:private_accounts] || FALSE,
+ :private => params[:private] || FALSE,
+ :recaptcha_public => params[:recaptcha_public_key],
+ :recaptcha_private => params[:recaptcha_private_key],
}
#----------------
mediawiki_extension "ConfirmEdit" do
site name
template "mw-ext-ConfirmEdit.inc.php.erb"
+ variables :public_key => mediawiki[:recaptcha_public],
+ :private_key => mediawiki[:recaptcha_private]
end
mediawiki_extension "Gadgets" do
# DO NOT EDIT - This file is being maintained by Chef
require_once( $IP.'/extensions/ConfirmEdit/ReCaptcha.php' );
$wgCaptchaClass = 'ReCaptcha';
-$recaptcha_public_key = '6Lc9OLsSAAAAAKazGuA9zItboXIHb6ObYOdiVm6o';
-$recaptcha_private_key = '6Lc9OLsSAAAAAKVZr9jFBc0GL-9Fm2H-paqu-4TB';
+$recaptcha_public_key = '<%= @public_key %>';
+$recaptcha_private_key = '<%= @private_key %>';
$wgCaptchaTriggers['addurl'] = true;
chown otrs $T/otrs-$D
sudo -u otrs pg_dump --file=$T/otrs-$D/otrs.dmp otrs
ln -s /opt/otrs $T/otrs-$D/otrs
-ln -s /etc/apache2/sites-available/otrs.openstreetmap.org $T/otrs-$D/apache2-otrs.openstreetmap.org
+ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf
export GZIP="--rsyncable -9"
export RSYNC_RSH="ssh -ax -c arcfour"
-default[:piwik][:version] = "2.9.1"
+default[:piwik][:version] = "2.10.0"
+default[:piwik][:plugins] = [
+ "Actions", "API", "BulkTracking", "Contents", "CoreAdminHome",
+ "CoreConsole", "CoreHome", "CorePluginsAdmin", "CoreUpdater",
+ "CoreVisualizations", "CustomVariables", "Dashboard",
+ "DevicesDetection", "DevicePlugins", "DoNotTrack", "Feedback",
+ "Goals", "ImageGraph", "Installation", "LanguagesManager", "Live",
+ "Login", "Morpheus", "MultiSites", "PrivacyManager", "Provider",
+ "Proxy", "Referrers", "Resolution", "SEO", "SitesManager",
+ "UserCountry", "UserCountryMap", "UserSettings", "UsersManager",
+ "Widgetize", "VisitFrequency", "VisitorInterest", "VisitsSummary",
+ "VisitTime"
+]
owner "root"
group "root"
mode "0644"
- variables :passwords => passwords
+ variables :passwords => passwords,
+ :directory => "/opt/piwik-#{version}/piwik",
+ :plugins => node[:piwik][:plugins]
end
directory "/opt/piwik-#{version}/piwik/tmp" do
salt = "<%= @passwords['salt'] %>"
[Plugins]
-Plugins[] = "CorePluginsAdmin"
-Plugins[] = "CoreAdminHome"
-Plugins[] = "CoreHome"
-Plugins[] = "Proxy"
-Plugins[] = "API"
-Plugins[] = "Widgetize"
-Plugins[] = "LanguagesManager"
-Plugins[] = "Actions"
-Plugins[] = "Dashboard"
-Plugins[] = "MultiSites"
-Plugins[] = "UserSettings"
-Plugins[] = "Goals"
-Plugins[] = "SEO"
-Plugins[] = "UserCountry"
-Plugins[] = "VisitsSummary"
-Plugins[] = "VisitFrequency"
-Plugins[] = "VisitTime"
-Plugins[] = "VisitorInterest"
-Plugins[] = "ExampleAPI"
-Plugins[] = "ExamplePlugin"
-Plugins[] = "ExampleRssWidget"
-Plugins[] = "Provider"
-Plugins[] = "Feedback"
-Plugins[] = "Login"
-Plugins[] = "UsersManager"
-Plugins[] = "SitesManager"
-Plugins[] = "Installation"
-Plugins[] = "CoreUpdater"
-Plugins[] = "UserCountryMap"
-Plugins[] = "Live"
-Plugins[] = "CustomVariables"
-Plugins[] = "PrivacyManager"
-Plugins[] = "ImageGraph"
-Plugins[] = "DoNotTrack"
-Plugins[] = "DevicesDetection"
-Plugins[] = "Referrers"
-Plugins[] = "CoreConsole"
-Plugins[] = "CoreVisualizations"
-Plugins[] = "Morpheus"
-Plugins[] = "Contents"
+<% @plugins.each do |plugin| -%>
+Plugins[] = "<%= plugin %>"
+<% end -%>
[PluginsInstalled]
-PluginsInstalled[] = "Login"
-PluginsInstalled[] = "CoreAdminHome"
-PluginsInstalled[] = "UsersManager"
-PluginsInstalled[] = "SitesManager"
-PluginsInstalled[] = "Installation"
-PluginsInstalled[] = "CorePluginsAdmin"
-PluginsInstalled[] = "CoreHome"
-PluginsInstalled[] = "Proxy"
-PluginsInstalled[] = "API"
-PluginsInstalled[] = "Widgetize"
-PluginsInstalled[] = "LanguagesManager"
-PluginsInstalled[] = "Actions"
-PluginsInstalled[] = "Dashboard"
-PluginsInstalled[] = "MultiSites"
-PluginsInstalled[] = "UserSettings"
-PluginsInstalled[] = "Goals"
-PluginsInstalled[] = "SEO"
-PluginsInstalled[] = "UserCountry"
-PluginsInstalled[] = "VisitsSummary"
-PluginsInstalled[] = "VisitFrequency"
-PluginsInstalled[] = "VisitTime"
-PluginsInstalled[] = "VisitorInterest"
-PluginsInstalled[] = "ExampleAPI"
-PluginsInstalled[] = "ExamplePlugin"
-PluginsInstalled[] = "ExampleRssWidget"
-PluginsInstalled[] = "ExampleFeedburner"
-PluginsInstalled[] = "Provider"
-PluginsInstalled[] = "Feedback"
-PluginsInstalled[] = "CoreUpdater"
-PluginsInstalled[] = "UserCountryMap"
-PluginsInstalled[] = "Live"
-PluginsInstalled[] = "CustomVariables"
-PluginsInstalled[] = "PrivacyManager"
-PluginsInstalled[] = "GeoIP"
-PluginsInstalled[] = "ImageGraph"
-PluginsInstalled[] = "DoNotTrack"
-PluginsInstalled[] = "DevicesDetection"
-PluginsInstalled[] = "CoreConsole"
-PluginsInstalled[] = "CoreVisualizations"
-PluginsInstalled[] = "Referrers"
-PluginsInstalled[] = "Morpheus"
-PluginsInstalled[] = "Contents"
+<% Dir.new("#{@directory}/plugins").reject { |f| f =~ /\./ }.sort.each do |plugin| -%>
+PluginsInstalled[] = "<%= plugin %>"
+<% end -%>
[Plugins_Tracker]
Plugins_Tracker[] = "Provider"
package "libprotobuf-dev"
package "osmpbf-bin"
+# Add planet-mirror-redirect-update dependencies
+package "php5-cli"
+package "php5-curl"
+
directory "/opt/planet-dump-ng" do
owner "root"
group "root"
$_PLANET_FOLDER = '<%= node[:planet][:dump][:xml_directory] %>/'.$_YEAR.'/';
$_PLANET_REGEX = "/^(planet|changesets)\-\d{6}(\-nolt)?\.osm\.(bz2|gz)$/";
$_MIRROR = 'http://ftp.heanet.ie/mirrors/openstreetmap.org/planet/'.$_YEAR.'/';
-$_PLANET_HTACCESS = $_PLANET_FOLDER.'../../.htaccess';
+$_PLANET_HTACCESS = realpath($_PLANET_FOLDER.'../..').'/.htaccess';
function _MIRROR_FILE_SIZE($url) {
$ch = @curl_init();
return ($curl_result['download_content_length']);
}
-if (posix_getuid() !== fileowner($_PLANET_HTACCESS)) die('User ID of process does not match .htaccess owner'."\n");
+if (!is_writable($_PLANET_HTACCESS)) die('File '.$_PLANET_HTACCESS.' is not writable by current user.'."\n");
if (is_dir($_PLANET_FOLDER)) {
$htaccess_contents = file_get_contents($_PLANET_HTACCESS);
fclose($htaccess_handle);
}
}
-?>
email_sender_name "OpenStreetMap Wiki"
metanamespace "OpenStreetMap"
+
+ recaptcha_public_key "6LdFIQATAAAAAMwtHeI8KDgPqvRbXeNYSq1gujKz"
+ recaptcha_private_key passwords["recaptcha"]
#site_readonly "MAINTENANCE UPDATE: WIKI READ-ONLY. ETA: Tuesday 8:00am UTC/GMT."
:jsrouting2 => {
:repository => "git://github.com/jfirebaugh/openstreetmap-website.git",
:revision => "routing"
+ },
+ :comments => {
+ :repository => "git://github.com/ukasiu/openstreetmap-website.git",
+ :revision => "comments_list"
+ },
+ :rails42 => {
+ :repository => "git://github.com/tomhughes/openstreetmap-website.git",
+ :revision => "rails42"
}
}
},
}
},
:squid => {
- :cache_mem => "7500 MB",
+ :cache_mem => "6100 MB",
:cache_dir => "coss /store/squid/coss-01 80000 block-size=8192 max-size=262144 membufs=80"
},
:tilecache => {
}
},
:squid => {
- :cache_mem => "32000 MB",
+ :cache_mem => "29000 MB",
:cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
},
:tilecache => {
:styles => {
:default => {
:repository => "git://github.com/gravitystorm/openstreetmap-carto.git",
- :revision => "v2.25.0",
+ :revision => "v2.26.1",
:max_zoom => 19
}
}