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
directory site_directory do
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0775
+ mode 0o775
end
directory mediawiki_directory do
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0775
+ mode 0o775
end
mediawiki_reference = "REL#{new_resource.version}".tr(".", "_")
directory "#{mediawiki_directory}/images" do
owner "www-data"
group node[:mediawiki][:group]
- mode 0775
+ mode 0o775
end
directory "#{mediawiki_directory}/cache" do
owner "www-data"
group node[:mediawiki][:group]
- mode 0775
+ mode 0o775
end
directory "#{mediawiki_directory}/LocalSettings.d" do
user node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0775
+ mode 0o775
end
template "#{mediawiki_directory}/LocalSettings.php" do
source "LocalSettings.php.erb"
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0664
+ mode 0o664
variables :name => new_resource.name,
:directory => mediawiki_directory,
:database_params => new_resource.database_params,
source "mediawiki.cron.erb"
owner "root"
group "root"
- mode 0644
+ mode 0o644
variables :name => new_resource.name, :directory => site_directory,
:user => node[:mediawiki][:user]
end
source "mediawiki-backup.cron.erb"
owner "root"
group "root"
- mode 0700
+ mode 0o700
variables :name => new_resource.name, :directory => site_directory,
:database_params => new_resource.database_params
end
# 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
cookbook "mediawiki"
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0644
+ mode 0o644
backup false
end
cookbook "mediawiki"
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0644
+ mode 0o644
backup false
end
cookbook "mediawiki"
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0644
+ mode 0o644
backup false
end
source "LocalSettings.php.erb"
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
- mode 0664
+ mode 0o664
variables :name => new_resource.name,
:directory => mediawiki_directory,
:database_params => new_resource.database_params,