]> git.openstreetmap.org Git - chef.git/blob - roles/crm.rb
Add supporting.openstreetmap.org exim config
[chef.git] / roles / crm.rb
1 name "crm"
2 description "Role applied to CRM server"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :stereo => { :status => :administrator }
8     }
9   },
10   :exim => {
11     :local_domains => ["join.osmfoundation.org", "supporting.openstreetmap.org"],
12     :routes => {
13       :join_return => {
14         :comment => "return@join.osmfoundation.org",
15         :domains => ["join.osmfoundation.org"],
16         :local_parts => ["return"],
17         :maildir => "/var/mail/crm-return",
18         :user => "www-data",
19         :group => "mail"
20       },
21       :join_mail => {
22         :comment => "mail@join.osmfoundation.org",
23         :domains => ["join.osmfoundation.org"],
24         :local_parts => ["mail"],
25         :maildir => "/var/mail/crm-mail",
26         :user => "www-data",
27         :group => "mail"
28       },
29       :supporting_return => {
30         :comment => "return@supporting.openstreetmap.org",
31         :domains => ["supporting.osmfoundation.org"],
32         :local_parts => ["return"],
33         :maildir => "/var/mail/crm-return",
34         :user => "www-data",
35         :group => "mail"
36       },
37       :supporting_mail => {
38         :comment => "mail@supporting.openstreetmap.org",
39         :domains => ["supporting.openstreetmap.org"],
40         :local_parts => ["mail"],
41         :maildir => "/var/mail/crm-mail",
42         :user => "www-data",
43         :group => "mail"
44       }
45     },
46     :trusted_users => ["www-data"]
47   },
48   :mysql => {
49     :settings => {
50       :mysqld => {
51         :log_bin_trust_function_creators => 1
52       }
53     }
54   }
55 )
56
57 run_list(
58   "recipe[civicrm]"
59 )