X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5d6a31bd32a20976963100c0bb26ea5e3a00e4a2..dfbca127c61d8f5c6d69e7c9a4133880f0540456:/roles/otrs.rb diff --git a/roles/otrs.rb b/roles/otrs.rb index 2ace4f9ef..6139dd1d1 100644 --- a/roles/otrs.rb +++ b/roles/otrs.rb @@ -5,34 +5,48 @@ default_attributes( :accounts => { :users => { :otrs => { :status => :role } + }, + :groups => { + :"www-data" => { + :members => [:otrs] + } } }, :exim => { - :local_domains => [ "otrs.openstreetmap.org" ], + :local_domains => ["otrs.openstreetmap.org"], :routes => { :otrs_otrs => { :comment => "otrs@otrs.openstreetmap.org", - :domains => [ "otrs.openstreetmap.org" ], - :local_parts => [ "otrs" ], - :command => "/opt/otrs/bin/otrs.PostMaster.pl", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["otrs"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" }, :otrs_data => { :comment => "data@otrs.openstreetmap.org", - :domains => [ "otrs.openstreetmap.org" ], - :local_parts => [ "data" ], - :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Data Working Group'", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["data"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Data Working Group'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_membership => { + :comment => "membership@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["membership"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Membership Working Group'", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" }, :otrs_support => { :comment => "support@otrs.openstreetmap.org", - :domains => [ "otrs.openstreetmap.org" ], - :local_parts => [ "support" ], - :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Technical Support'", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["support"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Technical Support'", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" @@ -41,10 +55,14 @@ default_attributes( }, :otrs => { :site => "otrs.openstreetmap.org", - :database_cluster => "8.4/main", + :site_aliases => ["otrs.osm.org"], + :database_cluster => "10/main", :database_name => "otrs", :database_user => "otrs", :database_password => "otrs" + }, + :postgresql => { + :versions => ["10"] } )