X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/56f649eee2b2010d3678741fcb4237d2ea5e236e..198ff0c7f1b14a48cc482add12a378ccabcaf61f:/roles/otrs.rb diff --git a/roles/otrs.rb b/roles/otrs.rb index 5e24b4df3..39672c80e 100644 --- a/roles/otrs.rb +++ b/roles/otrs.rb @@ -2,16 +2,6 @@ name "otrs" description "Role applied to all OTRS servers" default_attributes( - :accounts => { - :users => { - :otrs => { :status => :role } - }, - :groups => { - :"www-data" => { - :members => [:otrs] - } - } - }, :exim => { :local_domains => ["otrs.openstreetmap.org"], :routes => { @@ -19,7 +9,7 @@ default_attributes( :comment => "otrs@otrs.openstreetmap.org", :domains => ["otrs.openstreetmap.org"], :local_parts => ["otrs"], - :command => "/opt/otrs/bin/otrs.PostMaster.pl", + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" @@ -28,7 +18,88 @@ default_attributes( :comment => "data@otrs.openstreetmap.org", :domains => ["otrs.openstreetmap.org"], :local_parts => ["data"], - :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Data Working Group'", + :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_membership_osmf_talk_owner => { + :comment => "osmf-talk-owner@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["osmf-talk-owner"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Membership Working Group::osmf-talk'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_legal => { + :comment => "legal@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["legal"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_legal_privacy => { + :comment => "legal-privacy@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["legal-privacy"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Privacy'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_legal_questions => { + :comment => "legal-questions@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["legal-questions"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Legal Questions'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_legal_trademarks => { + :comment => "legal-trademarks@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["legal-trademarks"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Licensing Working Group::Trademarks'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_sotm_program => { + :comment => "sotm-program@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["sotm-program"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'State of the Map:Program'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_communications => { + :comment => "communications@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["communications"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Communications Working Group'", + :user => "otrs", + :group => "www-data", + :home_directory => "/opt/otrs" + }, + :otrs_communications_privacy => { + :comment => "freebies@otrs.openstreetmap.org", + :domains => ["otrs.openstreetmap.org"], + :local_parts => ["freebies"], + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Communications Working Group::Freebies'", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" @@ -37,7 +108,7 @@ default_attributes( :comment => "support@otrs.openstreetmap.org", :domains => ["otrs.openstreetmap.org"], :local_parts => ["support"], - :command => "/opt/otrs/bin/otrs.PostMaster.pl -q 'Technical Support'", + :command => "/opt/otrs/bin/otrs.Console.pl Maint::PostMaster::Read --target-queue 'Technical Support'", :user => "otrs", :group => "www-data", :home_directory => "/opt/otrs" @@ -46,13 +117,7 @@ default_attributes( }, :otrs => { :site => "otrs.openstreetmap.org", - :database_cluster => "9.5/main", - :database_name => "otrs", - :database_user => "otrs", - :database_password => "otrs" - }, - :postgresql => { - :versions => ["9.5"] + :site_aliases => ["otrs.osm.org"] } )