use_inline_resources
action :create do
- node.set_unless[:mediawiki][:sites][new_resource.name] = {}
+ node.normal_unless[:mediawiki][:sites][new_resource.name] = {}
- node.set[:mediawiki][:sites][new_resource.name][:directory] = site_directory
- node.set[:mediawiki][:sites][new_resource.name][:version] = new_resource.version
+ node.normal[:mediawiki][:sites][new_resource.name][:directory] = site_directory
+ node.normal[:mediawiki][:sites][new_resource.name][:version] = new_resource.version
- node.set_unless[:mediawiki][:sites][new_resource.name][:wgSecretKey] = SecureRandom.base64(48)
+ node.normal_unless[:mediawiki][:sites][new_resource.name][:wgSecretKey] = SecureRandom.base64(48)
mysql_user "#{new_resource.database_user}@localhost" do
password new_resource.database_password
# MediaWiki Language Extension Bundle
# FIXME: should automatically resolve tag
- mw_lang_ext_bundle_tag = "2015.10"
+ mw_lang_ext_bundle_tag = "2016.10"
mediawiki_extension "Babel" do
site new_resource.name
template "mw-ext-Babel.inc.php.erb"
- tag mw_lang_ext_bundle_tag
+ # tag mw_lang_ext_bundle_tag
+ reference "740782459d34e756a932ea1ceddde432a1295197"
update_site false
end
ports = new_resource.ssl_enabled ? [80, 443] : [80]
+ ssl_certificate new_resource.name do
+ domains [new_resource.name] + Array(new_resource.aliases)
+ only_if { new_resource.ssl_enabled }
+ end
+
apache_site new_resource.name do
cookbook "mediawiki"
template "apache.erb"
directory site_directory
variables :aliases => Array(new_resource.aliases),
:private => new_resource.private,
- :ports => ports,
- :ssl_certificate => new_resource.ssl_certificate,
- :ssl_certificate_chain => new_resource.ssl_certificate_chain
+ :ssl_enabled => new_resource.ssl_enabled,
+ :ports => ports
reload_apache false
end