From cfa8802cc8d387a12dabe2cdac998e8c1f3db5ad Mon Sep 17 00:00:00 2001
From: zhaoxinyu <zhaoxinyu@huawei.com>
Date: Mon, 6 Jan 2014 23:28:35 +0000
Subject: [PATCH] Add compass project to stackforge

Partial-bug: 1265229
Change-Id: I29bcffc64e7f3ea1dbd50ffae87206fe5b1229fe
---
 .../files/gerritbot_channel_config.yaml        | 12 ++++++++++++
 .../gerrit/acls/stackforge/compass.config      | 12 ++++++++++++
 .../openstack_project/files/zuul/layout.yaml   | 18 ++++++++++++++++++
 .../templates/review.projects.yaml.erb         | 12 ++++++++++++
 4 files changed, 54 insertions(+)
 create mode 100644 modules/openstack_project/files/gerrit/acls/stackforge/compass.config

diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml
index fc0822a659..7fa4cdd09d 100644
--- a/modules/gerritbot/files/gerritbot_channel_config.yaml
+++ b/modules/gerritbot/files/gerritbot_channel_config.yaml
@@ -482,3 +482,15 @@ openstack-anvil:
     branches:
       - master
       - stable/grizzly
+
+syscompass:
+    events:
+      - patchset-created
+      - change-merged
+      - x-vrif-minus-2
+    projects:
+      - stackforge/compass-adapters
+      - stackforge/compass-core
+      - stackforge/compass-web
+    branches:
+      - master
diff --git a/modules/openstack_project/files/gerrit/acls/stackforge/compass.config b/modules/openstack_project/files/gerrit/acls/stackforge/compass.config
new file mode 100644
index 0000000000..75121178b5
--- /dev/null
+++ b/modules/openstack_project/files/gerrit/acls/stackforge/compass.config
@@ -0,0 +1,12 @@
+[access "refs/heads/*"]
+        label-Code-Review = -2..+2 group compass-core
+        label-Approved = +0..+1 group compass-core
+        workInProgress = group compass-core
+[access "refs/tags/*"]
+        create = group compass-ptl
+        pushTag = group compass-ptl
+[receive]
+        requireChangeId = true
+        requireContributorAgreement = true
+[submit]
+        mergeContent = true
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index f083e7aa34..48dda50632 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -2791,6 +2791,24 @@ projects:
     gate:
       - gate-noop
 
+  - name: stackforge/compass-adapters
+    check:
+      - gate-noop
+    gate:
+      - gate-noop
+
+  - name: stackforge/compass-core
+    check:
+      - gate-noop
+    gate:
+      - gate-noop
+
+  - name: stackforge/compass-web
+    check:
+      - gate-noop
+    gate:
+      - gate-noop
+
   - name: stackforge/congress
     check:
       - gate-congress-pep8
diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb
index e59a089596..33abce7f9a 100644
--- a/modules/openstack_project/templates/review.projects.yaml.erb
+++ b/modules/openstack_project/templates/review.projects.yaml.erb
@@ -314,6 +314,18 @@
 - project: stackforge/cloudroast
   upstream: https://github.com/samu4924/cloudroast
   description: Automated Test Case Repository for OpenStack. Based on CloudCAFE.
+- project: stackforge/compass-adapters
+  description: Compass adapter related code and data (chef, cobbler, etc)
+  upstream: git://github.com/huawei-cloud/compass-adapters.git
+  acl-config: /home/gerrit2/acls/stackforge/compass.config
+- project: stackforge/compass-core
+  description: Automating Distributed System Deployment to Baremetal Resources
+  upstream: git://github.com/huawei-cloud/compass-core.git
+  acl-config: /home/gerrit2/acls/stackforge/compass.config
+- project: stackforge/compass-web
+  description: A web-based UI consuming the Restful API service provided by Compass
+  upstream: git://github.com/huawei-cloud/compass-web.git
+  acl-config: /home/gerrit2/acls/stackforge/compass.config
 - project: stackforge/congress
   description: Congress
   upstream: git://github.com/pballand/congress.git