recaptcha_private_key passwords["wiki"]["recaptcha"]
end
-cookbook_file "/srv/wiki.osmfoundation.org/Wiki.png" do
- owner node[:mediawiki][:user]
- group node[:mediawiki][:group]
- mode 0644
+mediawiki_skin "osmf" do
+ site "wiki.osmfoundation.org"
+ repository "git://github.com/tomhughes/mediawiki-skins-osmf.git"
+ revision "master"
end
-subversion "/srv/wiki.osmfoundation.org/w/skins/osmf-skin" do
- repository "http://svn.openstreetmap.org/extensions/mediawiki/osmf"
- user node[:mediawiki][:user]
- group node[:mediawiki][:group]
-end
-
-link "/srv/wiki.osmfoundation.org/w/skins/osmf" do
- to "osmf-skin/osmf"
- owner node[:mediawiki][:user]
- group node[:mediawiki][:group]
-end
-
-link "/srv/wiki.osmfoundation.org/w/skins/osmf.deps.php" do
- to "osmf-skin/osmf.deps.php"
- owner node[:mediawiki][:user]
- group node[:mediawiki][:group]
-end
-
-link "/srv/wiki.osmfoundation.org/w/skins/osmf.php" do
- to "osmf-skin/osmf.php"
+cookbook_file "/srv/wiki.osmfoundation.org/Wiki.png" do
owner node[:mediawiki][:user]
group node[:mediawiki][:group]
+ mode 0644
end
end
else
skin_repository = new_resource.repository || default_repository
- skin_reference = if new_resource.tag
- "refs/tags/#{new_resource.tag}"
- else
- "REL#{skin_version}".tr(".", "_")
- end
+ skin_revision = new_resource.revision || "REL#{skin_version}".tr(".", "_")
git skin_directory do
action :sync
repository skin_repository
- reference skin_reference
+ revision skin_revision
enable_submodules true
user node[:mediawiki][:user]
group node[:mediawiki][:group]
attribute :variables, :kind_of => Hash, :default => {}
attribute :version, :kind_of => String
attribute :repository, :kind_of => String
-attribute :tag, :kind_of => String
+attribute :revision, :kind_of => String
attribute :update_site, :kind_of => [TrueClass, FalseClass], :default => true
def after_created