From cc0a3643e5ec1e43c8cac054574df7bc5c7a09db Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 30 May 2017 15:07:00 +0200
Subject: [PATCH] task 1462 - add foreman integration: add section for foreman
 in the template

---
 hooks/templates/inc_projects_config.php.erb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hooks/templates/inc_projects_config.php.erb b/hooks/templates/inc_projects_config.php.erb
index 507a2135..20a8de09 100644
--- a/hooks/templates/inc_projects_config.php.erb
+++ b/hooks/templates/inc_projects_config.php.erb
@@ -74,6 +74,12 @@ $aConfig = array(
             'debugLevel'   => 0,
         )
     ),
+    'foreman' => array(
+        'api'=>'<%= @replace["foreman-url"] %>', // with ending "/"
+        'user'=>'<%= @replace["foreman-user"] %>',
+        'password'=>'<%= @replace["foreman-password"] %>',
+        // 'varname-replace'=>'ci-replacement',
+    ),
     // where to store project data
     'projects' => array(
         'json' => array(
-- 
GitLab