mediawiki_version = params[:version] || "1.22"
mediawiki_reference = "refs/heads/REL#{mediawiki_version}".tr(".", "_")
- passwords = data_bag_item("mediawiki", "passwords")
-
mediawiki = {
:directory => "#{site_directory}/w",
:site => name,
:site_notice => params[:site_notice] || "",
:site_readonly => params[:site_readonly] || FALSE,
:site_admin_user => "Admin",
- :site_admin_pw => passwords["mediawiki-admin-user"],
- :enable_ssl => params[:enable_ssl] || FALSE
+ :site_admin_pw => params[:admin_password],
+ :enable_ssl => params[:enable_ssl] || FALSE,
+ :private_accounts => params[:private_accounts] || FALSE,
+ :private => params[:private] || FALSE
}
#----------------
action :sync
repository mediawiki_repository
reference mediawiki_reference
- depth 1
+ #depth 1
user node[:mediawiki][:user]
group node[:mediawiki][:group]
notifies :run, resources(:execute => "#{mediawiki[:directory]}/maintenance/install.php"), :immediately