X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/61e0ce2ffa2a4fea0fbba5de85ad6226110288c5..cac6ace6749429cdc77d0f1c0bac4890838d0861:/cookbooks/mailman/recipes/default.rb diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index cb7d4c1a9..a4d9768ab 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: mailman +# Cookbook:: mailman # Recipe:: default # -# Copyright 2011, OpenStreetMap Foundation +# Copyright:: 2011, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,6 +33,13 @@ template "/etc/mailman/mm_cfg.py" do notifies :restart, "service[mailman]" end +execute "newlist" do + command "newlist -q mailman mailman@example.com mailman" + user "root" + group "root" + not_if { ::File.exist?("/var/lib/mailman/lists/mailman/") } +end + service "mailman" do action [:enable, :start] supports :restart => true, :reload => true @@ -48,6 +55,7 @@ end apache_site "lists.openstreetmap.org" do template "apache.erb" + directory "/srv/lists.openstreetmap.org" variables :aliases => ["lists.osm.org"] end