]> git.openstreetmap.org Git - chef.git/blob - roles/otrs.rb
tile: Add diagnostics X-TileRender header
[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_support => {
46         :comment => "support@otrs.openstreetmap.org",
47         :domains => ["otrs.openstreetmap.org"],
48         :local_parts => ["support"],
49         :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Technical Support'",
50         :user => "otrs",
51         :group => "www-data",
52         :home_directory => "/opt/otrs"
53       }
54     }
55   },
56   :otrs => {
57     :site => "otrs.openstreetmap.org",
58     :site_aliases => ["otrs.osm.org"],
59     :database_cluster => "10/main",
60     :database_name => "otrs",
61     :database_user => "otrs",
62     :database_password => "otrs"
63   },
64   :postgresql => {
65     :versions => ["10"]
66   }
67 )
68
69 run_list(
70   "recipe[otrs]"
71 )