]> git.openstreetmap.org Git - chef.git/commitdiff
Add otrs role
authorTom Hughes <tom@compton.nu>
Sun, 6 Oct 2013 18:08:00 +0000 (19:08 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 6 Oct 2013 18:08:00 +0000 (19:08 +0100)
roles/otrs.rb [new file with mode: 0644]

diff --git a/roles/otrs.rb b/roles/otrs.rb
new file mode 100644 (file)
index 0000000..769a126
--- /dev/null
@@ -0,0 +1,50 @@
+name "otrs"
+description "Role applied to all OTRS servers"
+
+default_attributes(
+  :accounts => {
+    :users => {
+      :otrs => { :status => :role }
+    }
+  },
+  :exim => {
+    :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",
+        :user => "otrs",
+        :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'",
+        :user => "otrs",
+        :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'",
+        :user => "otrs",
+        :home_directory => "/opt/otrs"
+      }
+    }
+  },
+  :otrs => {
+    :site => "otrs.openstreetmap.org",
+    :database_cluster => "8.4/main",
+    :database_name => "otrs",
+    :database_user => "otrs",
+    :database_password => "otrs"
+  }
+)
+
+run_list(
+  "recipe[otrs]"
+)