]> git.openstreetmap.org Git - chef.git/blob - roles/otrs.rb
tilecache: enable some caching in nginx
[chef.git] / roles / otrs.rb
1 name "otrs"
2 description "Role applied to all OTRS servers"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :otrs => { :status => :role }
8     },
9     :groups => {
10       :"www-data" => {
11         :members => [:otrs]
12       }
13     }
14   },
15   :exim => {
16     :local_domains => ["otrs.openstreetmap.org"],
17     :routes => {
18       :otrs_otrs => {
19         :comment => "otrs@otrs.openstreetmap.org",
20         :domains => ["otrs.openstreetmap.org"],
21         :local_parts => ["otrs"],
22         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read",
23         :user => "otrs",
24         :group => "www-data",
25         :home_directory => "/opt/otrs"
26       },
27       :otrs_data => {
28         :comment => "data@otrs.openstreetmap.org",
29         :domains => ["otrs.openstreetmap.org"],
30         :local_parts => ["data"],
31         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Data Working Group'",
32         :user => "otrs",
33         :group => "www-data",
34         :home_directory => "/opt/otrs"
35       },
36       :otrs_membership => {
37         :comment => "membership@otrs.openstreetmap.org",
38         :domains => ["otrs.openstreetmap.org"],
39         :local_parts => ["membership"],
40         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Membership Working Group'",
41         :user => "otrs",
42         :group => "www-data",
43         :home_directory => "/opt/otrs"
44       },
45       :otrs_legal => {
46         :comment => "legal@otrs.openstreetmap.org",
47         :domains => ["otrs.openstreetmap.org"],
48         :local_parts => ["legal"],
49         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group'",
50         :user => "otrs",
51         :group => "www-data",
52         :home_directory => "/opt/otrs"
53       },
54       :otrs_legal_privacy => {
55         :comment => "legal-privacy@otrs.openstreetmap.org",
56         :domains => ["otrs.openstreetmap.org"],
57         :local_parts => ["legal-privacy"],
58         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Privacy'",
59         :user => "otrs",
60         :group => "www-data",
61         :home_directory => "/opt/otrs"
62       },
63       :otrs_legal_questions => {
64         :comment => "legal-questions@otrs.openstreetmap.org",
65         :domains => ["otrs.openstreetmap.org"],
66         :local_parts => ["legal-questions"],
67         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Legal Questions'",
68         :user => "otrs",
69         :group => "www-data",
70         :home_directory => "/opt/otrs"
71       },
72       :otrs_legal_trademarks => {
73         :comment => "legal-trademarks@otrs.openstreetmap.org",
74         :domains => ["otrs.openstreetmap.org"],
75         :local_parts => ["legal-trademarks"],
76         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Trademarks'",
77         :user => "otrs",
78         :group => "www-data",
79         :home_directory => "/opt/otrs"
80       },
81       :otrs_support => {
82         :comment => "support@otrs.openstreetmap.org",
83         :domains => ["otrs.openstreetmap.org"],
84         :local_parts => ["support"],
85         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Technical Support'",
86         :user => "otrs",
87         :group => "www-data",
88         :home_directory => "/opt/otrs"
89       }
90     }
91   },
92   :otrs => {
93     :site => "otrs.openstreetmap.org",
94     :site_aliases => ["otrs.osm.org"],
95     :database_cluster => "10/main",
96     :database_name => "otrs",
97     :database_user => "otrs",
98     :database_password => "otrs"
99   },
100   :postgresql => {
101     :versions => ["10"]
102   }
103 )
104
105 run_list(
106   "recipe[otrs]"
107 )